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 | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for asn1c 0.9.24. |
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 | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 593 | PACKAGE_VERSION='0.9.24' |
| 594 | PACKAGE_STRING='asn1c 0.9.24' |
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 |
| 693 | am__untar |
| 694 | am__tar |
| 695 | AMTAR |
| 696 | am__leading_dot |
| 697 | SET_MAKE |
| 698 | AWK |
| 699 | mkdir_p |
| 700 | MKDIR_P |
| 701 | INSTALL_STRIP_PROGRAM |
| 702 | STRIP |
| 703 | install_sh |
| 704 | MAKEINFO |
| 705 | AUTOHEADER |
| 706 | AUTOMAKE |
| 707 | AUTOCONF |
| 708 | ACLOCAL |
| 709 | VERSION |
| 710 | PACKAGE |
| 711 | CYGPATH_W |
| 712 | am__isrc |
| 713 | INSTALL_DATA |
| 714 | INSTALL_SCRIPT |
| 715 | INSTALL_PROGRAM |
| 716 | target_alias |
| 717 | host_alias |
| 718 | build_alias |
| 719 | LIBS |
| 720 | ECHO_T |
| 721 | ECHO_N |
| 722 | ECHO_C |
| 723 | DEFS |
| 724 | mandir |
| 725 | localedir |
| 726 | libdir |
| 727 | psdir |
| 728 | pdfdir |
| 729 | dvidir |
| 730 | htmldir |
| 731 | infodir |
| 732 | docdir |
| 733 | oldincludedir |
| 734 | includedir |
| 735 | localstatedir |
| 736 | sharedstatedir |
| 737 | sysconfdir |
| 738 | datadir |
| 739 | datarootdir |
| 740 | libexecdir |
| 741 | sbindir |
| 742 | bindir |
| 743 | program_transform_name |
| 744 | prefix |
| 745 | exec_prefix |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 746 | PACKAGE_URL |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 747 | PACKAGE_BUGREPORT |
| 748 | PACKAGE_STRING |
| 749 | PACKAGE_VERSION |
| 750 | PACKAGE_TARNAME |
| 751 | PACKAGE_NAME |
| 752 | PATH_SEPARATOR |
| 753 | SHELL' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 754 | ac_subst_files='' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 755 | ac_user_opts=' |
| 756 | enable_option_checking |
| 757 | enable_shared |
| 758 | enable_static |
| 759 | with_pic |
| 760 | enable_fast_install |
| 761 | enable_dependency_tracking |
| 762 | with_gnu_ld |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 763 | with_sysroot |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 764 | enable_libtool_lock |
| 765 | enable_Werror |
| 766 | ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 767 | ac_precious_vars='build_alias |
| 768 | host_alias |
| 769 | target_alias |
| 770 | CC |
| 771 | CFLAGS |
| 772 | LDFLAGS |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 773 | LIBS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 774 | CPPFLAGS |
| 775 | CPP |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 776 | YACC |
| 777 | YFLAGS' |
| 778 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 779 | |
| 780 | # Initialize some variables set by options. |
| 781 | ac_init_help= |
| 782 | ac_init_version=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 783 | ac_unrecognized_opts= |
| 784 | ac_unrecognized_sep= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 785 | # The variables have the same names as the options, with |
| 786 | # dashes changed to underlines. |
| 787 | cache_file=/dev/null |
| 788 | exec_prefix=NONE |
| 789 | no_create= |
| 790 | no_recursion= |
| 791 | prefix=NONE |
| 792 | program_prefix=NONE |
| 793 | program_suffix=NONE |
| 794 | program_transform_name=s,x,x, |
| 795 | silent= |
| 796 | site= |
| 797 | srcdir= |
| 798 | verbose= |
| 799 | x_includes=NONE |
| 800 | x_libraries=NONE |
| 801 | |
| 802 | # Installation directory options. |
| 803 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 804 | # and all the variables that are supposed to be based on exec_prefix |
| 805 | # by default will actually change. |
| 806 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 807 | # (The list follows the same order as the GNU Coding Standards.) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 808 | bindir='${exec_prefix}/bin' |
| 809 | sbindir='${exec_prefix}/sbin' |
| 810 | libexecdir='${exec_prefix}/libexec' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 811 | datarootdir='${prefix}/share' |
| 812 | datadir='${datarootdir}' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 813 | sysconfdir='${prefix}/etc' |
| 814 | sharedstatedir='${prefix}/com' |
| 815 | localstatedir='${prefix}/var' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 816 | includedir='${prefix}/include' |
| 817 | oldincludedir='/usr/include' |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 818 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 819 | infodir='${datarootdir}/info' |
| 820 | htmldir='${docdir}' |
| 821 | dvidir='${docdir}' |
| 822 | pdfdir='${docdir}' |
| 823 | psdir='${docdir}' |
| 824 | libdir='${exec_prefix}/lib' |
| 825 | localedir='${datarootdir}/locale' |
| 826 | mandir='${datarootdir}/man' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 827 | |
| 828 | ac_prev= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 829 | ac_dashdash= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 830 | for ac_option |
| 831 | do |
| 832 | # If the previous option needs an argument, assign it. |
| 833 | if test -n "$ac_prev"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 834 | eval $ac_prev=\$ac_option |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 835 | ac_prev= |
| 836 | continue |
| 837 | fi |
| 838 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 839 | case $ac_option in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 840 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 841 | *=) ac_optarg= ;; |
| 842 | *) ac_optarg=yes ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 843 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 844 | |
| 845 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 846 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 847 | case $ac_dashdash$ac_option in |
| 848 | --) |
| 849 | ac_dashdash=yes ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 850 | |
| 851 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 852 | ac_prev=bindir ;; |
| 853 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 854 | bindir=$ac_optarg ;; |
| 855 | |
| 856 | -build | --build | --buil | --bui | --bu) |
| 857 | ac_prev=build_alias ;; |
| 858 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 859 | build_alias=$ac_optarg ;; |
| 860 | |
| 861 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 862 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 863 | ac_prev=cache_file ;; |
| 864 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 865 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 866 | cache_file=$ac_optarg ;; |
| 867 | |
| 868 | --config-cache | -C) |
| 869 | cache_file=config.cache ;; |
| 870 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 871 | -datadir | --datadir | --datadi | --datad) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 872 | ac_prev=datadir ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 873 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 874 | datadir=$ac_optarg ;; |
| 875 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 876 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 877 | | --dataroo | --dataro | --datar) |
| 878 | ac_prev=datarootdir ;; |
| 879 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 880 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 881 | datarootdir=$ac_optarg ;; |
| 882 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 883 | -disable-* | --disable-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 884 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 885 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 886 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 887 | as_fn_error $? "invalid feature name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 888 | ac_useropt_orig=$ac_useropt |
| 889 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 890 | case $ac_user_opts in |
| 891 | *" |
| 892 | "enable_$ac_useropt" |
| 893 | "*) ;; |
| 894 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 895 | ac_unrecognized_sep=', ';; |
| 896 | esac |
| 897 | eval enable_$ac_useropt=no ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 898 | |
| 899 | -docdir | --docdir | --docdi | --doc | --do) |
| 900 | ac_prev=docdir ;; |
| 901 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 902 | docdir=$ac_optarg ;; |
| 903 | |
| 904 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 905 | ac_prev=dvidir ;; |
| 906 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 907 | dvidir=$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 908 | |
| 909 | -enable-* | --enable-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 910 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 911 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 912 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 913 | as_fn_error $? "invalid feature name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 914 | ac_useropt_orig=$ac_useropt |
| 915 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 916 | case $ac_user_opts in |
| 917 | *" |
| 918 | "enable_$ac_useropt" |
| 919 | "*) ;; |
| 920 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 921 | ac_unrecognized_sep=', ';; |
| 922 | esac |
| 923 | eval enable_$ac_useropt=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 924 | |
| 925 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 926 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 927 | | --exec | --exe | --ex) |
| 928 | ac_prev=exec_prefix ;; |
| 929 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 930 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 931 | | --exec=* | --exe=* | --ex=*) |
| 932 | exec_prefix=$ac_optarg ;; |
| 933 | |
| 934 | -gas | --gas | --ga | --g) |
| 935 | # Obsolete; use --with-gas. |
| 936 | with_gas=yes ;; |
| 937 | |
| 938 | -help | --help | --hel | --he | -h) |
| 939 | ac_init_help=long ;; |
| 940 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 941 | ac_init_help=recursive ;; |
| 942 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 943 | ac_init_help=short ;; |
| 944 | |
| 945 | -host | --host | --hos | --ho) |
| 946 | ac_prev=host_alias ;; |
| 947 | -host=* | --host=* | --hos=* | --ho=*) |
| 948 | host_alias=$ac_optarg ;; |
| 949 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 950 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 951 | ac_prev=htmldir ;; |
| 952 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 953 | | --ht=*) |
| 954 | htmldir=$ac_optarg ;; |
| 955 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 956 | -includedir | --includedir | --includedi | --included | --include \ |
| 957 | | --includ | --inclu | --incl | --inc) |
| 958 | ac_prev=includedir ;; |
| 959 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 960 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 961 | includedir=$ac_optarg ;; |
| 962 | |
| 963 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 964 | ac_prev=infodir ;; |
| 965 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 966 | infodir=$ac_optarg ;; |
| 967 | |
| 968 | -libdir | --libdir | --libdi | --libd) |
| 969 | ac_prev=libdir ;; |
| 970 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 971 | libdir=$ac_optarg ;; |
| 972 | |
| 973 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 974 | | --libexe | --libex | --libe) |
| 975 | ac_prev=libexecdir ;; |
| 976 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 977 | | --libexe=* | --libex=* | --libe=*) |
| 978 | libexecdir=$ac_optarg ;; |
| 979 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 980 | -localedir | --localedir | --localedi | --localed | --locale) |
| 981 | ac_prev=localedir ;; |
| 982 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 983 | localedir=$ac_optarg ;; |
| 984 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 985 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 986 | | --localstate | --localstat | --localsta | --localst | --locals) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 987 | ac_prev=localstatedir ;; |
| 988 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 989 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 990 | localstatedir=$ac_optarg ;; |
| 991 | |
| 992 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 993 | ac_prev=mandir ;; |
| 994 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 995 | mandir=$ac_optarg ;; |
| 996 | |
| 997 | -nfp | --nfp | --nf) |
| 998 | # Obsolete; use --without-fp. |
| 999 | with_fp=no ;; |
| 1000 | |
| 1001 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1002 | | --no-cr | --no-c | -n) |
| 1003 | no_create=yes ;; |
| 1004 | |
| 1005 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1006 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1007 | no_recursion=yes ;; |
| 1008 | |
| 1009 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1010 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1011 | | --oldin | --oldi | --old | --ol | --o) |
| 1012 | ac_prev=oldincludedir ;; |
| 1013 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1014 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1015 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1016 | oldincludedir=$ac_optarg ;; |
| 1017 | |
| 1018 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1019 | ac_prev=prefix ;; |
| 1020 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1021 | prefix=$ac_optarg ;; |
| 1022 | |
| 1023 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1024 | | --program-pre | --program-pr | --program-p) |
| 1025 | ac_prev=program_prefix ;; |
| 1026 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1027 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1028 | program_prefix=$ac_optarg ;; |
| 1029 | |
| 1030 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1031 | | --program-suf | --program-su | --program-s) |
| 1032 | ac_prev=program_suffix ;; |
| 1033 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1034 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1035 | program_suffix=$ac_optarg ;; |
| 1036 | |
| 1037 | -program-transform-name | --program-transform-name \ |
| 1038 | | --program-transform-nam | --program-transform-na \ |
| 1039 | | --program-transform-n | --program-transform- \ |
| 1040 | | --program-transform | --program-transfor \ |
| 1041 | | --program-transfo | --program-transf \ |
| 1042 | | --program-trans | --program-tran \ |
| 1043 | | --progr-tra | --program-tr | --program-t) |
| 1044 | ac_prev=program_transform_name ;; |
| 1045 | -program-transform-name=* | --program-transform-name=* \ |
| 1046 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1047 | | --program-transform-n=* | --program-transform-=* \ |
| 1048 | | --program-transform=* | --program-transfor=* \ |
| 1049 | | --program-transfo=* | --program-transf=* \ |
| 1050 | | --program-trans=* | --program-tran=* \ |
| 1051 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1052 | program_transform_name=$ac_optarg ;; |
| 1053 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1054 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1055 | ac_prev=pdfdir ;; |
| 1056 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1057 | pdfdir=$ac_optarg ;; |
| 1058 | |
| 1059 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1060 | ac_prev=psdir ;; |
| 1061 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1062 | psdir=$ac_optarg ;; |
| 1063 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1065 | | -silent | --silent | --silen | --sile | --sil) |
| 1066 | silent=yes ;; |
| 1067 | |
| 1068 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1069 | ac_prev=sbindir ;; |
| 1070 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1071 | | --sbi=* | --sb=*) |
| 1072 | sbindir=$ac_optarg ;; |
| 1073 | |
| 1074 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1075 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1076 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1077 | | --sha | --sh) |
| 1078 | ac_prev=sharedstatedir ;; |
| 1079 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1080 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1081 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1082 | | --sha=* | --sh=*) |
| 1083 | sharedstatedir=$ac_optarg ;; |
| 1084 | |
| 1085 | -site | --site | --sit) |
| 1086 | ac_prev=site ;; |
| 1087 | -site=* | --site=* | --sit=*) |
| 1088 | site=$ac_optarg ;; |
| 1089 | |
| 1090 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1091 | ac_prev=srcdir ;; |
| 1092 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1093 | srcdir=$ac_optarg ;; |
| 1094 | |
| 1095 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1096 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1097 | ac_prev=sysconfdir ;; |
| 1098 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1099 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1100 | sysconfdir=$ac_optarg ;; |
| 1101 | |
| 1102 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1103 | ac_prev=target_alias ;; |
| 1104 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1105 | target_alias=$ac_optarg ;; |
| 1106 | |
| 1107 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1108 | verbose=yes ;; |
| 1109 | |
| 1110 | -version | --version | --versio | --versi | --vers | -V) |
| 1111 | ac_init_version=: ;; |
| 1112 | |
| 1113 | -with-* | --with-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1114 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1115 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1116 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1117 | as_fn_error $? "invalid package name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1118 | ac_useropt_orig=$ac_useropt |
| 1119 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1120 | case $ac_user_opts in |
| 1121 | *" |
| 1122 | "with_$ac_useropt" |
| 1123 | "*) ;; |
| 1124 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1125 | ac_unrecognized_sep=', ';; |
| 1126 | esac |
| 1127 | eval with_$ac_useropt=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1128 | |
| 1129 | -without-* | --without-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1130 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1131 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1133 | as_fn_error $? "invalid package name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1134 | ac_useropt_orig=$ac_useropt |
| 1135 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1136 | case $ac_user_opts in |
| 1137 | *" |
| 1138 | "with_$ac_useropt" |
| 1139 | "*) ;; |
| 1140 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1141 | ac_unrecognized_sep=', ';; |
| 1142 | esac |
| 1143 | eval with_$ac_useropt=no ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1144 | |
| 1145 | --x) |
| 1146 | # Obsolete; use --with-x. |
| 1147 | with_x=yes ;; |
| 1148 | |
| 1149 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1150 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1151 | ac_prev=x_includes ;; |
| 1152 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1153 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1154 | x_includes=$ac_optarg ;; |
| 1155 | |
| 1156 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1157 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1158 | ac_prev=x_libraries ;; |
| 1159 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1160 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1161 | x_libraries=$ac_optarg ;; |
| 1162 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1163 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1164 | Try \`$0 --help' for more information" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1165 | ;; |
| 1166 | |
| 1167 | *=*) |
| 1168 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1169 | # Reject names that are not valid shell variable names. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1170 | case $ac_envvar in #( |
| 1171 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1172 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1173 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1174 | eval $ac_envvar=\$ac_optarg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1175 | export $ac_envvar ;; |
| 1176 | |
| 1177 | *) |
| 1178 | # FIXME: should be removed in autoconf 3.0. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1179 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1180 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1181 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1182 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1183 | ;; |
| 1184 | |
| 1185 | esac |
| 1186 | done |
| 1187 | |
| 1188 | if test -n "$ac_prev"; then |
| 1189 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1190 | as_fn_error $? "missing argument to $ac_option" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1191 | fi |
| 1192 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1193 | if test -n "$ac_unrecognized_opts"; then |
| 1194 | case $enable_option_checking in |
| 1195 | no) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1196 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1197 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1198 | esac |
| 1199 | fi |
| 1200 | |
| 1201 | # Check all directory arguments for consistency. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1202 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1203 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1204 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1205 | libdir localedir mandir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1206 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1207 | eval ac_val=\$$ac_var |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1208 | # Remove trailing slashes. |
| 1209 | case $ac_val in |
| 1210 | */ ) |
| 1211 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1212 | eval $ac_var=\$ac_val;; |
| 1213 | esac |
| 1214 | # Be sure to have absolute directory names. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1215 | case $ac_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1216 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1217 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1218 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1219 | 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] | 1220 | done |
| 1221 | |
| 1222 | # There might be people who depend on the old broken behavior: `$host' |
| 1223 | # used to hold the argument of --host etc. |
| 1224 | # FIXME: To remove some day. |
| 1225 | build=$build_alias |
| 1226 | host=$host_alias |
| 1227 | target=$target_alias |
| 1228 | |
| 1229 | # FIXME: To remove some day. |
| 1230 | if test "x$host_alias" != x; then |
| 1231 | if test "x$build_alias" = x; then |
| 1232 | cross_compiling=maybe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1233 | elif test "x$build_alias" != "x$host_alias"; then |
| 1234 | cross_compiling=yes |
| 1235 | fi |
| 1236 | fi |
| 1237 | |
| 1238 | ac_tool_prefix= |
| 1239 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1240 | |
| 1241 | test "$silent" = yes && exec 6>/dev/null |
| 1242 | |
| 1243 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1244 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1245 | ac_ls_di=`ls -di .` && |
| 1246 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1247 | as_fn_error $? "working directory cannot be determined" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1249 | as_fn_error $? "pwd does not report name of working directory" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1250 | |
| 1251 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1252 | # Find the source files, if location was not specified. |
| 1253 | if test -z "$srcdir"; then |
| 1254 | ac_srcdir_defaulted=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1255 | # Try the directory containing this script, then the parent directory. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1256 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1257 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1258 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1259 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1260 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1261 | $as_echo X"$as_myself" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1262 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1263 | s//\1/ |
| 1264 | q |
| 1265 | } |
| 1266 | /^X\(\/\/\)[^/].*/{ |
| 1267 | s//\1/ |
| 1268 | q |
| 1269 | } |
| 1270 | /^X\(\/\/\)$/{ |
| 1271 | s//\1/ |
| 1272 | q |
| 1273 | } |
| 1274 | /^X\(\/\).*/{ |
| 1275 | s//\1/ |
| 1276 | q |
| 1277 | } |
| 1278 | s/.*/./; q'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1279 | srcdir=$ac_confdir |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1281 | srcdir=.. |
| 1282 | fi |
| 1283 | else |
| 1284 | ac_srcdir_defaulted=no |
| 1285 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1287 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1288 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1289 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1290 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1291 | ac_abs_confdir=`( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1292 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1293 | pwd)` |
| 1294 | # When building in place, set srcdir=. |
| 1295 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1296 | srcdir=. |
| 1297 | fi |
| 1298 | # Remove unnecessary trailing slashes from srcdir. |
| 1299 | # Double slashes in file names in object file debugging info |
| 1300 | # mess up M-x gdb in Emacs. |
| 1301 | case $srcdir in |
| 1302 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1303 | esac |
| 1304 | for ac_var in $ac_precious_vars; do |
| 1305 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1306 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1307 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1308 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1309 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1310 | |
| 1311 | # |
| 1312 | # Report the --help message. |
| 1313 | # |
| 1314 | if test "$ac_init_help" = "long"; then |
| 1315 | # Omit some internal or obsolete options to make the list less imposing. |
| 1316 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1317 | cat <<_ACEOF |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 1318 | \`configure' configures asn1c 0.9.24 to adapt to many kinds of systems. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1319 | |
| 1320 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1321 | |
| 1322 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1323 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1324 | |
| 1325 | Defaults for the options are specified in brackets. |
| 1326 | |
| 1327 | Configuration: |
| 1328 | -h, --help display this help and exit |
| 1329 | --help=short display options specific to this package |
| 1330 | --help=recursive display the short help of all the included packages |
| 1331 | -V, --version display version information and exit |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1332 | -q, --quiet, --silent do not print \`checking ...' messages |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1333 | --cache-file=FILE cache test results in FILE [disabled] |
| 1334 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1335 | -n, --no-create do not create output files |
| 1336 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1337 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1338 | Installation directories: |
| 1339 | --prefix=PREFIX install architecture-independent files in PREFIX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1340 | [$ac_default_prefix] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1341 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1342 | [PREFIX] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1343 | |
| 1344 | By default, \`make install' will install all the files in |
| 1345 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1346 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1347 | for instance \`--prefix=\$HOME'. |
| 1348 | |
| 1349 | For better control, use the options below. |
| 1350 | |
| 1351 | Fine tuning of the installation directories: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1352 | --bindir=DIR user executables [EPREFIX/bin] |
| 1353 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1354 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1355 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1356 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1357 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1358 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1359 | --includedir=DIR C header files [PREFIX/include] |
| 1360 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1361 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1362 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1363 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1364 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1365 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1366 | --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c] |
| 1367 | --htmldir=DIR html documentation [DOCDIR] |
| 1368 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1369 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1370 | --psdir=DIR ps documentation [DOCDIR] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1371 | _ACEOF |
| 1372 | |
| 1373 | cat <<\_ACEOF |
| 1374 | |
| 1375 | Program names: |
| 1376 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1377 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1378 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1379 | |
| 1380 | System types: |
| 1381 | --build=BUILD configure for building on BUILD [guessed] |
| 1382 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1383 | _ACEOF |
| 1384 | fi |
| 1385 | |
| 1386 | if test -n "$ac_init_help"; then |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1387 | case $ac_init_help in |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 1388 | short | recursive ) echo "Configuration of asn1c 0.9.24:";; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1389 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1390 | cat <<\_ACEOF |
| 1391 | |
| 1392 | Optional Features: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1393 | --disable-option-checking ignore unrecognized --enable/--with options |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1396 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1397 | --enable-static[=PKGS] build static libraries [default=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1398 | --enable-fast-install[=PKGS] |
| 1399 | optimize for fast installation [default=yes] |
| 1400 | --disable-dependency-tracking speeds up one-time build |
| 1401 | --enable-dependency-tracking do not reject slow dependency extractors |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1402 | --disable-libtool-lock avoid locking (might break parallel builds) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1403 | --enable-Werror abort compilation after any C compiler warning |
| 1404 | |
| 1405 | Optional Packages: |
| 1406 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1407 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1408 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1409 | both] |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 1410 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1411 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1412 | (or the compiler's sysroot if not specified). |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1413 | |
| 1414 | Some influential environment variables: |
| 1415 | CC C compiler command |
| 1416 | CFLAGS C compiler flags |
| 1417 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1418 | nonstandard directory <lib dir> |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 1419 | LIBS libraries to pass to the linker, e.g. -l<library> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1420 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1421 | you have headers in a nonstandard directory <include dir> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1422 | CPP C preprocessor |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1423 | YACC The `Yet Another Compiler Compiler' implementation to use. |
| 1424 | Defaults to the first program found out of: `bison -y', `byacc', |
| 1425 | `yacc'. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1426 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1427 | This script will default YFLAGS to the empty string to avoid a |
| 1428 | default value of `-d' given by some make applications. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1429 | |
| 1430 | Use these variables to override the choices made by `configure' or to help |
| 1431 | it to find libraries and programs with nonstandard names/locations. |
| 1432 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1433 | Report bugs to <vlm@lionet.info>. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1434 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1435 | ac_status=$? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1436 | fi |
| 1437 | |
| 1438 | if test "$ac_init_help" = "recursive"; then |
| 1439 | # If there are subdirs, report their specific --help. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1440 | 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] | 1441 | test -d "$ac_dir" || |
| 1442 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1443 | continue |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1444 | ac_builddir=. |
| 1445 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1446 | case "$ac_dir" in |
| 1447 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1448 | *) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1449 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1450 | # A ".." for each directory in $ac_dir_suffix. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1451 | 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] | 1452 | case $ac_top_builddir_sub in |
| 1453 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1454 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1455 | esac ;; |
| 1456 | esac |
| 1457 | ac_abs_top_builddir=$ac_pwd |
| 1458 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1459 | # for backward compatibility: |
| 1460 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1461 | |
| 1462 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1463 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1464 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1465 | ac_top_srcdir=$ac_top_builddir_sub |
| 1466 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1467 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1468 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1469 | ac_top_srcdir=$srcdir |
| 1470 | ac_abs_top_srcdir=$srcdir ;; |
| 1471 | *) # Relative name. |
| 1472 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1473 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1474 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1475 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1476 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1477 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1478 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1479 | # Check for guested configure. |
| 1480 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1481 | echo && |
| 1482 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1483 | elif test -f "$ac_srcdir/configure"; then |
| 1484 | echo && |
| 1485 | $SHELL "$ac_srcdir/configure" --help=recursive |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1486 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1487 | $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] | 1488 | fi || ac_status=$? |
| 1489 | cd "$ac_pwd" || { ac_status=$?; break; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1490 | done |
| 1491 | fi |
| 1492 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1493 | test -n "$ac_init_help" && exit $ac_status |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1494 | if $ac_init_version; then |
| 1495 | cat <<\_ACEOF |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 1496 | asn1c configure 0.9.24 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1497 | generated by GNU Autoconf 2.69 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1498 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1499 | Copyright (C) 2012 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1500 | This configure script is free software; the Free Software Foundation |
| 1501 | gives unlimited permission to copy, distribute and modify it. |
| 1502 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1503 | exit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1504 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1505 | |
| 1506 | ## ------------------------ ## |
| 1507 | ## Autoconf initialization. ## |
| 1508 | ## ------------------------ ## |
| 1509 | |
| 1510 | # ac_fn_c_try_compile LINENO |
| 1511 | # -------------------------- |
| 1512 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1513 | ac_fn_c_try_compile () |
| 1514 | { |
| 1515 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1516 | rm -f conftest.$ac_objext |
| 1517 | if { { ac_try="$ac_compile" |
| 1518 | case "(($ac_try" in |
| 1519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1520 | *) ac_try_echo=$ac_try;; |
| 1521 | esac |
| 1522 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1523 | $as_echo "$ac_try_echo"; } >&5 |
| 1524 | (eval "$ac_compile") 2>conftest.err |
| 1525 | ac_status=$? |
| 1526 | if test -s conftest.err; then |
| 1527 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1528 | cat conftest.er1 >&5 |
| 1529 | mv -f conftest.er1 conftest.err |
| 1530 | fi |
| 1531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1532 | test $ac_status = 0; } && { |
| 1533 | test -z "$ac_c_werror_flag" || |
| 1534 | test ! -s conftest.err |
| 1535 | } && test -s conftest.$ac_objext; then : |
| 1536 | ac_retval=0 |
| 1537 | else |
| 1538 | $as_echo "$as_me: failed program was:" >&5 |
| 1539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1540 | |
| 1541 | ac_retval=1 |
| 1542 | fi |
| 1543 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1544 | as_fn_set_status $ac_retval |
| 1545 | |
| 1546 | } # ac_fn_c_try_compile |
| 1547 | |
| 1548 | # ac_fn_c_try_link LINENO |
| 1549 | # ----------------------- |
| 1550 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1551 | ac_fn_c_try_link () |
| 1552 | { |
| 1553 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1555 | if { { ac_try="$ac_link" |
| 1556 | case "(($ac_try" in |
| 1557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1558 | *) ac_try_echo=$ac_try;; |
| 1559 | esac |
| 1560 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1561 | $as_echo "$ac_try_echo"; } >&5 |
| 1562 | (eval "$ac_link") 2>conftest.err |
| 1563 | ac_status=$? |
| 1564 | if test -s conftest.err; then |
| 1565 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1566 | cat conftest.er1 >&5 |
| 1567 | mv -f conftest.er1 conftest.err |
| 1568 | fi |
| 1569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1570 | test $ac_status = 0; } && { |
| 1571 | test -z "$ac_c_werror_flag" || |
| 1572 | test ! -s conftest.err |
| 1573 | } && test -s conftest$ac_exeext && { |
| 1574 | test "$cross_compiling" = yes || |
| 1575 | test -x conftest$ac_exeext |
| 1576 | }; then : |
| 1577 | ac_retval=0 |
| 1578 | else |
| 1579 | $as_echo "$as_me: failed program was:" >&5 |
| 1580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1581 | |
| 1582 | ac_retval=1 |
| 1583 | fi |
| 1584 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1585 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1586 | # interfere with the next link command; also delete a directory that is |
| 1587 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1588 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1590 | as_fn_set_status $ac_retval |
| 1591 | |
| 1592 | } # ac_fn_c_try_link |
| 1593 | |
| 1594 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1595 | # ------------------------------------------------------- |
| 1596 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1597 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1598 | ac_fn_c_check_header_compile () |
| 1599 | { |
| 1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1602 | $as_echo_n "checking for $2... " >&6; } |
| 1603 | if eval \${$3+:} false; then : |
| 1604 | $as_echo_n "(cached) " >&6 |
| 1605 | else |
| 1606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1607 | /* end confdefs.h. */ |
| 1608 | $4 |
| 1609 | #include <$2> |
| 1610 | _ACEOF |
| 1611 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1612 | eval "$3=yes" |
| 1613 | else |
| 1614 | eval "$3=no" |
| 1615 | fi |
| 1616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1617 | fi |
| 1618 | eval ac_res=\$$3 |
| 1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1620 | $as_echo "$ac_res" >&6; } |
| 1621 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1622 | |
| 1623 | } # ac_fn_c_check_header_compile |
| 1624 | |
| 1625 | # ac_fn_c_try_cpp LINENO |
| 1626 | # ---------------------- |
| 1627 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1628 | ac_fn_c_try_cpp () |
| 1629 | { |
| 1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1631 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1632 | case "(($ac_try" in |
| 1633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1634 | *) ac_try_echo=$ac_try;; |
| 1635 | esac |
| 1636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1637 | $as_echo "$ac_try_echo"; } >&5 |
| 1638 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1639 | ac_status=$? |
| 1640 | if test -s conftest.err; then |
| 1641 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1642 | cat conftest.er1 >&5 |
| 1643 | mv -f conftest.er1 conftest.err |
| 1644 | fi |
| 1645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1646 | test $ac_status = 0; } > conftest.i && { |
| 1647 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1648 | test ! -s conftest.err |
| 1649 | }; then : |
| 1650 | ac_retval=0 |
| 1651 | else |
| 1652 | $as_echo "$as_me: failed program was:" >&5 |
| 1653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1654 | |
| 1655 | ac_retval=1 |
| 1656 | fi |
| 1657 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1658 | as_fn_set_status $ac_retval |
| 1659 | |
| 1660 | } # ac_fn_c_try_cpp |
| 1661 | |
| 1662 | # ac_fn_c_try_run LINENO |
| 1663 | # ---------------------- |
| 1664 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1665 | # that executables *can* be run. |
| 1666 | ac_fn_c_try_run () |
| 1667 | { |
| 1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1669 | if { { ac_try="$ac_link" |
| 1670 | case "(($ac_try" in |
| 1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1672 | *) ac_try_echo=$ac_try;; |
| 1673 | esac |
| 1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1675 | $as_echo "$ac_try_echo"; } >&5 |
| 1676 | (eval "$ac_link") 2>&5 |
| 1677 | ac_status=$? |
| 1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1679 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1680 | { { case "(($ac_try" in |
| 1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1682 | *) ac_try_echo=$ac_try;; |
| 1683 | esac |
| 1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1685 | $as_echo "$ac_try_echo"; } >&5 |
| 1686 | (eval "$ac_try") 2>&5 |
| 1687 | ac_status=$? |
| 1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1689 | test $ac_status = 0; }; }; then : |
| 1690 | ac_retval=0 |
| 1691 | else |
| 1692 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1693 | $as_echo "$as_me: failed program was:" >&5 |
| 1694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1695 | |
| 1696 | ac_retval=$ac_status |
| 1697 | fi |
| 1698 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1700 | as_fn_set_status $ac_retval |
| 1701 | |
| 1702 | } # ac_fn_c_try_run |
| 1703 | |
| 1704 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1705 | # ---------------------------------- |
| 1706 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1707 | ac_fn_c_check_func () |
| 1708 | { |
| 1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1711 | $as_echo_n "checking for $2... " >&6; } |
| 1712 | if eval \${$3+:} false; then : |
| 1713 | $as_echo_n "(cached) " >&6 |
| 1714 | else |
| 1715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1716 | /* end confdefs.h. */ |
| 1717 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1719 | #define $2 innocuous_$2 |
| 1720 | |
| 1721 | /* System header to define __stub macros and hopefully few prototypes, |
| 1722 | which can conflict with char $2 (); below. |
| 1723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1724 | <limits.h> exists even on freestanding compilers. */ |
| 1725 | |
| 1726 | #ifdef __STDC__ |
| 1727 | # include <limits.h> |
| 1728 | #else |
| 1729 | # include <assert.h> |
| 1730 | #endif |
| 1731 | |
| 1732 | #undef $2 |
| 1733 | |
| 1734 | /* Override any GCC internal prototype to avoid an error. |
| 1735 | Use char because int might match the return type of a GCC |
| 1736 | builtin and then its argument prototype would still apply. */ |
| 1737 | #ifdef __cplusplus |
| 1738 | extern "C" |
| 1739 | #endif |
| 1740 | char $2 (); |
| 1741 | /* The GNU C library defines this for functions which it implements |
| 1742 | to always fail with ENOSYS. Some functions are actually named |
| 1743 | something starting with __ and the normal name is an alias. */ |
| 1744 | #if defined __stub_$2 || defined __stub___$2 |
| 1745 | choke me |
| 1746 | #endif |
| 1747 | |
| 1748 | int |
| 1749 | main () |
| 1750 | { |
| 1751 | return $2 (); |
| 1752 | ; |
| 1753 | return 0; |
| 1754 | } |
| 1755 | _ACEOF |
| 1756 | if ac_fn_c_try_link "$LINENO"; then : |
| 1757 | eval "$3=yes" |
| 1758 | else |
| 1759 | eval "$3=no" |
| 1760 | fi |
| 1761 | rm -f core conftest.err conftest.$ac_objext \ |
| 1762 | conftest$ac_exeext conftest.$ac_ext |
| 1763 | fi |
| 1764 | eval ac_res=\$$3 |
| 1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1766 | $as_echo "$ac_res" >&6; } |
| 1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1768 | |
| 1769 | } # ac_fn_c_check_func |
| 1770 | |
| 1771 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1772 | # ------------------------------------------------------- |
| 1773 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1774 | # the include files in INCLUDES and setting the cache variable VAR |
| 1775 | # accordingly. |
| 1776 | ac_fn_c_check_header_mongrel () |
| 1777 | { |
| 1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1779 | if eval \${$3+:} false; then : |
| 1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1781 | $as_echo_n "checking for $2... " >&6; } |
| 1782 | if eval \${$3+:} false; then : |
| 1783 | $as_echo_n "(cached) " >&6 |
| 1784 | fi |
| 1785 | eval ac_res=\$$3 |
| 1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1787 | $as_echo "$ac_res" >&6; } |
| 1788 | else |
| 1789 | # Is the header compilable? |
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1791 | $as_echo_n "checking $2 usability... " >&6; } |
| 1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1793 | /* end confdefs.h. */ |
| 1794 | $4 |
| 1795 | #include <$2> |
| 1796 | _ACEOF |
| 1797 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1798 | ac_header_compiler=yes |
| 1799 | else |
| 1800 | ac_header_compiler=no |
| 1801 | fi |
| 1802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1804 | $as_echo "$ac_header_compiler" >&6; } |
| 1805 | |
| 1806 | # Is the header present? |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1808 | $as_echo_n "checking $2 presence... " >&6; } |
| 1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1810 | /* end confdefs.h. */ |
| 1811 | #include <$2> |
| 1812 | _ACEOF |
| 1813 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1814 | ac_header_preproc=yes |
| 1815 | else |
| 1816 | ac_header_preproc=no |
| 1817 | fi |
| 1818 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1820 | $as_echo "$ac_header_preproc" >&6; } |
| 1821 | |
| 1822 | # So? What about this header? |
| 1823 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1824 | yes:no: ) |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1826 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1828 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1829 | ;; |
| 1830 | no:yes:* ) |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1832 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1834 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1836 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1838 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1840 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1841 | ( $as_echo "## ------------------------------ ## |
| 1842 | ## Report this to vlm@lionet.info ## |
| 1843 | ## ------------------------------ ##" |
| 1844 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1845 | ;; |
| 1846 | esac |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1848 | $as_echo_n "checking for $2... " >&6; } |
| 1849 | if eval \${$3+:} false; then : |
| 1850 | $as_echo_n "(cached) " >&6 |
| 1851 | else |
| 1852 | eval "$3=\$ac_header_compiler" |
| 1853 | fi |
| 1854 | eval ac_res=\$$3 |
| 1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1856 | $as_echo "$ac_res" >&6; } |
| 1857 | fi |
| 1858 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1859 | |
| 1860 | } # ac_fn_c_check_header_mongrel |
| 1861 | |
| 1862 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1863 | # ------------------------------------------- |
| 1864 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1865 | # variable VAR accordingly. |
| 1866 | ac_fn_c_check_type () |
| 1867 | { |
| 1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1870 | $as_echo_n "checking for $2... " >&6; } |
| 1871 | if eval \${$3+:} false; then : |
| 1872 | $as_echo_n "(cached) " >&6 |
| 1873 | else |
| 1874 | eval "$3=no" |
| 1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1876 | /* end confdefs.h. */ |
| 1877 | $4 |
| 1878 | int |
| 1879 | main () |
| 1880 | { |
| 1881 | if (sizeof ($2)) |
| 1882 | return 0; |
| 1883 | ; |
| 1884 | return 0; |
| 1885 | } |
| 1886 | _ACEOF |
| 1887 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1889 | /* end confdefs.h. */ |
| 1890 | $4 |
| 1891 | int |
| 1892 | main () |
| 1893 | { |
| 1894 | if (sizeof (($2))) |
| 1895 | return 0; |
| 1896 | ; |
| 1897 | return 0; |
| 1898 | } |
| 1899 | _ACEOF |
| 1900 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1901 | |
| 1902 | else |
| 1903 | eval "$3=yes" |
| 1904 | fi |
| 1905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1906 | fi |
| 1907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1908 | fi |
| 1909 | eval ac_res=\$$3 |
| 1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1911 | $as_echo "$ac_res" >&6; } |
| 1912 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1913 | |
| 1914 | } # ac_fn_c_check_type |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1915 | cat >config.log <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1916 | This file contains any messages produced by compilers while |
| 1917 | running configure, to aid debugging if configure makes a mistake. |
| 1918 | |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 1919 | It was created by asn1c $as_me 0.9.24, which was |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1920 | generated by GNU Autoconf 2.69. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1921 | |
| 1922 | $ $0 $@ |
| 1923 | |
| 1924 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1925 | exec 5>>config.log |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1926 | { |
| 1927 | cat <<_ASUNAME |
| 1928 | ## --------- ## |
| 1929 | ## Platform. ## |
| 1930 | ## --------- ## |
| 1931 | |
| 1932 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1933 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1934 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1935 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1936 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1937 | |
| 1938 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1939 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1940 | |
| 1941 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1942 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1943 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1944 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1945 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1946 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1947 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1948 | |
| 1949 | _ASUNAME |
| 1950 | |
| 1951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1952 | for as_dir in $PATH |
| 1953 | do |
| 1954 | IFS=$as_save_IFS |
| 1955 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1956 | $as_echo "PATH: $as_dir" |
| 1957 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1958 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1959 | |
| 1960 | } >&5 |
| 1961 | |
| 1962 | cat >&5 <<_ACEOF |
| 1963 | |
| 1964 | |
| 1965 | ## ----------- ## |
| 1966 | ## Core tests. ## |
| 1967 | ## ----------- ## |
| 1968 | |
| 1969 | _ACEOF |
| 1970 | |
| 1971 | |
| 1972 | # Keep a trace of the command line. |
| 1973 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1974 | # Strip out --silent because we don't want to record it for future runs. |
| 1975 | # Also quote any args containing shell meta-characters. |
| 1976 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1977 | ac_configure_args= |
| 1978 | ac_configure_args0= |
| 1979 | ac_configure_args1= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1980 | ac_must_keep_next=false |
| 1981 | for ac_pass in 1 2 |
| 1982 | do |
| 1983 | for ac_arg |
| 1984 | do |
| 1985 | case $ac_arg in |
| 1986 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1988 | | -silent | --silent | --silen | --sile | --sil) |
| 1989 | continue ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1990 | *\'*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1991 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1992 | esac |
| 1993 | case $ac_pass in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1994 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1995 | 2) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1996 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1997 | if test $ac_must_keep_next = true; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1998 | ac_must_keep_next=false # Got value, back to normal. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1999 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2000 | case $ac_arg in |
| 2001 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2002 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2003 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2004 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2005 | case "$ac_configure_args0 " in |
| 2006 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2007 | esac |
| 2008 | ;; |
| 2009 | -* ) ac_must_keep_next=true ;; |
| 2010 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2011 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2012 | as_fn_append ac_configure_args " '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2013 | ;; |
| 2014 | esac |
| 2015 | done |
| 2016 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2017 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2018 | { ac_configure_args1=; unset ac_configure_args1;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2019 | |
| 2020 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2021 | # config.log. We remove comments because anyway the quotes in there |
| 2022 | # would cause problems or look ugly. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2023 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2024 | # 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] | 2025 | trap 'exit_status=$? |
| 2026 | # Save into config.log some information that might help in debugging. |
| 2027 | { |
| 2028 | echo |
| 2029 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2030 | $as_echo "## ---------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2031 | ## Cache variables. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2032 | ## ---------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2033 | echo |
| 2034 | # The following way of writing the cache mishandles newlines in values, |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2035 | ( |
| 2036 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2037 | eval ac_val=\$$ac_var |
| 2038 | case $ac_val in #( |
| 2039 | *${as_nl}*) |
| 2040 | case $ac_var in #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2041 | *_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] | 2042 | $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] | 2043 | esac |
| 2044 | case $ac_var in #( |
| 2045 | _ | IFS | as_nl) ;; #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2046 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2047 | *) { eval $ac_var=; unset $ac_var;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2048 | esac ;; |
| 2049 | esac |
| 2050 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2051 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2052 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2053 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2054 | sed -n \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2055 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2056 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2057 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2058 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2059 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2060 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2061 | esac | |
| 2062 | sort |
| 2063 | ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2064 | echo |
| 2065 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2066 | $as_echo "## ----------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2067 | ## Output variables. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2068 | ## ----------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2069 | echo |
| 2070 | for ac_var in $ac_subst_vars |
| 2071 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2072 | eval ac_val=\$$ac_var |
| 2073 | case $ac_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2074 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2075 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2076 | $as_echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2077 | done | sort |
| 2078 | echo |
| 2079 | |
| 2080 | if test -n "$ac_subst_files"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2081 | $as_echo "## ------------------- ## |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2082 | ## File substitutions. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2083 | ## ------------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2084 | echo |
| 2085 | for ac_var in $ac_subst_files |
| 2086 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2087 | eval ac_val=\$$ac_var |
| 2088 | case $ac_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2089 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2090 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2091 | $as_echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2092 | done | sort |
| 2093 | echo |
| 2094 | fi |
| 2095 | |
| 2096 | if test -s confdefs.h; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2097 | $as_echo "## ----------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2098 | ## confdefs.h. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2099 | ## ----------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2100 | echo |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2101 | cat confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2102 | echo |
| 2103 | fi |
| 2104 | test "$ac_signal" != 0 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2105 | $as_echo "$as_me: caught signal $ac_signal" |
| 2106 | $as_echo "$as_me: exit $exit_status" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2107 | } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2108 | rm -f core *.core core.conftest.* && |
| 2109 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2110 | exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2111 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2112 | for ac_signal in 1 2 13 15; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2113 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2114 | done |
| 2115 | ac_signal=0 |
| 2116 | |
| 2117 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2118 | rm -f -r conftest* confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2119 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2120 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2121 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2122 | # Predefined preprocessor variables. |
| 2123 | |
| 2124 | cat >>confdefs.h <<_ACEOF |
| 2125 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2126 | _ACEOF |
| 2127 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2128 | cat >>confdefs.h <<_ACEOF |
| 2129 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2130 | _ACEOF |
| 2131 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2132 | cat >>confdefs.h <<_ACEOF |
| 2133 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2134 | _ACEOF |
| 2135 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2136 | cat >>confdefs.h <<_ACEOF |
| 2137 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2138 | _ACEOF |
| 2139 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2140 | cat >>confdefs.h <<_ACEOF |
| 2141 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2142 | _ACEOF |
| 2143 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2144 | cat >>confdefs.h <<_ACEOF |
| 2145 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2146 | _ACEOF |
| 2147 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2148 | |
| 2149 | # 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] | 2150 | # Prefer an explicitly selected file to automatically selected ones. |
| 2151 | ac_site_file1=NONE |
| 2152 | ac_site_file2=NONE |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2153 | if test -n "$CONFIG_SITE"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2154 | # We do not want a PATH search for config.site. |
| 2155 | case $CONFIG_SITE in #(( |
| 2156 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2157 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2158 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2159 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2160 | elif test "x$prefix" != xNONE; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2161 | ac_site_file1=$prefix/share/config.site |
| 2162 | ac_site_file2=$prefix/etc/config.site |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2163 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2164 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2165 | ac_site_file2=$ac_default_prefix/etc/config.site |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2166 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2167 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2168 | do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2169 | test "x$ac_site_file" = xNONE && continue |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2170 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2171 | { $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] | 2172 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2173 | sed 's/^/| /' "$ac_site_file" >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2174 | . "$ac_site_file" \ |
| 2175 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2177 | as_fn_error $? "failed to load site script $ac_site_file |
| 2178 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2179 | fi |
| 2180 | done |
| 2181 | |
| 2182 | if test -r "$cache_file"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2183 | # Some versions of bash will fail to source /dev/null (special files |
| 2184 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2185 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2187 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2188 | case $cache_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2189 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2190 | *) . "./$cache_file";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2191 | esac |
| 2192 | fi |
| 2193 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2195 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2196 | >$cache_file |
| 2197 | fi |
| 2198 | |
| 2199 | # Check that the precious variables saved in the cache have kept the same |
| 2200 | # value. |
| 2201 | ac_cache_corrupted=false |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2202 | for ac_var in $ac_precious_vars; do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2203 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2204 | eval ac_new_set=\$ac_env_${ac_var}_set |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2205 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2206 | eval ac_new_val=\$ac_env_${ac_var}_value |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2207 | case $ac_old_set,$ac_new_set in |
| 2208 | set,) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2209 | { $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] | 2210 | $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] | 2211 | ac_cache_corrupted=: ;; |
| 2212 | ,set) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2213 | { $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] | 2214 | $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] | 2215 | ac_cache_corrupted=: ;; |
| 2216 | ,);; |
| 2217 | *) |
| 2218 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2219 | # differences in whitespace do not lead to failure. |
| 2220 | ac_old_val_w=`echo x $ac_old_val` |
| 2221 | ac_new_val_w=`echo x $ac_new_val` |
| 2222 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2223 | { $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] | 2224 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2225 | ac_cache_corrupted=: |
| 2226 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2227 | { $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] | 2228 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2229 | eval $ac_var=\$ac_old_val |
| 2230 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2231 | { $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] | 2232 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2233 | { $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] | 2234 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2235 | fi;; |
| 2236 | esac |
| 2237 | # Pass precious variables to config.status. |
| 2238 | if test "$ac_new_set" = set; then |
| 2239 | case $ac_new_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2240 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2241 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2242 | esac |
| 2243 | case " $ac_configure_args " in |
| 2244 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2245 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2246 | esac |
| 2247 | fi |
| 2248 | done |
| 2249 | if $ac_cache_corrupted; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2252 | { $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] | 2253 | $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] | 2254 | 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] | 2255 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2256 | ## -------------------- ## |
| 2257 | ## Main body of script. ## |
| 2258 | ## -------------------- ## |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2259 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2260 | ac_ext=c |
| 2261 | ac_cpp='$CPP $CPPFLAGS' |
| 2262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2265 | |
| 2266 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2267 | am__api_version='1.11' |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2268 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2269 | ac_aux_dir= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2270 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2271 | if test -f "$ac_dir/install-sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2272 | ac_aux_dir=$ac_dir |
| 2273 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2274 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2275 | elif test -f "$ac_dir/install.sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2276 | ac_aux_dir=$ac_dir |
| 2277 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2278 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2279 | elif test -f "$ac_dir/shtool"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2280 | ac_aux_dir=$ac_dir |
| 2281 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2282 | break |
| 2283 | fi |
| 2284 | done |
| 2285 | if test -z "$ac_aux_dir"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2286 | 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] | 2287 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2288 | |
| 2289 | # These three variables are undocumented and unsupported, |
| 2290 | # and are intended to be withdrawn in a future Autoconf release. |
| 2291 | # They can cause serious problems if a builder's source tree is in a directory |
| 2292 | # whose full name contains unusual characters. |
| 2293 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2294 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2295 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2296 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2297 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2298 | # Find a good install program. We prefer a C program (faster), |
| 2299 | # so one script is as good as another. But avoid the broken or |
| 2300 | # incompatible versions: |
| 2301 | # SysV /etc/install, /usr/sbin/install |
| 2302 | # SunOS /usr/etc/install |
| 2303 | # IRIX /sbin/install |
| 2304 | # AIX /bin/install |
| 2305 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2306 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2307 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2308 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2309 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2310 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2311 | # Reject install programs that cannot install multiple files. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2312 | { $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] | 2313 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2314 | if test -z "$INSTALL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2315 | if ${ac_cv_path_install+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2316 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2317 | else |
| 2318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2319 | for as_dir in $PATH |
| 2320 | do |
| 2321 | IFS=$as_save_IFS |
| 2322 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2323 | # Account for people who put trailing slashes in PATH elements. |
| 2324 | case $as_dir/ in #(( |
| 2325 | ./ | .// | /[cC]/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2326 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2327 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2328 | /usr/ucb/* ) ;; |
| 2329 | *) |
| 2330 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2331 | # Don't use installbsd from OSF since it installs stuff as root |
| 2332 | # by default. |
| 2333 | for ac_prog in ginstall scoinst install; do |
| 2334 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2335 | 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] | 2336 | if test $ac_prog = install && |
| 2337 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2338 | # AIX install. It has an incompatible calling convention. |
| 2339 | : |
| 2340 | elif test $ac_prog = install && |
| 2341 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2342 | # program-specific install script used by HP pwplus--don't use. |
| 2343 | : |
| 2344 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2345 | rm -rf conftest.one conftest.two conftest.dir |
| 2346 | echo one > conftest.one |
| 2347 | echo two > conftest.two |
| 2348 | mkdir conftest.dir |
| 2349 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2350 | test -s conftest.one && test -s conftest.two && |
| 2351 | test -s conftest.dir/conftest.one && |
| 2352 | test -s conftest.dir/conftest.two |
| 2353 | then |
| 2354 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2355 | break 3 |
| 2356 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2357 | fi |
| 2358 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2359 | done |
| 2360 | done |
| 2361 | ;; |
| 2362 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2363 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2364 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2365 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2366 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2367 | rm -rf conftest.one conftest.two conftest.dir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2368 | |
| 2369 | fi |
| 2370 | if test "${ac_cv_path_install+set}" = set; then |
| 2371 | INSTALL=$ac_cv_path_install |
| 2372 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2373 | # As a last resort, use the slow shell script. Don't cache a |
| 2374 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2375 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2376 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2377 | INSTALL=$ac_install_sh |
| 2378 | fi |
| 2379 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2381 | $as_echo "$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2382 | |
| 2383 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2384 | # It thinks the first close brace ends the variable substitution. |
| 2385 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2386 | |
| 2387 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2388 | |
| 2389 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2390 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2391 | { $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] | 2392 | $as_echo_n "checking whether build environment is sane... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2393 | # Just in case |
| 2394 | sleep 1 |
| 2395 | echo timestamp > conftest.file |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2396 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2397 | # name. Accept space and tab only in the latter. |
| 2398 | am_lf=' |
| 2399 | ' |
| 2400 | case `pwd` in |
| 2401 | *[\\\"\#\$\&\'\`$am_lf]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2402 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2403 | esac |
| 2404 | case $srcdir in |
| 2405 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2406 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2407 | esac |
| 2408 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2409 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2410 | # arguments. Must try -L first in case configure is actually a |
| 2411 | # symlink; some systems play weird games with the mod time of symlinks |
| 2412 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2413 | # directory). |
| 2414 | if ( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2415 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2416 | if test "$*" = "X"; then |
| 2417 | # -L didn't work. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2418 | set X `ls -t "$srcdir/configure" conftest.file` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2419 | fi |
| 2420 | rm -f conftest.file |
| 2421 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2422 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2423 | |
| 2424 | # If neither matched, then we have a broken ls. This can happen |
| 2425 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2426 | # broken ls alias from the environment. This has actually |
| 2427 | # happened. Such a system could not be considered "sane". |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2428 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2429 | alias in your environment" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2430 | fi |
| 2431 | |
| 2432 | test "$2" = conftest.file |
| 2433 | ) |
| 2434 | then |
| 2435 | # Ok. |
| 2436 | : |
| 2437 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2438 | as_fn_error $? "newly created file is older than distributed files! |
| 2439 | Check your system clock" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2440 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2442 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2443 | test "$program_prefix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2444 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2445 | # Use a double $ so make ignores it. |
| 2446 | test "$program_suffix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2447 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2448 | # Double any \ or $. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2449 | # By default was `s,x,x', remove it if useless. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2450 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2451 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2452 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2453 | # expand $ac_aux_dir to an absolute path |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2454 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2455 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2456 | if test x"${MISSING+set}" != xset; then |
| 2457 | case $am_aux_dir in |
| 2458 | *\ * | *\ *) |
| 2459 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2460 | *) |
| 2461 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2462 | esac |
| 2463 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2464 | # Use eval to expand $SHELL |
| 2465 | if eval "$MISSING --run true"; then |
| 2466 | am_missing_run="$MISSING --run " |
| 2467 | else |
| 2468 | am_missing_run= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2469 | { $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] | 2470 | $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] | 2471 | fi |
| 2472 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2473 | if test x"${install_sh}" != xset; then |
| 2474 | case $am_aux_dir in |
| 2475 | *\ * | *\ *) |
| 2476 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2477 | *) |
| 2478 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2479 | esac |
| 2480 | fi |
| 2481 | |
| 2482 | # Installed binaries are usually stripped using `strip' when the user |
| 2483 | # run `make install-strip'. However `strip' might not be the right |
| 2484 | # tool to use in cross-compilation environments, therefore Automake |
| 2485 | # will honor the `STRIP' environment variable to overrule this program. |
| 2486 | if test "$cross_compiling" != no; then |
| 2487 | if test -n "$ac_tool_prefix"; then |
| 2488 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2489 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2491 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2492 | if ${ac_cv_prog_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2493 | $as_echo_n "(cached) " >&6 |
| 2494 | else |
| 2495 | if test -n "$STRIP"; then |
| 2496 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2497 | else |
| 2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2499 | for as_dir in $PATH |
| 2500 | do |
| 2501 | IFS=$as_save_IFS |
| 2502 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2504 | 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] | 2505 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2506 | $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] | 2507 | break 2 |
| 2508 | fi |
| 2509 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2510 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2511 | IFS=$as_save_IFS |
| 2512 | |
| 2513 | fi |
| 2514 | fi |
| 2515 | STRIP=$ac_cv_prog_STRIP |
| 2516 | if test -n "$STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2518 | $as_echo "$STRIP" >&6; } |
| 2519 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2521 | $as_echo "no" >&6; } |
| 2522 | fi |
| 2523 | |
| 2524 | |
| 2525 | fi |
| 2526 | if test -z "$ac_cv_prog_STRIP"; then |
| 2527 | ac_ct_STRIP=$STRIP |
| 2528 | # Extract the first word of "strip", so it can be a program name with args. |
| 2529 | set dummy strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2531 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2532 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2533 | $as_echo_n "(cached) " >&6 |
| 2534 | else |
| 2535 | if test -n "$ac_ct_STRIP"; then |
| 2536 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2537 | else |
| 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2539 | for as_dir in $PATH |
| 2540 | do |
| 2541 | IFS=$as_save_IFS |
| 2542 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2544 | 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] | 2545 | ac_cv_prog_ac_ct_STRIP="strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2546 | $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] | 2547 | break 2 |
| 2548 | fi |
| 2549 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2550 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2551 | IFS=$as_save_IFS |
| 2552 | |
| 2553 | fi |
| 2554 | fi |
| 2555 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2556 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2558 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2559 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2561 | $as_echo "no" >&6; } |
| 2562 | fi |
| 2563 | |
| 2564 | if test "x$ac_ct_STRIP" = x; then |
| 2565 | STRIP=":" |
| 2566 | else |
| 2567 | case $cross_compiling:$ac_tool_warned in |
| 2568 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2569 | { $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] | 2570 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2571 | ac_tool_warned=yes ;; |
| 2572 | esac |
| 2573 | STRIP=$ac_ct_STRIP |
| 2574 | fi |
| 2575 | else |
| 2576 | STRIP="$ac_cv_prog_STRIP" |
| 2577 | fi |
| 2578 | |
| 2579 | fi |
| 2580 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2581 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2582 | { $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] | 2583 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2584 | if test -z "$MKDIR_P"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2585 | if ${ac_cv_path_mkdir+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2586 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2587 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2589 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2590 | do |
| 2591 | IFS=$as_save_IFS |
| 2592 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2593 | for ac_prog in mkdir gmkdir; do |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2595 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2596 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2597 | 'mkdir (GNU coreutils) '* | \ |
| 2598 | 'mkdir (coreutils) '* | \ |
| 2599 | 'mkdir (fileutils) '4.1*) |
| 2600 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2601 | break 3;; |
| 2602 | esac |
| 2603 | done |
| 2604 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2605 | done |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2606 | IFS=$as_save_IFS |
| 2607 | |
| 2608 | fi |
| 2609 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2610 | test -d ./--version && rmdir ./--version |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2611 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2612 | MKDIR_P="$ac_cv_path_mkdir -p" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2613 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2614 | # As a last resort, use the slow shell script. Don't cache a |
| 2615 | # value for MKDIR_P within a source directory, because that will |
| 2616 | # break other packages using the cache if that directory is |
| 2617 | # removed, or if the value is a relative name. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2618 | MKDIR_P="$ac_install_sh -d" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2619 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2620 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2622 | $as_echo "$MKDIR_P" >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2623 | |
| 2624 | mkdir_p="$MKDIR_P" |
| 2625 | case $mkdir_p in |
| 2626 | [\\/$]* | ?:[\\/]*) ;; |
| 2627 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2628 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2629 | |
| 2630 | for ac_prog in gawk mawk nawk awk |
| 2631 | do |
| 2632 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2633 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2635 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2636 | if ${ac_cv_prog_AWK+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2637 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2638 | else |
| 2639 | if test -n "$AWK"; then |
| 2640 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2641 | else |
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2643 | for as_dir in $PATH |
| 2644 | do |
| 2645 | IFS=$as_save_IFS |
| 2646 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2648 | 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] | 2649 | ac_cv_prog_AWK="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2650 | $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] | 2651 | break 2 |
| 2652 | fi |
| 2653 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2654 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2655 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2656 | |
| 2657 | fi |
| 2658 | fi |
| 2659 | AWK=$ac_cv_prog_AWK |
| 2660 | if test -n "$AWK"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2662 | $as_echo "$AWK" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2663 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2665 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2666 | fi |
| 2667 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2668 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2669 | test -n "$AWK" && break |
| 2670 | done |
| 2671 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2672 | { $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] | 2673 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2674 | set x ${MAKE-make} |
| 2675 | 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] | 2676 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2677 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2678 | else |
| 2679 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2680 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2681 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2682 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2683 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2684 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2685 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2686 | *@@@%%%=?*=@@@%%%*) |
| 2687 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2688 | *) |
| 2689 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2690 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2691 | rm -f conftest.make |
| 2692 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2693 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2695 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2696 | SET_MAKE= |
| 2697 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2699 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2700 | SET_MAKE="MAKE=${MAKE-make}" |
| 2701 | fi |
| 2702 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2703 | rm -rf .tst 2>/dev/null |
| 2704 | mkdir .tst 2>/dev/null |
| 2705 | if test -d .tst; then |
| 2706 | am__leading_dot=. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2707 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2708 | am__leading_dot=_ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2709 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2710 | rmdir .tst 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2711 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2712 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2713 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2714 | # is not polluted with repeated "-I." |
| 2715 | am__isrc=' -I$(srcdir)' |
| 2716 | # test to see if srcdir already configured |
| 2717 | if test -f $srcdir/config.status; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2718 | 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] | 2719 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2720 | fi |
| 2721 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2722 | # test whether we have cygpath |
| 2723 | if test -z "$CYGPATH_W"; then |
| 2724 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2725 | CYGPATH_W='cygpath -w' |
| 2726 | else |
| 2727 | CYGPATH_W=echo |
| 2728 | fi |
| 2729 | fi |
| 2730 | |
| 2731 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2732 | # Define the identity of the package. |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2733 | PACKAGE='asn1c' |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 2734 | VERSION='0.9.24' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2735 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2736 | |
| 2737 | cat >>confdefs.h <<_ACEOF |
| 2738 | #define PACKAGE "$PACKAGE" |
| 2739 | _ACEOF |
| 2740 | |
| 2741 | |
| 2742 | cat >>confdefs.h <<_ACEOF |
| 2743 | #define VERSION "$VERSION" |
| 2744 | _ACEOF |
| 2745 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2746 | # Some tools Automake needs. |
| 2747 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2748 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2749 | |
| 2750 | |
| 2751 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2752 | |
| 2753 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2754 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2755 | |
| 2756 | |
| 2757 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2758 | |
| 2759 | |
| 2760 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2761 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2762 | # We need awk for the "check" target. The system "awk" is bad on |
| 2763 | # some platforms. |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2764 | # Always define AMTAR for backward compatibility. |
| 2765 | |
| 2766 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2767 | |
| 2768 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2769 | |
| 2770 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2771 | |
| 2772 | |
| 2773 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2774 | ac_config_headers="$ac_config_headers config.h" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2775 | |
| 2776 | |
| 2777 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2778 | case `pwd` in |
| 2779 | *\ * | *\ *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2780 | { $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] | 2781 | $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] | 2782 | esac |
| 2783 | |
| 2784 | |
| 2785 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2786 | macro_version='2.4' |
| 2787 | macro_revision='1.3293' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
| 2792 | |
| 2793 | |
| 2794 | |
| 2795 | |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2802 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2803 | # Make sure we can run config.sub. |
| 2804 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2805 | 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] | 2806 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2808 | $as_echo_n "checking build system type... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2809 | if ${ac_cv_build+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2810 | $as_echo_n "(cached) " >&6 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2811 | else |
| 2812 | ac_build_alias=$build_alias |
| 2813 | test "x$ac_build_alias" = x && |
| 2814 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2815 | test "x$ac_build_alias" = x && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2816 | 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] | 2817 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2818 | 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] | 2819 | |
| 2820 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2822 | $as_echo "$ac_cv_build" >&6; } |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2823 | case $ac_cv_build in |
| 2824 | *-*-*) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2825 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2826 | esac |
| 2827 | build=$ac_cv_build |
| 2828 | ac_save_IFS=$IFS; IFS='-' |
| 2829 | set x $ac_cv_build |
| 2830 | shift |
| 2831 | build_cpu=$1 |
| 2832 | build_vendor=$2 |
| 2833 | shift; shift |
| 2834 | # Remember, the first character of IFS is used to create $*, |
| 2835 | # except with old shells: |
| 2836 | build_os=$* |
| 2837 | IFS=$ac_save_IFS |
| 2838 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2839 | |
| 2840 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2842 | $as_echo_n "checking host system type... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2843 | if ${ac_cv_host+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2844 | $as_echo_n "(cached) " >&6 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2845 | else |
| 2846 | if test "x$host_alias" = x; then |
| 2847 | ac_cv_host=$ac_cv_build |
| 2848 | else |
| 2849 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2850 | 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] | 2851 | fi |
| 2852 | |
| 2853 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2855 | $as_echo "$ac_cv_host" >&6; } |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2856 | case $ac_cv_host in |
| 2857 | *-*-*) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2858 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2859 | esac |
| 2860 | host=$ac_cv_host |
| 2861 | ac_save_IFS=$IFS; IFS='-' |
| 2862 | set x $ac_cv_host |
| 2863 | shift |
| 2864 | host_cpu=$1 |
| 2865 | host_vendor=$2 |
| 2866 | shift; shift |
| 2867 | # Remember, the first character of IFS is used to create $*, |
| 2868 | # except with old shells: |
| 2869 | host_os=$* |
| 2870 | IFS=$ac_save_IFS |
| 2871 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2872 | |
| 2873 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2874 | # Backslashify metacharacters that are still active within |
| 2875 | # double-quoted strings. |
| 2876 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 2877 | |
| 2878 | # Same as above, but do not quote variable references. |
| 2879 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 2880 | |
| 2881 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 2882 | # double_quote_subst'ed string. |
| 2883 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2884 | |
| 2885 | # Sed substitution to delay expansion of an escaped single quote. |
| 2886 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 2887 | |
| 2888 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 2889 | no_glob_subst='s/\*/\\\*/g' |
| 2890 | |
| 2891 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2892 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2893 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2894 | |
| 2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 2896 | $as_echo_n "checking how to print strings... " >&6; } |
| 2897 | # Test print first, because it will be a builtin if present. |
| 2898 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 2899 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2900 | ECHO='print -r --' |
| 2901 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2902 | ECHO='printf %s\n' |
| 2903 | else |
| 2904 | # Use this function as a fallback that always works. |
| 2905 | func_fallback_echo () |
| 2906 | { |
| 2907 | eval 'cat <<_LTECHO_EOF |
| 2908 | $1 |
| 2909 | _LTECHO_EOF' |
| 2910 | } |
| 2911 | ECHO='func_fallback_echo' |
| 2912 | fi |
| 2913 | |
| 2914 | # func_echo_all arg... |
| 2915 | # Invoke $ECHO with all args, space-separated. |
| 2916 | func_echo_all () |
| 2917 | { |
| 2918 | $ECHO "" |
| 2919 | } |
| 2920 | |
| 2921 | case "$ECHO" in |
| 2922 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 2923 | $as_echo "printf" >&6; } ;; |
| 2924 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 2925 | $as_echo "print -r" >&6; } ;; |
| 2926 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 2927 | $as_echo "cat" >&6; } ;; |
| 2928 | esac |
| 2929 | |
| 2930 | |
| 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
| 2935 | |
| 2936 | |
| 2937 | |
| 2938 | |
| 2939 | |
| 2940 | |
| 2941 | |
| 2942 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2943 | DEPDIR="${am__leading_dot}deps" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2944 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2945 | ac_config_commands="$ac_config_commands depfiles" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2946 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2947 | |
| 2948 | am_make=${MAKE-make} |
| 2949 | cat > confinc << 'END' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2950 | am__doit: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2951 | @echo this is the am__doit target |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2952 | .PHONY: am__doit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2953 | END |
| 2954 | # 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] | 2955 | { $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] | 2956 | $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] | 2957 | am__include="#" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2958 | am__quote= |
| 2959 | _am_result=none |
| 2960 | # First try GNU make style include. |
| 2961 | echo "include confinc" > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2962 | # Ignore all kinds of additional output from `make'. |
| 2963 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2964 | *the\ am__doit\ target*) |
| 2965 | am__include=include |
| 2966 | am__quote= |
| 2967 | _am_result=GNU |
| 2968 | ;; |
| 2969 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2970 | # Now try BSD make style include. |
| 2971 | if test "$am__include" = "#"; then |
| 2972 | echo '.include "confinc"' > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2973 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2974 | *the\ am__doit\ target*) |
| 2975 | am__include=.include |
| 2976 | am__quote="\"" |
| 2977 | _am_result=BSD |
| 2978 | ;; |
| 2979 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2980 | fi |
| 2981 | |
| 2982 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2984 | $as_echo "$_am_result" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2985 | rm -f confinc confmf |
| 2986 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2987 | # Check whether --enable-dependency-tracking was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2988 | if test "${enable_dependency_tracking+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2989 | enableval=$enable_dependency_tracking; |
| 2990 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2991 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2992 | if test "x$enable_dependency_tracking" != xno; then |
| 2993 | am_depcomp="$ac_aux_dir/depcomp" |
| 2994 | AMDEPBACKSLASH='\' |
| 2995 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2996 | if test "x$enable_dependency_tracking" != xno; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2997 | AMDEP_TRUE= |
| 2998 | AMDEP_FALSE='#' |
| 2999 | else |
| 3000 | AMDEP_TRUE='#' |
| 3001 | AMDEP_FALSE= |
| 3002 | fi |
| 3003 | |
| 3004 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3005 | ac_ext=c |
| 3006 | ac_cpp='$CPP $CPPFLAGS' |
| 3007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3010 | if test -n "$ac_tool_prefix"; then |
| 3011 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3012 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3014 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3015 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3016 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3017 | else |
| 3018 | if test -n "$CC"; then |
| 3019 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3020 | else |
| 3021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3022 | for as_dir in $PATH |
| 3023 | do |
| 3024 | IFS=$as_save_IFS |
| 3025 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3027 | 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] | 3028 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3029 | $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] | 3030 | break 2 |
| 3031 | fi |
| 3032 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3033 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3034 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3035 | |
| 3036 | fi |
| 3037 | fi |
| 3038 | CC=$ac_cv_prog_CC |
| 3039 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3041 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3042 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3044 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3045 | fi |
| 3046 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3047 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3048 | fi |
| 3049 | if test -z "$ac_cv_prog_CC"; then |
| 3050 | ac_ct_CC=$CC |
| 3051 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3052 | set dummy gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3054 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3055 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3056 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3057 | else |
| 3058 | if test -n "$ac_ct_CC"; then |
| 3059 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3060 | else |
| 3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3062 | for as_dir in $PATH |
| 3063 | do |
| 3064 | IFS=$as_save_IFS |
| 3065 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3067 | 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] | 3068 | ac_cv_prog_ac_ct_CC="gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3069 | $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] | 3070 | break 2 |
| 3071 | fi |
| 3072 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3073 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3074 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3075 | |
| 3076 | fi |
| 3077 | fi |
| 3078 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3079 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3081 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3082 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3084 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3085 | fi |
| 3086 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3087 | if test "x$ac_ct_CC" = x; then |
| 3088 | CC="" |
| 3089 | else |
| 3090 | case $cross_compiling:$ac_tool_warned in |
| 3091 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3092 | { $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] | 3093 | $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] | 3094 | ac_tool_warned=yes ;; |
| 3095 | esac |
| 3096 | CC=$ac_ct_CC |
| 3097 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3098 | else |
| 3099 | CC="$ac_cv_prog_CC" |
| 3100 | fi |
| 3101 | |
| 3102 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3103 | if test -n "$ac_tool_prefix"; then |
| 3104 | # 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] | 3105 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3107 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3108 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3109 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3110 | else |
| 3111 | if test -n "$CC"; then |
| 3112 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3113 | else |
| 3114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3115 | for as_dir in $PATH |
| 3116 | do |
| 3117 | IFS=$as_save_IFS |
| 3118 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3120 | 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] | 3121 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3122 | $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] | 3123 | break 2 |
| 3124 | fi |
| 3125 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3126 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3127 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3128 | |
| 3129 | fi |
| 3130 | fi |
| 3131 | CC=$ac_cv_prog_CC |
| 3132 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3134 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3135 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3137 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3140 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3141 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3142 | fi |
| 3143 | if test -z "$CC"; then |
| 3144 | # Extract the first word of "cc", so it can be a program name with args. |
| 3145 | set dummy cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3147 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3148 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3149 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3150 | else |
| 3151 | if test -n "$CC"; then |
| 3152 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3153 | else |
| 3154 | ac_prog_rejected=no |
| 3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3156 | for as_dir in $PATH |
| 3157 | do |
| 3158 | IFS=$as_save_IFS |
| 3159 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3161 | 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] | 3162 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3163 | ac_prog_rejected=yes |
| 3164 | continue |
| 3165 | fi |
| 3166 | ac_cv_prog_CC="cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3167 | $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] | 3168 | break 2 |
| 3169 | fi |
| 3170 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3171 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3172 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3173 | |
| 3174 | if test $ac_prog_rejected = yes; then |
| 3175 | # We found a bogon in the path, so make sure we never use it. |
| 3176 | set dummy $ac_cv_prog_CC |
| 3177 | shift |
| 3178 | if test $# != 0; then |
| 3179 | # We chose a different compiler from the bogus one. |
| 3180 | # However, it has the same basename, so the bogon will be chosen |
| 3181 | # first if we set CC to just the basename; use the full file name. |
| 3182 | shift |
| 3183 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3184 | fi |
| 3185 | fi |
| 3186 | fi |
| 3187 | fi |
| 3188 | CC=$ac_cv_prog_CC |
| 3189 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3191 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3192 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3194 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3195 | fi |
| 3196 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3197 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3198 | fi |
| 3199 | if test -z "$CC"; then |
| 3200 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3201 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3202 | do |
| 3203 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3204 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3206 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3207 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3208 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3209 | else |
| 3210 | if test -n "$CC"; then |
| 3211 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3212 | else |
| 3213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3214 | for as_dir in $PATH |
| 3215 | do |
| 3216 | IFS=$as_save_IFS |
| 3217 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3219 | 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] | 3220 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3221 | $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] | 3222 | break 2 |
| 3223 | fi |
| 3224 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3225 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3226 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3227 | |
| 3228 | fi |
| 3229 | fi |
| 3230 | CC=$ac_cv_prog_CC |
| 3231 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3233 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3234 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3236 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3237 | fi |
| 3238 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3239 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3240 | test -n "$CC" && break |
| 3241 | done |
| 3242 | fi |
| 3243 | if test -z "$CC"; then |
| 3244 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3245 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3246 | do |
| 3247 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3248 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3250 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3251 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3252 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3253 | else |
| 3254 | if test -n "$ac_ct_CC"; then |
| 3255 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3256 | else |
| 3257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3258 | for as_dir in $PATH |
| 3259 | do |
| 3260 | IFS=$as_save_IFS |
| 3261 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3262 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3263 | 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] | 3264 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3265 | $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] | 3266 | break 2 |
| 3267 | fi |
| 3268 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3269 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3270 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3271 | |
| 3272 | fi |
| 3273 | fi |
| 3274 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3275 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3277 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3278 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3280 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3281 | fi |
| 3282 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3283 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3284 | test -n "$ac_ct_CC" && break |
| 3285 | done |
| 3286 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3287 | if test "x$ac_ct_CC" = x; then |
| 3288 | CC="" |
| 3289 | else |
| 3290 | case $cross_compiling:$ac_tool_warned in |
| 3291 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3292 | { $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] | 3293 | $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] | 3294 | ac_tool_warned=yes ;; |
| 3295 | esac |
| 3296 | CC=$ac_ct_CC |
| 3297 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3298 | fi |
| 3299 | |
| 3300 | fi |
| 3301 | |
| 3302 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3303 | 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] | 3304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3305 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3306 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3307 | |
| 3308 | # Provide some information about the compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3309 | $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] | 3310 | set X $ac_compile |
| 3311 | ac_compiler=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3312 | for ac_option in --version -v -V -qversion; do |
| 3313 | { { ac_try="$ac_compiler $ac_option >&5" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3314 | case "(($ac_try" in |
| 3315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3316 | *) ac_try_echo=$ac_try;; |
| 3317 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3319 | $as_echo "$ac_try_echo"; } >&5 |
| 3320 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3321 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3322 | if test -s conftest.err; then |
| 3323 | sed '10a\ |
| 3324 | ... rest of stderr output deleted ... |
| 3325 | 10q' conftest.err >conftest.er1 |
| 3326 | cat conftest.er1 >&5 |
| 3327 | fi |
| 3328 | rm -f conftest.er1 conftest.err |
| 3329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3330 | test $ac_status = 0; } |
| 3331 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3332 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3334 | /* end confdefs.h. */ |
| 3335 | |
| 3336 | int |
| 3337 | main () |
| 3338 | { |
| 3339 | |
| 3340 | ; |
| 3341 | return 0; |
| 3342 | } |
| 3343 | _ACEOF |
| 3344 | ac_clean_files_save=$ac_clean_files |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3345 | 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] | 3346 | # Try to create an executable without -o first, disregard a.out. |
| 3347 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3348 | # of exeext. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3350 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3351 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3352 | |
| 3353 | # The possible output files: |
| 3354 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3355 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3356 | ac_rmfiles= |
| 3357 | for ac_file in $ac_files |
| 3358 | do |
| 3359 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3360 | *.$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] | 3361 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3362 | esac |
| 3363 | done |
| 3364 | rm -f $ac_rmfiles |
| 3365 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3366 | if { { ac_try="$ac_link_default" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3367 | case "(($ac_try" in |
| 3368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3369 | *) ac_try_echo=$ac_try;; |
| 3370 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3371 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3372 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3373 | (eval "$ac_link_default") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3374 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3375 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3376 | test $ac_status = 0; }; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3377 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3378 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3379 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3380 | # so that the user can short-circuit this test for compilers unknown to |
| 3381 | # Autoconf. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3382 | for ac_file in $ac_files '' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3383 | do |
| 3384 | test -f "$ac_file" || continue |
| 3385 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3386 | *.$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] | 3387 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3388 | [ab].out ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3389 | # We found the default executable, but exeext='' is most |
| 3390 | # certainly right. |
| 3391 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3392 | *.* ) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3393 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3394 | then :; else |
| 3395 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3396 | fi |
| 3397 | # We set ac_cv_exeext here because the later test for it is not |
| 3398 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3399 | # argument, so we may need to know it at that point already. |
| 3400 | # Even if this section looks crufty: it has the advantage of |
| 3401 | # actually working. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3402 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3403 | * ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3404 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3405 | esac |
| 3406 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3407 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3408 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3409 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3410 | ac_file='' |
| 3411 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3412 | if test -z "$ac_file"; then : |
| 3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3414 | $as_echo "no" >&6; } |
| 3415 | $as_echo "$as_me: failed program was:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3417 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3420 | as_fn_error 77 "C compiler cannot create executables |
| 3421 | See \`config.log' for more details" "$LINENO" 5; } |
| 3422 | else |
| 3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3424 | $as_echo "yes" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3425 | fi |
| 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3427 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3429 | $as_echo "$ac_file" >&6; } |
| 3430 | ac_exeext=$ac_cv_exeext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3431 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3432 | 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] | 3433 | ac_clean_files=$ac_clean_files_save |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3434 | { $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] | 3435 | $as_echo_n "checking for suffix of executables... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3436 | if { { ac_try="$ac_link" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3437 | case "(($ac_try" in |
| 3438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3439 | *) ac_try_echo=$ac_try;; |
| 3440 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3442 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3443 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3444 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3446 | test $ac_status = 0; }; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3447 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3448 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3449 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3450 | # `rm'. |
| 3451 | for ac_file in conftest.exe conftest conftest.*; do |
| 3452 | test -f "$ac_file" || continue |
| 3453 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3454 | *.$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] | 3455 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3456 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3457 | * ) break;; |
| 3458 | esac |
| 3459 | done |
| 3460 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3463 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3464 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3465 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3466 | rm -f conftest conftest$ac_cv_exeext |
| 3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3468 | $as_echo "$ac_cv_exeext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3469 | |
| 3470 | rm -f conftest.$ac_ext |
| 3471 | EXEEXT=$ac_cv_exeext |
| 3472 | ac_exeext=$EXEEXT |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3474 | /* end confdefs.h. */ |
| 3475 | #include <stdio.h> |
| 3476 | int |
| 3477 | main () |
| 3478 | { |
| 3479 | FILE *f = fopen ("conftest.out", "w"); |
| 3480 | return ferror (f) || fclose (f) != 0; |
| 3481 | |
| 3482 | ; |
| 3483 | return 0; |
| 3484 | } |
| 3485 | _ACEOF |
| 3486 | ac_clean_files="$ac_clean_files conftest.out" |
| 3487 | # Check that the compiler produces executables we can run. If not, either |
| 3488 | # the compiler is broken, or we cross compile. |
| 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3490 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3491 | if test "$cross_compiling" != yes; then |
| 3492 | { { ac_try="$ac_link" |
| 3493 | case "(($ac_try" in |
| 3494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3495 | *) ac_try_echo=$ac_try;; |
| 3496 | esac |
| 3497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3498 | $as_echo "$ac_try_echo"; } >&5 |
| 3499 | (eval "$ac_link") 2>&5 |
| 3500 | ac_status=$? |
| 3501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3502 | test $ac_status = 0; } |
| 3503 | if { ac_try='./conftest$ac_cv_exeext' |
| 3504 | { { case "(($ac_try" in |
| 3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3506 | *) ac_try_echo=$ac_try;; |
| 3507 | esac |
| 3508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3509 | $as_echo "$ac_try_echo"; } >&5 |
| 3510 | (eval "$ac_try") 2>&5 |
| 3511 | ac_status=$? |
| 3512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3513 | test $ac_status = 0; }; }; then |
| 3514 | cross_compiling=no |
| 3515 | else |
| 3516 | if test "$cross_compiling" = maybe; then |
| 3517 | cross_compiling=yes |
| 3518 | else |
| 3519 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3521 | as_fn_error $? "cannot run C compiled programs. |
| 3522 | If you meant to cross compile, use \`--host'. |
| 3523 | See \`config.log' for more details" "$LINENO" 5; } |
| 3524 | fi |
| 3525 | fi |
| 3526 | fi |
| 3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3528 | $as_echo "$cross_compiling" >&6; } |
| 3529 | |
| 3530 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3531 | ac_clean_files=$ac_clean_files_save |
| 3532 | { $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] | 3533 | $as_echo_n "checking for suffix of object files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3534 | if ${ac_cv_objext+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3535 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3536 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3538 | /* end confdefs.h. */ |
| 3539 | |
| 3540 | int |
| 3541 | main () |
| 3542 | { |
| 3543 | |
| 3544 | ; |
| 3545 | return 0; |
| 3546 | } |
| 3547 | _ACEOF |
| 3548 | rm -f conftest.o conftest.obj |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3549 | if { { ac_try="$ac_compile" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3550 | case "(($ac_try" in |
| 3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3552 | *) ac_try_echo=$ac_try;; |
| 3553 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3555 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3556 | (eval "$ac_compile") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3557 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3559 | test $ac_status = 0; }; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3560 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3561 | test -f "$ac_file" || continue; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3562 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3563 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3564 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3565 | break;; |
| 3566 | esac |
| 3567 | done |
| 3568 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3569 | $as_echo "$as_me: failed program was:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3571 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3574 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3575 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3576 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3577 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3578 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3580 | $as_echo "$ac_cv_objext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3581 | OBJEXT=$ac_cv_objext |
| 3582 | ac_objext=$OBJEXT |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3583 | { $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] | 3584 | $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] | 3585 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3586 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3587 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3589 | /* end confdefs.h. */ |
| 3590 | |
| 3591 | int |
| 3592 | main () |
| 3593 | { |
| 3594 | #ifndef __GNUC__ |
| 3595 | choke me |
| 3596 | #endif |
| 3597 | |
| 3598 | ; |
| 3599 | return 0; |
| 3600 | } |
| 3601 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3602 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3603 | ac_compiler_gnu=yes |
| 3604 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3605 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3606 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3608 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3609 | |
| 3610 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3611 | { $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] | 3612 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3613 | if test $ac_compiler_gnu = yes; then |
| 3614 | GCC=yes |
| 3615 | else |
| 3616 | GCC= |
| 3617 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3618 | ac_test_CFLAGS=${CFLAGS+set} |
| 3619 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3620 | { $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] | 3621 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3622 | if ${ac_cv_prog_cc_g+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3623 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3624 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3625 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3626 | ac_c_werror_flag=yes |
| 3627 | ac_cv_prog_cc_g=no |
| 3628 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3630 | /* end confdefs.h. */ |
| 3631 | |
| 3632 | int |
| 3633 | main () |
| 3634 | { |
| 3635 | |
| 3636 | ; |
| 3637 | return 0; |
| 3638 | } |
| 3639 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3640 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3641 | ac_cv_prog_cc_g=yes |
| 3642 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3643 | CFLAGS="" |
| 3644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3645 | /* end confdefs.h. */ |
| 3646 | |
| 3647 | int |
| 3648 | main () |
| 3649 | { |
| 3650 | |
| 3651 | ; |
| 3652 | return 0; |
| 3653 | } |
| 3654 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3655 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3656 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3657 | else |
| 3658 | ac_c_werror_flag=$ac_save_c_werror_flag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3659 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3661 | /* end confdefs.h. */ |
| 3662 | |
| 3663 | int |
| 3664 | main () |
| 3665 | { |
| 3666 | |
| 3667 | ; |
| 3668 | return 0; |
| 3669 | } |
| 3670 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3671 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3672 | ac_cv_prog_cc_g=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3673 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3675 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3677 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3679 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3680 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3681 | { $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] | 3682 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3683 | if test "$ac_test_CFLAGS" = set; then |
| 3684 | CFLAGS=$ac_save_CFLAGS |
| 3685 | elif test $ac_cv_prog_cc_g = yes; then |
| 3686 | if test "$GCC" = yes; then |
| 3687 | CFLAGS="-g -O2" |
| 3688 | else |
| 3689 | CFLAGS="-g" |
| 3690 | fi |
| 3691 | else |
| 3692 | if test "$GCC" = yes; then |
| 3693 | CFLAGS="-O2" |
| 3694 | else |
| 3695 | CFLAGS= |
| 3696 | fi |
| 3697 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3698 | { $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] | 3699 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3700 | if ${ac_cv_prog_cc_c89+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3701 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3702 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3703 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3704 | ac_save_CC=$CC |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3706 | /* end confdefs.h. */ |
| 3707 | #include <stdarg.h> |
| 3708 | #include <stdio.h> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3709 | struct stat; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3710 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3711 | struct buf { int x; }; |
| 3712 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3713 | static char *e (p, i) |
| 3714 | char **p; |
| 3715 | int i; |
| 3716 | { |
| 3717 | return p[i]; |
| 3718 | } |
| 3719 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3720 | { |
| 3721 | char *s; |
| 3722 | va_list v; |
| 3723 | va_start (v,p); |
| 3724 | s = g (p, va_arg (v,int)); |
| 3725 | va_end (v); |
| 3726 | return s; |
| 3727 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3728 | |
| 3729 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3730 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3731 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3732 | 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] | 3733 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3734 | 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] | 3735 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3736 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3737 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3738 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3739 | inside strings and character constants. */ |
| 3740 | #define FOO(x) 'x' |
| 3741 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3742 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3743 | int test (int i, double x); |
| 3744 | struct s1 {int (*f) (int a);}; |
| 3745 | struct s2 {int (*f) (double a);}; |
| 3746 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3747 | int argc; |
| 3748 | char **argv; |
| 3749 | int |
| 3750 | main () |
| 3751 | { |
| 3752 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3753 | ; |
| 3754 | return 0; |
| 3755 | } |
| 3756 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3757 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3758 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3759 | do |
| 3760 | CC="$ac_save_CC $ac_arg" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3761 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3762 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3763 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3764 | rm -f core conftest.err conftest.$ac_objext |
| 3765 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3766 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3767 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3768 | CC=$ac_save_CC |
| 3769 | |
| 3770 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3771 | # AC_CACHE_VAL |
| 3772 | case "x$ac_cv_prog_cc_c89" in |
| 3773 | x) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3775 | $as_echo "none needed" >&6; } ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3776 | xno) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3778 | $as_echo "unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3779 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3780 | CC="$CC $ac_cv_prog_cc_c89" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3781 | { $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] | 3782 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3783 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3784 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3785 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3786 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3787 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3788 | ac_ext=c |
| 3789 | ac_cpp='$CPP $CPPFLAGS' |
| 3790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3793 | |
| 3794 | depcc="$CC" am_compiler_list= |
| 3795 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3796 | { $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] | 3797 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3798 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3799 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3800 | else |
| 3801 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3802 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3803 | # making bogus files that we don't know about and never remove. For |
| 3804 | # instance it was reported that on HP-UX the gcc test will end up |
| 3805 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3806 | # in D'. |
| 3807 | mkdir conftest.dir |
| 3808 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3809 | # using a relative directory. |
| 3810 | cp "$am_depcomp" conftest.dir |
| 3811 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3812 | # We will build objects and dependencies in a subdirectory because |
| 3813 | # it helps to detect inapplicable dependency modes. For instance |
| 3814 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3815 | # side effect of compilation, but ICC will put the dependencies in |
| 3816 | # the current directory while Tru64 will put them in the object |
| 3817 | # directory. |
| 3818 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3819 | |
| 3820 | am_cv_CC_dependencies_compiler_type=none |
| 3821 | if test "$am_compiler_list" = ""; then |
| 3822 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3823 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3824 | am__universal=false |
| 3825 | case " $depcc " in #( |
| 3826 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3827 | esac |
| 3828 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3829 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3830 | # Setup a source with many dependencies, because some compilers |
| 3831 | # like to wrap large dependency lists on column 80 (with \), and |
| 3832 | # we should not choose a depcomp mode which is confused by this. |
| 3833 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3834 | # We need to recreate these files for each test, as the compiler may |
| 3835 | # overwrite some of them when testing with obscure command lines. |
| 3836 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3837 | : > sub/conftest.c |
| 3838 | for i in 1 2 3 4 5 6; do |
| 3839 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3840 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3841 | # Solaris 8's {/usr,}/bin/sh. |
| 3842 | touch sub/conftst$i.h |
| 3843 | done |
| 3844 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3845 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3846 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3847 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3848 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3849 | # versions had trouble with output in subdirs |
| 3850 | am__obj=sub/conftest.${OBJEXT-o} |
| 3851 | am__minus_obj="-o $am__obj" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3852 | case $depmode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3853 | gcc) |
| 3854 | # This depmode causes a compiler race in universal mode. |
| 3855 | test "$am__universal" = false || continue |
| 3856 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3857 | nosideeffect) |
| 3858 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3859 | # only be used when explicitly requested |
| 3860 | if test "x$enable_dependency_tracking" = xyes; then |
| 3861 | continue |
| 3862 | else |
| 3863 | break |
| 3864 | fi |
| 3865 | ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3866 | msvisualcpp | msvcmsys) |
| 3867 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3868 | # not run yet. These depmodes are late enough in the game, and |
| 3869 | # so weak that their functioning should not be impacted. |
| 3870 | am__obj=conftest.${OBJEXT-o} |
| 3871 | am__minus_obj= |
| 3872 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3873 | none) break ;; |
| 3874 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3875 | if depmode=$depmode \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3876 | source=sub/conftest.c object=$am__obj \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3877 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3878 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3879 | >/dev/null 2>conftest.err && |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3880 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3881 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3882 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3883 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3884 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3885 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3886 | # that says an option was ignored or not supported. |
| 3887 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3888 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3889 | # The diagnosis changed in icc 8.0: |
| 3890 | # icc: Command line remark: option '-MP' not supported |
| 3891 | if (grep 'ignoring option' conftest.err || |
| 3892 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3893 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3894 | break |
| 3895 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3896 | fi |
| 3897 | done |
| 3898 | |
| 3899 | cd .. |
| 3900 | rm -rf conftest.dir |
| 3901 | else |
| 3902 | am_cv_CC_dependencies_compiler_type=none |
| 3903 | fi |
| 3904 | |
| 3905 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3906 | { $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] | 3907 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3908 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3909 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3910 | if |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3911 | test "x$enable_dependency_tracking" != xno \ |
| 3912 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3913 | am__fastdepCC_TRUE= |
| 3914 | am__fastdepCC_FALSE='#' |
| 3915 | else |
| 3916 | am__fastdepCC_TRUE='#' |
| 3917 | am__fastdepCC_FALSE= |
| 3918 | fi |
| 3919 | |
| 3920 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3921 | { $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] | 3922 | $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] | 3923 | if ${ac_cv_path_SED+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3924 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3925 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3926 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3927 | for ac_i in 1 2 3 4 5 6 7; do |
| 3928 | ac_script="$ac_script$as_nl$ac_script" |
| 3929 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3930 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3931 | { ac_script=; unset ac_script;} |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3932 | if test -z "$SED"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3933 | ac_path_SED_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3934 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3936 | for as_dir in $PATH |
| 3937 | do |
| 3938 | IFS=$as_save_IFS |
| 3939 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3940 | for ac_prog in sed gsed; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3942 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3943 | as_fn_executable_p "$ac_path_SED" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3944 | # 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] | 3945 | # Check for GNU $ac_path_SED |
| 3946 | case `"$ac_path_SED" --version 2>&1` in |
| 3947 | *GNU*) |
| 3948 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3949 | *) |
| 3950 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3951 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3952 | while : |
| 3953 | do |
| 3954 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3955 | mv "conftest.tmp" "conftest.in" |
| 3956 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3957 | $as_echo '' >> "conftest.nl" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3958 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3959 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3960 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3961 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3962 | # Best one so far, save it but keep looking for a better one |
| 3963 | ac_cv_path_SED="$ac_path_SED" |
| 3964 | ac_path_SED_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3965 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3966 | # 10*(2^10) chars as input seems more than enough |
| 3967 | test $ac_count -gt 10 && break |
| 3968 | done |
| 3969 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3970 | esac |
| 3971 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3972 | $ac_path_SED_found && break 3 |
| 3973 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3974 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3975 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3976 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3977 | if test -z "$ac_cv_path_SED"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3978 | 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] | 3979 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3980 | else |
| 3981 | ac_cv_path_SED=$SED |
| 3982 | fi |
| 3983 | |
| 3984 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3985 | { $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] | 3986 | $as_echo "$ac_cv_path_SED" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3987 | SED="$ac_cv_path_SED" |
| 3988 | rm -f conftest.sed |
| 3989 | |
| 3990 | test -z "$SED" && SED=sed |
| 3991 | Xsed="$SED -e 1s/^X//" |
| 3992 | |
| 3993 | |
| 3994 | |
| 3995 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4002 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4003 | { $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] | 4004 | $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] | 4005 | if ${ac_cv_path_GREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4006 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4007 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4008 | if test -z "$GREP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4009 | ac_path_GREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4010 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4012 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4013 | do |
| 4014 | IFS=$as_save_IFS |
| 4015 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4016 | for ac_prog in grep ggrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4017 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4018 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4019 | as_fn_executable_p "$ac_path_GREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4020 | # 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] | 4021 | # Check for GNU $ac_path_GREP |
| 4022 | case `"$ac_path_GREP" --version 2>&1` in |
| 4023 | *GNU*) |
| 4024 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4025 | *) |
| 4026 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4027 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4028 | while : |
| 4029 | do |
| 4030 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4031 | mv "conftest.tmp" "conftest.in" |
| 4032 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4033 | $as_echo 'GREP' >> "conftest.nl" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4034 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4035 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4036 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4037 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4038 | # Best one so far, save it but keep looking for a better one |
| 4039 | ac_cv_path_GREP="$ac_path_GREP" |
| 4040 | ac_path_GREP_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4041 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4042 | # 10*(2^10) chars as input seems more than enough |
| 4043 | test $ac_count -gt 10 && break |
| 4044 | done |
| 4045 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4046 | esac |
| 4047 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4048 | $ac_path_GREP_found && break 3 |
| 4049 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4050 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4051 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4052 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4053 | if test -z "$ac_cv_path_GREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4054 | 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] | 4055 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4056 | else |
| 4057 | ac_cv_path_GREP=$GREP |
| 4058 | fi |
| 4059 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4060 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4061 | { $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] | 4062 | $as_echo "$ac_cv_path_GREP" >&6; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4063 | GREP="$ac_cv_path_GREP" |
| 4064 | |
| 4065 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4067 | $as_echo_n "checking for egrep... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4068 | if ${ac_cv_path_EGREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4069 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4070 | else |
| 4071 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4072 | then ac_cv_path_EGREP="$GREP -E" |
| 4073 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4074 | if test -z "$EGREP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4075 | ac_path_EGREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4076 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4078 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4079 | do |
| 4080 | IFS=$as_save_IFS |
| 4081 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4082 | for ac_prog in egrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4084 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4085 | as_fn_executable_p "$ac_path_EGREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4086 | # 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] | 4087 | # Check for GNU $ac_path_EGREP |
| 4088 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4089 | *GNU*) |
| 4090 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4091 | *) |
| 4092 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4093 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4094 | while : |
| 4095 | do |
| 4096 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4097 | mv "conftest.tmp" "conftest.in" |
| 4098 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4099 | $as_echo 'EGREP' >> "conftest.nl" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4100 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4101 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4102 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4103 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4104 | # Best one so far, save it but keep looking for a better one |
| 4105 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4106 | ac_path_EGREP_max=$ac_count |
| 4107 | fi |
| 4108 | # 10*(2^10) chars as input seems more than enough |
| 4109 | test $ac_count -gt 10 && break |
| 4110 | done |
| 4111 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4112 | esac |
| 4113 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4114 | $ac_path_EGREP_found && break 3 |
| 4115 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4116 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4117 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4118 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4119 | if test -z "$ac_cv_path_EGREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4120 | 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] | 4121 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4122 | else |
| 4123 | ac_cv_path_EGREP=$EGREP |
| 4124 | fi |
| 4125 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4126 | fi |
| 4127 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4128 | { $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] | 4129 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4130 | EGREP="$ac_cv_path_EGREP" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4131 | |
| 4132 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4134 | $as_echo_n "checking for fgrep... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4135 | if ${ac_cv_path_FGREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4136 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4137 | else |
| 4138 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4139 | then ac_cv_path_FGREP="$GREP -F" |
| 4140 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4141 | if test -z "$FGREP"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4142 | ac_path_FGREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4143 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4145 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4146 | do |
| 4147 | IFS=$as_save_IFS |
| 4148 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4149 | for ac_prog in fgrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4150 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4151 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4152 | as_fn_executable_p "$ac_path_FGREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4153 | # 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] | 4154 | # Check for GNU $ac_path_FGREP |
| 4155 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4156 | *GNU*) |
| 4157 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4158 | *) |
| 4159 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4160 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4161 | while : |
| 4162 | do |
| 4163 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4164 | mv "conftest.tmp" "conftest.in" |
| 4165 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4166 | $as_echo 'FGREP' >> "conftest.nl" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4167 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4168 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4169 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4170 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4171 | # Best one so far, save it but keep looking for a better one |
| 4172 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4173 | ac_path_FGREP_max=$ac_count |
| 4174 | fi |
| 4175 | # 10*(2^10) chars as input seems more than enough |
| 4176 | test $ac_count -gt 10 && break |
| 4177 | done |
| 4178 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4179 | esac |
| 4180 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4181 | $ac_path_FGREP_found && break 3 |
| 4182 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4183 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4184 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4185 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4186 | if test -z "$ac_cv_path_FGREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4187 | 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] | 4188 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4189 | else |
| 4190 | ac_cv_path_FGREP=$FGREP |
| 4191 | fi |
| 4192 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4193 | fi |
| 4194 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4195 | { $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] | 4196 | $as_echo "$ac_cv_path_FGREP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4197 | FGREP="$ac_cv_path_FGREP" |
| 4198 | |
| 4199 | |
| 4200 | test -z "$GREP" && GREP=grep |
| 4201 | |
| 4202 | |
| 4203 | |
| 4204 | |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | |
| 4213 | |
| 4214 | |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4219 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4220 | # Check whether --with-gnu-ld was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4221 | if test "${with_gnu_ld+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4222 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4223 | else |
| 4224 | with_gnu_ld=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4227 | ac_prog=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4228 | if test "$GCC" = yes; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4229 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4230 | { $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] | 4231 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4232 | case $host in |
| 4233 | *-*-mingw*) |
| 4234 | # gcc leaves a trailing carriage return which upsets mingw |
| 4235 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4236 | *) |
| 4237 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4238 | esac |
| 4239 | case $ac_prog in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4240 | # Accept absolute paths. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4241 | [\\/]* | ?:[\\/]*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4242 | re_direlt='/[^/][^/]*/\.\./' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4243 | # Canonicalize the pathname of ld |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4244 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4245 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4246 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4247 | done |
| 4248 | test -z "$LD" && LD="$ac_prog" |
| 4249 | ;; |
| 4250 | "") |
| 4251 | # If it fails, then pretend we aren't using GCC. |
| 4252 | ac_prog=ld |
| 4253 | ;; |
| 4254 | *) |
| 4255 | # If it is relative, then search for the first ld in PATH. |
| 4256 | with_gnu_ld=unknown |
| 4257 | ;; |
| 4258 | esac |
| 4259 | elif test "$with_gnu_ld" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4261 | $as_echo_n "checking for GNU ld... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4262 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4263 | { $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] | 4264 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4265 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4266 | if ${lt_cv_path_LD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4267 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4268 | else |
| 4269 | if test -z "$LD"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4270 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4271 | for ac_dir in $PATH; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4272 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4273 | test -z "$ac_dir" && ac_dir=. |
| 4274 | 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] | 4275 | lt_cv_path_LD="$ac_dir/$ac_prog" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4276 | # 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] | 4277 | # but apparently some variants of GNU ld only accept -v. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4278 | # 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] | 4279 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4280 | *GNU* | *'with BFD'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4281 | test "$with_gnu_ld" != no && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4282 | ;; |
| 4283 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4284 | test "$with_gnu_ld" != yes && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4285 | ;; |
| 4286 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4287 | fi |
| 4288 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4289 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4290 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4291 | 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] | 4292 | fi |
| 4293 | fi |
| 4294 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4295 | LD="$lt_cv_path_LD" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4296 | if test -n "$LD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4298 | $as_echo "$LD" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4299 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4301 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4302 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4303 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4304 | { $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] | 4305 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4306 | if ${lt_cv_prog_gnu_ld+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4307 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4308 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4309 | # 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] | 4310 | case `$LD -v 2>&1 </dev/null` in |
| 4311 | *GNU* | *'with BFD'*) |
| 4312 | lt_cv_prog_gnu_ld=yes |
| 4313 | ;; |
| 4314 | *) |
| 4315 | lt_cv_prog_gnu_ld=no |
| 4316 | ;; |
| 4317 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4318 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4319 | { $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] | 4320 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4321 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4322 | |
| 4323 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4324 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4331 | { $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] | 4332 | $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] | 4333 | if ${lt_cv_path_NM+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4334 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4335 | else |
| 4336 | if test -n "$NM"; then |
| 4337 | # Let the user override the test. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4338 | lt_cv_path_NM="$NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4339 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4340 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4341 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4342 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4343 | fi |
| 4344 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4345 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4346 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4347 | IFS="$lt_save_ifs" |
| 4348 | test -z "$ac_dir" && ac_dir=. |
| 4349 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4350 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4351 | # Check to see if the nm accepts a BSD-compat flag. |
| 4352 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4353 | # nm: unknown option "B" ignored |
| 4354 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4355 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4356 | */dev/null* | *'Invalid file or object type'*) |
| 4357 | lt_cv_path_NM="$tmp_nm -B" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4358 | break |
| 4359 | ;; |
| 4360 | *) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4361 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4362 | */dev/null*) |
| 4363 | lt_cv_path_NM="$tmp_nm -p" |
| 4364 | break |
| 4365 | ;; |
| 4366 | *) |
| 4367 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4368 | continue # so that we can try to find one that supports BSD flags |
| 4369 | ;; |
| 4370 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4371 | ;; |
| 4372 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4373 | fi |
| 4374 | done |
| 4375 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4376 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4377 | : ${lt_cv_path_NM=no} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4378 | fi |
| 4379 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4380 | { $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] | 4381 | $as_echo "$lt_cv_path_NM" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4382 | if test "$lt_cv_path_NM" != "no"; then |
| 4383 | NM="$lt_cv_path_NM" |
| 4384 | else |
| 4385 | # Didn't find any BSD compatible name lister, look for dumpbin. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4386 | if test -n "$DUMPBIN"; then : |
| 4387 | # Let the user override the test. |
| 4388 | else |
| 4389 | if test -n "$ac_tool_prefix"; then |
| 4390 | for ac_prog in dumpbin "link -dump" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4391 | do |
| 4392 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4393 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4395 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4396 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4397 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4398 | else |
| 4399 | if test -n "$DUMPBIN"; then |
| 4400 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4401 | else |
| 4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4403 | for as_dir in $PATH |
| 4404 | do |
| 4405 | IFS=$as_save_IFS |
| 4406 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4408 | 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] | 4409 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4410 | $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] | 4411 | break 2 |
| 4412 | fi |
| 4413 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4414 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4415 | IFS=$as_save_IFS |
| 4416 | |
| 4417 | fi |
| 4418 | fi |
| 4419 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4420 | if test -n "$DUMPBIN"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4422 | $as_echo "$DUMPBIN" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4423 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4425 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4426 | fi |
| 4427 | |
| 4428 | |
| 4429 | test -n "$DUMPBIN" && break |
| 4430 | done |
| 4431 | fi |
| 4432 | if test -z "$DUMPBIN"; then |
| 4433 | ac_ct_DUMPBIN=$DUMPBIN |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4434 | for ac_prog in dumpbin "link -dump" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4435 | do |
| 4436 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4437 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4439 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4440 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4441 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4442 | else |
| 4443 | if test -n "$ac_ct_DUMPBIN"; then |
| 4444 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4445 | else |
| 4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4447 | for as_dir in $PATH |
| 4448 | do |
| 4449 | IFS=$as_save_IFS |
| 4450 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4452 | 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] | 4453 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4454 | $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] | 4455 | break 2 |
| 4456 | fi |
| 4457 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4458 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4459 | IFS=$as_save_IFS |
| 4460 | |
| 4461 | fi |
| 4462 | fi |
| 4463 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4464 | if test -n "$ac_ct_DUMPBIN"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4466 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4467 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4469 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4470 | fi |
| 4471 | |
| 4472 | |
| 4473 | test -n "$ac_ct_DUMPBIN" && break |
| 4474 | done |
| 4475 | |
| 4476 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4477 | DUMPBIN=":" |
| 4478 | else |
| 4479 | case $cross_compiling:$ac_tool_warned in |
| 4480 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4481 | { $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] | 4482 | $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] | 4483 | ac_tool_warned=yes ;; |
| 4484 | esac |
| 4485 | DUMPBIN=$ac_ct_DUMPBIN |
| 4486 | fi |
| 4487 | fi |
| 4488 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4489 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 4490 | *COFF*) |
| 4491 | DUMPBIN="$DUMPBIN -symbols" |
| 4492 | ;; |
| 4493 | *) |
| 4494 | DUMPBIN=: |
| 4495 | ;; |
| 4496 | esac |
| 4497 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4498 | |
| 4499 | if test "$DUMPBIN" != ":"; then |
| 4500 | NM="$DUMPBIN" |
| 4501 | fi |
| 4502 | fi |
| 4503 | test -z "$NM" && NM=nm |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4510 | { $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] | 4511 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4512 | if ${lt_cv_nm_interface+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4513 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4514 | else |
| 4515 | lt_cv_nm_interface="BSD nm" |
| 4516 | echo "int some_variable = 0;" > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4517 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4518 | (eval "$ac_compile" 2>conftest.err) |
| 4519 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4520 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4521 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4522 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4523 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4524 | cat conftest.out >&5 |
| 4525 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4526 | lt_cv_nm_interface="MS dumpbin" |
| 4527 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4528 | rm -f conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4529 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4530 | { $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] | 4531 | $as_echo "$lt_cv_nm_interface" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4532 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4533 | { $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] | 4534 | $as_echo_n "checking whether ln -s works... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4535 | LN_S=$as_ln_s |
| 4536 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4538 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4539 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4540 | { $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] | 4541 | $as_echo "no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4542 | fi |
| 4543 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4544 | # find the maximum length of command line arguments |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4545 | { $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] | 4546 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4547 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4548 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4549 | else |
| 4550 | i=0 |
| 4551 | teststring="ABCD" |
| 4552 | |
| 4553 | case $build_os in |
| 4554 | msdosdjgpp*) |
| 4555 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4556 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4557 | # during glob expansion). Even if it were fixed, the result of this |
| 4558 | # check would be larger than it should be. |
| 4559 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4560 | ;; |
| 4561 | |
| 4562 | gnu*) |
| 4563 | # Under GNU Hurd, this test is not required because there is |
| 4564 | # no limit to the length of command line arguments. |
| 4565 | # Libtool will interpret -1 as no limit whatsoever |
| 4566 | lt_cv_sys_max_cmd_len=-1; |
| 4567 | ;; |
| 4568 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4569 | cygwin* | mingw* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4570 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4571 | # about 5 minutes as the teststring grows exponentially. |
| 4572 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4573 | # you end up with a "frozen" computer, even though with patience |
| 4574 | # the test eventually succeeds (with a max line length of 256k). |
| 4575 | # Instead, let's just punt: use the minimum linelength reported by |
| 4576 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4577 | lt_cv_sys_max_cmd_len=8192; |
| 4578 | ;; |
| 4579 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4580 | mint*) |
| 4581 | # On MiNT this can take a long time and run out of memory. |
| 4582 | lt_cv_sys_max_cmd_len=8192; |
| 4583 | ;; |
| 4584 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4585 | amigaos*) |
| 4586 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4587 | # So we just punt and use a minimum line length of 8192. |
| 4588 | lt_cv_sys_max_cmd_len=8192; |
| 4589 | ;; |
| 4590 | |
| 4591 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4592 | # This has been around since 386BSD, at least. Likely further. |
| 4593 | if test -x /sbin/sysctl; then |
| 4594 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4595 | elif test -x /usr/sbin/sysctl; then |
| 4596 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4597 | else |
| 4598 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4599 | fi |
| 4600 | # And add a safety zone |
| 4601 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4602 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4603 | ;; |
| 4604 | |
| 4605 | interix*) |
| 4606 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4607 | lt_cv_sys_max_cmd_len=196608 |
| 4608 | ;; |
| 4609 | |
| 4610 | osf*) |
| 4611 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4612 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4613 | # nice to cause kernel panics so lets avoid the loop below. |
| 4614 | # First set a reasonable default. |
| 4615 | lt_cv_sys_max_cmd_len=16384 |
| 4616 | # |
| 4617 | if test -x /sbin/sysconfig; then |
| 4618 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4619 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4620 | esac |
| 4621 | fi |
| 4622 | ;; |
| 4623 | sco3.2v5*) |
| 4624 | lt_cv_sys_max_cmd_len=102400 |
| 4625 | ;; |
| 4626 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4627 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4628 | if test -n "$kargmax"; then |
| 4629 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4630 | else |
| 4631 | lt_cv_sys_max_cmd_len=32768 |
| 4632 | fi |
| 4633 | ;; |
| 4634 | *) |
| 4635 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4636 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4637 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4638 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4639 | else |
| 4640 | # Make teststring a little bigger before we do anything with it. |
| 4641 | # a 1K string should be a reasonable start. |
| 4642 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4643 | teststring=$teststring$teststring |
| 4644 | done |
| 4645 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4646 | # If test is not a shell built-in, we'll probably end up computing a |
| 4647 | # maximum length that is only half of the actual maximum length, but |
| 4648 | # we can't tell. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4649 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 4650 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4651 | test $i != 17 # 1/2 MB should be enough |
| 4652 | do |
| 4653 | i=`expr $i + 1` |
| 4654 | teststring=$teststring$teststring |
| 4655 | done |
| 4656 | # Only check the string length outside the loop. |
| 4657 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4658 | teststring= |
| 4659 | # Add a significant safety factor because C++ compilers can tack on |
| 4660 | # massive amounts of additional arguments before passing them to the |
| 4661 | # linker. It appears as though 1/2 is a usable value. |
| 4662 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4663 | fi |
| 4664 | ;; |
| 4665 | esac |
| 4666 | |
| 4667 | fi |
| 4668 | |
| 4669 | if test -n $lt_cv_sys_max_cmd_len ; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4670 | { $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] | 4671 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4672 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4674 | $as_echo "none" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4675 | fi |
| 4676 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | : ${CP="cp -f"} |
| 4684 | : ${MV="mv -f"} |
| 4685 | : ${RM="rm -f"} |
| 4686 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4687 | { $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] | 4688 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4689 | # Try some XSI features |
| 4690 | xsi_shell=no |
| 4691 | ( _lt_dummy="a/b/c" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4692 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 4693 | = c,a/b,b/c, \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4694 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4695 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4696 | && xsi_shell=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4698 | $as_echo "$xsi_shell" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4699 | |
| 4700 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4701 | { $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] | 4702 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4703 | lt_shell_append=no |
| 4704 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4705 | >/dev/null 2>&1 \ |
| 4706 | && lt_shell_append=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4708 | $as_echo "$lt_shell_append" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4709 | |
| 4710 | |
| 4711 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4712 | lt_unset=unset |
| 4713 | else |
| 4714 | lt_unset=false |
| 4715 | fi |
| 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | # test EBCDIC or ASCII |
| 4722 | case `echo X|tr X '\101'` in |
| 4723 | A) # ASCII based system |
| 4724 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4725 | lt_SP2NL='tr \040 \012' |
| 4726 | lt_NL2SP='tr \015\012 \040\040' |
| 4727 | ;; |
| 4728 | *) # EBCDIC based system |
| 4729 | lt_SP2NL='tr \100 \n' |
| 4730 | lt_NL2SP='tr \r\n \100\100' |
| 4731 | ;; |
| 4732 | esac |
| 4733 | |
| 4734 | |
| 4735 | |
| 4736 | |
| 4737 | |
| 4738 | |
| 4739 | |
| 4740 | |
| 4741 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 4743 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 4744 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 4745 | $as_echo_n "(cached) " >&6 |
| 4746 | else |
| 4747 | case $host in |
| 4748 | *-*-mingw* ) |
| 4749 | case $build in |
| 4750 | *-*-mingw* ) # actually msys |
| 4751 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 4752 | ;; |
| 4753 | *-*-cygwin* ) |
| 4754 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 4755 | ;; |
| 4756 | * ) # otherwise, assume *nix |
| 4757 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 4758 | ;; |
| 4759 | esac |
| 4760 | ;; |
| 4761 | *-*-cygwin* ) |
| 4762 | case $build in |
| 4763 | *-*-mingw* ) # actually msys |
| 4764 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 4765 | ;; |
| 4766 | *-*-cygwin* ) |
| 4767 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4768 | ;; |
| 4769 | * ) # otherwise, assume *nix |
| 4770 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 4771 | ;; |
| 4772 | esac |
| 4773 | ;; |
| 4774 | * ) # unhandled hosts (and "normal" native builds) |
| 4775 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4776 | ;; |
| 4777 | esac |
| 4778 | |
| 4779 | fi |
| 4780 | |
| 4781 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 4783 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 4784 | |
| 4785 | |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 4790 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 4791 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 4792 | $as_echo_n "(cached) " >&6 |
| 4793 | else |
| 4794 | #assume ordinary cross tools, or native build. |
| 4795 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 4796 | case $host in |
| 4797 | *-*-mingw* ) |
| 4798 | case $build in |
| 4799 | *-*-mingw* ) # actually msys |
| 4800 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 4801 | ;; |
| 4802 | esac |
| 4803 | ;; |
| 4804 | esac |
| 4805 | |
| 4806 | fi |
| 4807 | |
| 4808 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 4810 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 4811 | |
| 4812 | |
| 4813 | |
| 4814 | |
| 4815 | |
| 4816 | { $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] | 4817 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4818 | if ${lt_cv_ld_reload_flag+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4819 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4820 | else |
| 4821 | lt_cv_ld_reload_flag='-r' |
| 4822 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4823 | { $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] | 4824 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4825 | reload_flag=$lt_cv_ld_reload_flag |
| 4826 | case $reload_flag in |
| 4827 | "" | " "*) ;; |
| 4828 | *) reload_flag=" $reload_flag" ;; |
| 4829 | esac |
| 4830 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4831 | case $host_os in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4832 | cygwin* | mingw* | pw32* | cegcc*) |
| 4833 | if test "$GCC" != yes; then |
| 4834 | reload_cmds=false |
| 4835 | fi |
| 4836 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4837 | darwin*) |
| 4838 | if test "$GCC" = yes; then |
| 4839 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4840 | else |
| 4841 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4842 | fi |
| 4843 | ;; |
| 4844 | esac |
| 4845 | |
| 4846 | |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | |
| 4851 | |
| 4852 | |
| 4853 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4854 | if test -n "$ac_tool_prefix"; then |
| 4855 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4856 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4858 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4859 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 4860 | $as_echo_n "(cached) " >&6 |
| 4861 | else |
| 4862 | if test -n "$OBJDUMP"; then |
| 4863 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4864 | else |
| 4865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4866 | for as_dir in $PATH |
| 4867 | do |
| 4868 | IFS=$as_save_IFS |
| 4869 | test -z "$as_dir" && as_dir=. |
| 4870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4872 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 4873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4874 | break 2 |
| 4875 | fi |
| 4876 | done |
| 4877 | done |
| 4878 | IFS=$as_save_IFS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4879 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4880 | fi |
| 4881 | fi |
| 4882 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4883 | if test -n "$OBJDUMP"; then |
| 4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 4885 | $as_echo "$OBJDUMP" >&6; } |
| 4886 | else |
| 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4888 | $as_echo "no" >&6; } |
| 4889 | fi |
| 4890 | |
| 4891 | |
| 4892 | fi |
| 4893 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4894 | ac_ct_OBJDUMP=$OBJDUMP |
| 4895 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4896 | set dummy objdump; ac_word=$2 |
| 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4898 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4899 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 4900 | $as_echo_n "(cached) " >&6 |
| 4901 | else |
| 4902 | if test -n "$ac_ct_OBJDUMP"; then |
| 4903 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4904 | else |
| 4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4906 | for as_dir in $PATH |
| 4907 | do |
| 4908 | IFS=$as_save_IFS |
| 4909 | test -z "$as_dir" && as_dir=. |
| 4910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4912 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 4913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4914 | break 2 |
| 4915 | fi |
| 4916 | done |
| 4917 | done |
| 4918 | IFS=$as_save_IFS |
| 4919 | |
| 4920 | fi |
| 4921 | fi |
| 4922 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4923 | if test -n "$ac_ct_OBJDUMP"; then |
| 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 4925 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4926 | else |
| 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4928 | $as_echo "no" >&6; } |
| 4929 | fi |
| 4930 | |
| 4931 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4932 | OBJDUMP="false" |
| 4933 | else |
| 4934 | case $cross_compiling:$ac_tool_warned in |
| 4935 | yes:) |
| 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4937 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4938 | ac_tool_warned=yes ;; |
| 4939 | esac |
| 4940 | OBJDUMP=$ac_ct_OBJDUMP |
| 4941 | fi |
| 4942 | else |
| 4943 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4944 | fi |
| 4945 | |
| 4946 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4947 | |
| 4948 | |
| 4949 | |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | |
| 4956 | { $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] | 4957 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4958 | if ${lt_cv_deplibs_check_method+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4959 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4960 | else |
| 4961 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4962 | lt_cv_file_magic_test_file= |
| 4963 | lt_cv_deplibs_check_method='unknown' |
| 4964 | # Need to set the preceding variable on all platforms that support |
| 4965 | # interlibrary dependencies. |
| 4966 | # 'none' -- dependencies not supported. |
| 4967 | # `unknown' -- same as none, but documents that we really don't know. |
| 4968 | # 'pass_all' -- all dependencies passed with no checks. |
| 4969 | # 'test_compile' -- check by making test program. |
| 4970 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4971 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4972 | # If you have `file' or equivalent on your system and you're not sure |
| 4973 | # whether `pass_all' will *always* work, you probably want this one. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4974 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4975 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4976 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4977 | lt_cv_deplibs_check_method=pass_all |
| 4978 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4979 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4980 | beos*) |
| 4981 | lt_cv_deplibs_check_method=pass_all |
| 4982 | ;; |
| 4983 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4984 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4985 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4986 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4987 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4988 | ;; |
| 4989 | |
| 4990 | cygwin*) |
| 4991 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4992 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4993 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4994 | ;; |
| 4995 | |
| 4996 | mingw* | pw32*) |
| 4997 | # Base MSYS/MinGW do not provide the 'file' command needed by |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4998 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4999 | # unless we find 'file', for example because we are cross-compiling. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5000 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5001 | 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] | 5002 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5003 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5004 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5005 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5006 | 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] | 5007 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5008 | fi |
| 5009 | ;; |
| 5010 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5011 | cegcc*) |
| 5012 | # use the weaker test based on 'objdump'. See mingw*. |
| 5013 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5014 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5015 | ;; |
| 5016 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5017 | darwin* | rhapsody*) |
| 5018 | lt_cv_deplibs_check_method=pass_all |
| 5019 | ;; |
| 5020 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5021 | freebsd* | dragonfly*) |
| 5022 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5023 | case $host_cpu in |
| 5024 | i*86 ) |
| 5025 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5026 | # Let's accept both of them until this is cleared up. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5027 | 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] | 5028 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5029 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5030 | ;; |
| 5031 | esac |
| 5032 | else |
| 5033 | lt_cv_deplibs_check_method=pass_all |
| 5034 | fi |
| 5035 | ;; |
| 5036 | |
| 5037 | gnu*) |
| 5038 | lt_cv_deplibs_check_method=pass_all |
| 5039 | ;; |
| 5040 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5041 | haiku*) |
| 5042 | lt_cv_deplibs_check_method=pass_all |
| 5043 | ;; |
| 5044 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5045 | hpux10.20* | hpux11*) |
| 5046 | lt_cv_file_magic_cmd=/usr/bin/file |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5047 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5048 | ia64*) |
| 5049 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5050 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5051 | ;; |
| 5052 | hppa*64*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5053 | 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] | 5054 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5055 | ;; |
| 5056 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5057 | 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] | 5058 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5059 | ;; |
| 5060 | esac |
| 5061 | ;; |
| 5062 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5063 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5064 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5065 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5066 | ;; |
| 5067 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5068 | irix5* | irix6* | nonstopux*) |
| 5069 | case $LD in |
| 5070 | *-32|*"-32 ") libmagic=32-bit;; |
| 5071 | *-n32|*"-n32 ") libmagic=N32;; |
| 5072 | *-64|*"-64 ") libmagic=64-bit;; |
| 5073 | *) libmagic=never-match;; |
| 5074 | esac |
| 5075 | lt_cv_deplibs_check_method=pass_all |
| 5076 | ;; |
| 5077 | |
| 5078 | # This must be Linux ELF. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5079 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5080 | lt_cv_deplibs_check_method=pass_all |
| 5081 | ;; |
| 5082 | |
| 5083 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5084 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5085 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5086 | else |
| 5087 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5088 | fi |
| 5089 | ;; |
| 5090 | |
| 5091 | newos6*) |
| 5092 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5093 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5094 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5095 | ;; |
| 5096 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5097 | *nto* | *qnx*) |
| 5098 | lt_cv_deplibs_check_method=pass_all |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5099 | ;; |
| 5100 | |
| 5101 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5102 | 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] | 5103 | 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] | 5104 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5105 | 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] | 5106 | fi |
| 5107 | ;; |
| 5108 | |
| 5109 | osf3* | osf4* | osf5*) |
| 5110 | lt_cv_deplibs_check_method=pass_all |
| 5111 | ;; |
| 5112 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5113 | rdos*) |
| 5114 | lt_cv_deplibs_check_method=pass_all |
| 5115 | ;; |
| 5116 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5117 | solaris*) |
| 5118 | lt_cv_deplibs_check_method=pass_all |
| 5119 | ;; |
| 5120 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5121 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5122 | lt_cv_deplibs_check_method=pass_all |
| 5123 | ;; |
| 5124 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5125 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5126 | case $host_vendor in |
| 5127 | motorola) |
| 5128 | 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]' |
| 5129 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5130 | ;; |
| 5131 | ncr) |
| 5132 | lt_cv_deplibs_check_method=pass_all |
| 5133 | ;; |
| 5134 | sequent) |
| 5135 | lt_cv_file_magic_cmd='/bin/file' |
| 5136 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5137 | ;; |
| 5138 | sni) |
| 5139 | lt_cv_file_magic_cmd='/bin/file' |
| 5140 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5141 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5142 | ;; |
| 5143 | siemens) |
| 5144 | lt_cv_deplibs_check_method=pass_all |
| 5145 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5146 | pc) |
| 5147 | lt_cv_deplibs_check_method=pass_all |
| 5148 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5149 | esac |
| 5150 | ;; |
| 5151 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5152 | tpf*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5153 | lt_cv_deplibs_check_method=pass_all |
| 5154 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5155 | esac |
| 5156 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5157 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5158 | { $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] | 5159 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5160 | |
| 5161 | file_magic_glob= |
| 5162 | want_nocaseglob=no |
| 5163 | if test "$build" = "$host"; then |
| 5164 | case $host_os in |
| 5165 | mingw* | pw32*) |
| 5166 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5167 | want_nocaseglob=yes |
| 5168 | else |
| 5169 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5170 | fi |
| 5171 | ;; |
| 5172 | esac |
| 5173 | fi |
| 5174 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5175 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5176 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5177 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5178 | |
| 5179 | |
| 5180 | |
| 5181 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5182 | |
| 5183 | |
| 5184 | |
| 5185 | |
| 5186 | |
| 5187 | |
| 5188 | |
| 5189 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5190 | |
| 5191 | |
| 5192 | |
| 5193 | |
| 5194 | |
| 5195 | |
| 5196 | |
| 5197 | |
| 5198 | |
| 5199 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5200 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5201 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5202 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5204 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5205 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5206 | $as_echo_n "(cached) " >&6 |
| 5207 | else |
| 5208 | if test -n "$DLLTOOL"; then |
| 5209 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5210 | else |
| 5211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5212 | for as_dir in $PATH |
| 5213 | do |
| 5214 | IFS=$as_save_IFS |
| 5215 | test -z "$as_dir" && as_dir=. |
| 5216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5218 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5220 | break 2 |
| 5221 | fi |
| 5222 | done |
| 5223 | done |
| 5224 | IFS=$as_save_IFS |
| 5225 | |
| 5226 | fi |
| 5227 | fi |
| 5228 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5229 | if test -n "$DLLTOOL"; then |
| 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5231 | $as_echo "$DLLTOOL" >&6; } |
| 5232 | else |
| 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5234 | $as_echo "no" >&6; } |
| 5235 | fi |
| 5236 | |
| 5237 | |
| 5238 | fi |
| 5239 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5240 | ac_ct_DLLTOOL=$DLLTOOL |
| 5241 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5242 | set dummy dlltool; ac_word=$2 |
| 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5244 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5245 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5246 | $as_echo_n "(cached) " >&6 |
| 5247 | else |
| 5248 | if test -n "$ac_ct_DLLTOOL"; then |
| 5249 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5250 | else |
| 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5252 | for as_dir in $PATH |
| 5253 | do |
| 5254 | IFS=$as_save_IFS |
| 5255 | test -z "$as_dir" && as_dir=. |
| 5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5258 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5260 | break 2 |
| 5261 | fi |
| 5262 | done |
| 5263 | done |
| 5264 | IFS=$as_save_IFS |
| 5265 | |
| 5266 | fi |
| 5267 | fi |
| 5268 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5269 | if test -n "$ac_ct_DLLTOOL"; then |
| 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5271 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5272 | else |
| 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5274 | $as_echo "no" >&6; } |
| 5275 | fi |
| 5276 | |
| 5277 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5278 | DLLTOOL="false" |
| 5279 | else |
| 5280 | case $cross_compiling:$ac_tool_warned in |
| 5281 | yes:) |
| 5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5283 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5284 | ac_tool_warned=yes ;; |
| 5285 | esac |
| 5286 | DLLTOOL=$ac_ct_DLLTOOL |
| 5287 | fi |
| 5288 | else |
| 5289 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5290 | fi |
| 5291 | |
| 5292 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5293 | |
| 5294 | |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5304 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5305 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5306 | $as_echo_n "(cached) " >&6 |
| 5307 | else |
| 5308 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5309 | |
| 5310 | case $host_os in |
| 5311 | cygwin* | mingw* | pw32* | cegcc*) |
| 5312 | # two different shell functions defined in ltmain.sh |
| 5313 | # decide which to use based on capabilities of $DLLTOOL |
| 5314 | case `$DLLTOOL --help 2>&1` in |
| 5315 | *--identify-strict*) |
| 5316 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5317 | ;; |
| 5318 | *) |
| 5319 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5320 | ;; |
| 5321 | esac |
| 5322 | ;; |
| 5323 | *) |
| 5324 | # fallback: assume linklib IS sharedlib |
| 5325 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 5326 | ;; |
| 5327 | esac |
| 5328 | |
| 5329 | fi |
| 5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5331 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5332 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5333 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | if test -n "$ac_tool_prefix"; then |
| 5343 | for ac_prog in ar |
| 5344 | do |
| 5345 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5346 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5348 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5349 | if ${ac_cv_prog_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5350 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5351 | else |
| 5352 | if test -n "$AR"; then |
| 5353 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5354 | else |
| 5355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5356 | for as_dir in $PATH |
| 5357 | do |
| 5358 | IFS=$as_save_IFS |
| 5359 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5362 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5363 | $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] | 5364 | break 2 |
| 5365 | fi |
| 5366 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5367 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5368 | IFS=$as_save_IFS |
| 5369 | |
| 5370 | fi |
| 5371 | fi |
| 5372 | AR=$ac_cv_prog_AR |
| 5373 | if test -n "$AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5375 | $as_echo "$AR" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5376 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5378 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5379 | fi |
| 5380 | |
| 5381 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5382 | test -n "$AR" && break |
| 5383 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5384 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5385 | if test -z "$AR"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5386 | ac_ct_AR=$AR |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5387 | for ac_prog in ar |
| 5388 | do |
| 5389 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5390 | set dummy $ac_prog; ac_word=$2 |
| 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5392 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5393 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5394 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5395 | else |
| 5396 | if test -n "$ac_ct_AR"; then |
| 5397 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5398 | else |
| 5399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5400 | for as_dir in $PATH |
| 5401 | do |
| 5402 | IFS=$as_save_IFS |
| 5403 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5406 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5407 | $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] | 5408 | break 2 |
| 5409 | fi |
| 5410 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5411 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5412 | IFS=$as_save_IFS |
| 5413 | |
| 5414 | fi |
| 5415 | fi |
| 5416 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5417 | if test -n "$ac_ct_AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5419 | $as_echo "$ac_ct_AR" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5420 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5422 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5423 | fi |
| 5424 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5425 | |
| 5426 | test -n "$ac_ct_AR" && break |
| 5427 | done |
| 5428 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5429 | if test "x$ac_ct_AR" = x; then |
| 5430 | AR="false" |
| 5431 | else |
| 5432 | case $cross_compiling:$ac_tool_warned in |
| 5433 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5434 | { $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] | 5435 | $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] | 5436 | ac_tool_warned=yes ;; |
| 5437 | esac |
| 5438 | AR=$ac_ct_AR |
| 5439 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5440 | fi |
| 5441 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5442 | : ${AR=ar} |
| 5443 | : ${AR_FLAGS=cru} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5444 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5445 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 5446 | |
| 5447 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5448 | |
| 5449 | |
| 5450 | |
| 5451 | |
| 5452 | |
| 5453 | |
| 5454 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5456 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5457 | if ${lt_cv_ar_at_file+:} false; then : |
| 5458 | $as_echo_n "(cached) " >&6 |
| 5459 | else |
| 5460 | lt_cv_ar_at_file=no |
| 5461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5462 | /* end confdefs.h. */ |
| 5463 | |
| 5464 | int |
| 5465 | main () |
| 5466 | { |
| 5467 | |
| 5468 | ; |
| 5469 | return 0; |
| 5470 | } |
| 5471 | _ACEOF |
| 5472 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5473 | echo conftest.$ac_objext > conftest.lst |
| 5474 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5476 | (eval $lt_ar_try) 2>&5 |
| 5477 | ac_status=$? |
| 5478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5479 | test $ac_status = 0; } |
| 5480 | if test "$ac_status" -eq 0; then |
| 5481 | # Ensure the archiver fails upon bogus file names. |
| 5482 | rm -f conftest.$ac_objext libconftest.a |
| 5483 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5484 | (eval $lt_ar_try) 2>&5 |
| 5485 | ac_status=$? |
| 5486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5487 | test $ac_status = 0; } |
| 5488 | if test "$ac_status" -ne 0; then |
| 5489 | lt_cv_ar_at_file=@ |
| 5490 | fi |
| 5491 | fi |
| 5492 | rm -f conftest.* libconftest.a |
| 5493 | |
| 5494 | fi |
| 5495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5496 | |
| 5497 | fi |
| 5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5499 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5500 | |
| 5501 | if test "x$lt_cv_ar_at_file" = xno; then |
| 5502 | archiver_list_spec= |
| 5503 | else |
| 5504 | archiver_list_spec=$lt_cv_ar_at_file |
| 5505 | fi |
| 5506 | |
| 5507 | |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5513 | if test -n "$ac_tool_prefix"; then |
| 5514 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5515 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5517 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5518 | if ${ac_cv_prog_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5519 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5520 | else |
| 5521 | if test -n "$STRIP"; then |
| 5522 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5523 | else |
| 5524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5525 | for as_dir in $PATH |
| 5526 | do |
| 5527 | IFS=$as_save_IFS |
| 5528 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5530 | 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] | 5531 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5532 | $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] | 5533 | break 2 |
| 5534 | fi |
| 5535 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5536 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5537 | IFS=$as_save_IFS |
| 5538 | |
| 5539 | fi |
| 5540 | fi |
| 5541 | STRIP=$ac_cv_prog_STRIP |
| 5542 | if test -n "$STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5544 | $as_echo "$STRIP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5545 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5547 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5548 | fi |
| 5549 | |
| 5550 | |
| 5551 | fi |
| 5552 | if test -z "$ac_cv_prog_STRIP"; then |
| 5553 | ac_ct_STRIP=$STRIP |
| 5554 | # Extract the first word of "strip", so it can be a program name with args. |
| 5555 | set dummy strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5557 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5558 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5559 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5560 | else |
| 5561 | if test -n "$ac_ct_STRIP"; then |
| 5562 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5563 | else |
| 5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5565 | for as_dir in $PATH |
| 5566 | do |
| 5567 | IFS=$as_save_IFS |
| 5568 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5570 | 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] | 5571 | ac_cv_prog_ac_ct_STRIP="strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5572 | $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] | 5573 | break 2 |
| 5574 | fi |
| 5575 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5576 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5577 | IFS=$as_save_IFS |
| 5578 | |
| 5579 | fi |
| 5580 | fi |
| 5581 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5582 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5584 | $as_echo "$ac_ct_STRIP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5585 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5587 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5588 | fi |
| 5589 | |
| 5590 | if test "x$ac_ct_STRIP" = x; then |
| 5591 | STRIP=":" |
| 5592 | else |
| 5593 | case $cross_compiling:$ac_tool_warned in |
| 5594 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5595 | { $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] | 5596 | $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] | 5597 | ac_tool_warned=yes ;; |
| 5598 | esac |
| 5599 | STRIP=$ac_ct_STRIP |
| 5600 | fi |
| 5601 | else |
| 5602 | STRIP="$ac_cv_prog_STRIP" |
| 5603 | fi |
| 5604 | |
| 5605 | test -z "$STRIP" && STRIP=: |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | if test -n "$ac_tool_prefix"; then |
| 5613 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5614 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5616 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5617 | if ${ac_cv_prog_RANLIB+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5618 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5619 | else |
| 5620 | if test -n "$RANLIB"; then |
| 5621 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5622 | else |
| 5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5624 | for as_dir in $PATH |
| 5625 | do |
| 5626 | IFS=$as_save_IFS |
| 5627 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5629 | 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] | 5630 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5631 | $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] | 5632 | break 2 |
| 5633 | fi |
| 5634 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5635 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5636 | IFS=$as_save_IFS |
| 5637 | |
| 5638 | fi |
| 5639 | fi |
| 5640 | RANLIB=$ac_cv_prog_RANLIB |
| 5641 | if test -n "$RANLIB"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5643 | $as_echo "$RANLIB" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5644 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5646 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5647 | fi |
| 5648 | |
| 5649 | |
| 5650 | fi |
| 5651 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5652 | ac_ct_RANLIB=$RANLIB |
| 5653 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5654 | set dummy ranlib; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5656 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5657 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5658 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5659 | else |
| 5660 | if test -n "$ac_ct_RANLIB"; then |
| 5661 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5662 | else |
| 5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5664 | for as_dir in $PATH |
| 5665 | do |
| 5666 | IFS=$as_save_IFS |
| 5667 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5669 | 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] | 5670 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5671 | $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] | 5672 | break 2 |
| 5673 | fi |
| 5674 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5675 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5676 | IFS=$as_save_IFS |
| 5677 | |
| 5678 | fi |
| 5679 | fi |
| 5680 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5681 | if test -n "$ac_ct_RANLIB"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5683 | $as_echo "$ac_ct_RANLIB" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5684 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5686 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5687 | fi |
| 5688 | |
| 5689 | if test "x$ac_ct_RANLIB" = x; then |
| 5690 | RANLIB=":" |
| 5691 | else |
| 5692 | case $cross_compiling:$ac_tool_warned in |
| 5693 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5694 | { $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] | 5695 | $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] | 5696 | ac_tool_warned=yes ;; |
| 5697 | esac |
| 5698 | RANLIB=$ac_ct_RANLIB |
| 5699 | fi |
| 5700 | else |
| 5701 | RANLIB="$ac_cv_prog_RANLIB" |
| 5702 | fi |
| 5703 | |
| 5704 | test -z "$RANLIB" && RANLIB=: |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | # Determine commands to create old-style static archives. |
| 5712 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5713 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5714 | old_postuninstall_cmds= |
| 5715 | |
| 5716 | if test -n "$RANLIB"; then |
| 5717 | case $host_os in |
| 5718 | openbsd*) |
| 5719 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5720 | ;; |
| 5721 | *) |
| 5722 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5723 | ;; |
| 5724 | esac |
| 5725 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5726 | fi |
| 5727 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5728 | case $host_os in |
| 5729 | darwin*) |
| 5730 | lock_old_archive_extraction=yes ;; |
| 5731 | *) |
| 5732 | lock_old_archive_extraction=no ;; |
| 5733 | esac |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5740 | |
| 5741 | |
| 5742 | |
| 5743 | |
| 5744 | |
| 5745 | |
| 5746 | |
| 5747 | |
| 5748 | |
| 5749 | |
| 5750 | |
| 5751 | |
| 5752 | |
| 5753 | |
| 5754 | |
| 5755 | |
| 5756 | |
| 5757 | |
| 5758 | |
| 5759 | |
| 5760 | |
| 5761 | |
| 5762 | |
| 5763 | |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5773 | # If no C compiler was specified, use CC. |
| 5774 | LTCC=${LTCC-"$CC"} |
| 5775 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5776 | # If no C compiler flags were specified, use CFLAGS. |
| 5777 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5778 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5779 | # Allow CC to be a program name with arguments. |
| 5780 | compiler=$CC |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5781 | |
| 5782 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5783 | # 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] | 5784 | { $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] | 5785 | $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] | 5786 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5787 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5788 | else |
| 5789 | |
| 5790 | # These are sane defaults that work on at least a few old systems. |
| 5791 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5792 | |
| 5793 | # Character class describing NM global symbol codes. |
| 5794 | symcode='[BCDEGRST]' |
| 5795 | |
| 5796 | # Regexp to match symbols that can be accessed directly from C. |
| 5797 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5798 | |
| 5799 | # Define system-specific variables. |
| 5800 | case $host_os in |
| 5801 | aix*) |
| 5802 | symcode='[BCDT]' |
| 5803 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5804 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5805 | symcode='[ABCDGISTW]' |
| 5806 | ;; |
| 5807 | hpux*) |
| 5808 | if test "$host_cpu" = ia64; then |
| 5809 | symcode='[ABCDEGRST]' |
| 5810 | fi |
| 5811 | ;; |
| 5812 | irix* | nonstopux*) |
| 5813 | symcode='[BCDEGRST]' |
| 5814 | ;; |
| 5815 | osf*) |
| 5816 | symcode='[BCDEGQRST]' |
| 5817 | ;; |
| 5818 | solaris*) |
| 5819 | symcode='[BDRT]' |
| 5820 | ;; |
| 5821 | sco3.2v5*) |
| 5822 | symcode='[DT]' |
| 5823 | ;; |
| 5824 | sysv4.2uw2*) |
| 5825 | symcode='[DT]' |
| 5826 | ;; |
| 5827 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5828 | symcode='[ABDT]' |
| 5829 | ;; |
| 5830 | sysv4) |
| 5831 | symcode='[DFNSTU]' |
| 5832 | ;; |
| 5833 | esac |
| 5834 | |
| 5835 | # If we're using GNU nm, then use its standard symbol codes. |
| 5836 | case `$NM -V 2>&1` in |
| 5837 | *GNU* | *'with BFD'*) |
| 5838 | symcode='[ABCDGIRSTW]' ;; |
| 5839 | esac |
| 5840 | |
| 5841 | # Transform an extracted symbol line into a proper C declaration. |
| 5842 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5843 | # so use this general approach. |
| 5844 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5845 | |
| 5846 | # Transform an extracted symbol line into symbol name and symbol address |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5847 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5848 | 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] | 5849 | |
| 5850 | # Handle CRLF in mingw tool chain |
| 5851 | opt_cr= |
| 5852 | case $build_os in |
| 5853 | mingw*) |
| 5854 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5855 | ;; |
| 5856 | esac |
| 5857 | |
| 5858 | # Try without a prefix underscore, then with it. |
| 5859 | for ac_symprfx in "" "_"; do |
| 5860 | |
| 5861 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5862 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5863 | |
| 5864 | # Write the raw and C identifiers. |
| 5865 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5866 | # Fake it for dumpbin and say T for any non-static function |
| 5867 | # and D for any global variable. |
| 5868 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5869 | # which start with @ or ?. |
| 5870 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5871 | " {last_section=section; section=\$ 3};"\ |
| 5872 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5873 | " \$ 0!~/External *\|/{next};"\ |
| 5874 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5875 | " {if(hide[section]) next};"\ |
| 5876 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5877 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5878 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5879 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5880 | " ' prfx=^$ac_symprfx" |
| 5881 | else |
| 5882 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5883 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5884 | 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] | 5885 | |
| 5886 | # Check to see that the pipe works correctly. |
| 5887 | pipe_works=no |
| 5888 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5889 | rm -f conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5890 | cat > conftest.$ac_ext <<_LT_EOF |
| 5891 | #ifdef __cplusplus |
| 5892 | extern "C" { |
| 5893 | #endif |
| 5894 | char nm_test_var; |
| 5895 | void nm_test_func(void); |
| 5896 | void nm_test_func(void){} |
| 5897 | #ifdef __cplusplus |
| 5898 | } |
| 5899 | #endif |
| 5900 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5901 | _LT_EOF |
| 5902 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5903 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5904 | (eval $ac_compile) 2>&5 |
| 5905 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5907 | test $ac_status = 0; }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5908 | # Now try to grab the symbols. |
| 5909 | nlist=conftest.nm |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5910 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 5911 | (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] | 5912 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5914 | test $ac_status = 0; } && test -s "$nlist"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5915 | # Try sorting and uniquifying the output. |
| 5916 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5917 | mv -f "$nlist"T "$nlist" |
| 5918 | else |
| 5919 | rm -f "$nlist"T |
| 5920 | fi |
| 5921 | |
| 5922 | # Make sure that we snagged all the symbols we need. |
| 5923 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5924 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5925 | cat <<_LT_EOF > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5926 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 5927 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 5928 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 5929 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 5930 | # define LT_DLSYM_CONST |
| 5931 | #elif defined(__osf__) |
| 5932 | /* This system does not cope well with relocations in const data. */ |
| 5933 | # define LT_DLSYM_CONST |
| 5934 | #else |
| 5935 | # define LT_DLSYM_CONST const |
| 5936 | #endif |
| 5937 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5938 | #ifdef __cplusplus |
| 5939 | extern "C" { |
| 5940 | #endif |
| 5941 | |
| 5942 | _LT_EOF |
| 5943 | # Now generate the symbol file. |
| 5944 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5945 | |
| 5946 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5947 | |
| 5948 | /* The mapping between symbol names and symbols. */ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5949 | LT_DLSYM_CONST struct { |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5950 | const char *name; |
| 5951 | void *address; |
| 5952 | } |
| 5953 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5954 | { |
| 5955 | { "@PROGRAM@", (void *) 0 }, |
| 5956 | _LT_EOF |
| 5957 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5958 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5959 | {0, (void *) 0} |
| 5960 | }; |
| 5961 | |
| 5962 | /* This works around a problem in FreeBSD linker */ |
| 5963 | #ifdef FREEBSD_WORKAROUND |
| 5964 | static const void *lt_preloaded_setup() { |
| 5965 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5966 | } |
| 5967 | #endif |
| 5968 | |
| 5969 | #ifdef __cplusplus |
| 5970 | } |
| 5971 | #endif |
| 5972 | _LT_EOF |
| 5973 | # Now try linking the two files. |
| 5974 | mv conftest.$ac_objext conftstm.$ac_objext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5975 | lt_globsym_save_LIBS=$LIBS |
| 5976 | lt_globsym_save_CFLAGS=$CFLAGS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5977 | LIBS="conftstm.$ac_objext" |
| 5978 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5979 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5980 | (eval $ac_link) 2>&5 |
| 5981 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5983 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5984 | pipe_works=yes |
| 5985 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5986 | LIBS=$lt_globsym_save_LIBS |
| 5987 | CFLAGS=$lt_globsym_save_CFLAGS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5988 | else |
| 5989 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5990 | fi |
| 5991 | else |
| 5992 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5993 | fi |
| 5994 | else |
| 5995 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5996 | fi |
| 5997 | else |
| 5998 | echo "$progname: failed program was:" >&5 |
| 5999 | cat conftest.$ac_ext >&5 |
| 6000 | fi |
| 6001 | rm -rf conftest* conftst* |
| 6002 | |
| 6003 | # Do not use the global_symbol_pipe unless it works. |
| 6004 | if test "$pipe_works" = yes; then |
| 6005 | break |
| 6006 | else |
| 6007 | lt_cv_sys_global_symbol_pipe= |
| 6008 | fi |
| 6009 | done |
| 6010 | |
| 6011 | fi |
| 6012 | |
| 6013 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6014 | lt_cv_sys_global_symbol_to_cdecl= |
| 6015 | fi |
| 6016 | 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] | 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6018 | $as_echo "failed" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6019 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6021 | $as_echo "ok" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6022 | fi |
| 6023 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6024 | # Response file support. |
| 6025 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6026 | nm_file_list_spec='@' |
| 6027 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6028 | nm_file_list_spec='@' |
| 6029 | fi |
| 6030 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6031 | |
| 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
| 6045 | |
| 6046 | |
| 6047 | |
| 6048 | |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6058 | $as_echo_n "checking for sysroot... " >&6; } |
| 6059 | |
| 6060 | # Check whether --with-sysroot was given. |
| 6061 | if test "${with_sysroot+set}" = set; then : |
| 6062 | withval=$with_sysroot; |
| 6063 | else |
| 6064 | with_sysroot=no |
| 6065 | fi |
| 6066 | |
| 6067 | |
| 6068 | lt_sysroot= |
| 6069 | case ${with_sysroot} in #( |
| 6070 | yes) |
| 6071 | if test "$GCC" = yes; then |
| 6072 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6073 | fi |
| 6074 | ;; #( |
| 6075 | /*) |
| 6076 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6077 | ;; #( |
| 6078 | no|'') |
| 6079 | ;; #( |
| 6080 | *) |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6082 | $as_echo "${with_sysroot}" >&6; } |
| 6083 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6084 | ;; |
| 6085 | esac |
| 6086 | |
| 6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6088 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6094 | # Check whether --enable-libtool-lock was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6095 | if test "${enable_libtool_lock+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6096 | enableval=$enable_libtool_lock; |
| 6097 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6098 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6099 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6100 | |
| 6101 | # Some flags need to be propagated to the compiler or linker for good |
| 6102 | # libtool support. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6103 | case $host in |
| 6104 | ia64-*-hpux*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6105 | # Find out which ABI we are using. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6106 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6107 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6108 | (eval $ac_compile) 2>&5 |
| 6109 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6111 | test $ac_status = 0; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6112 | case `/usr/bin/file conftest.$ac_objext` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6113 | *ELF-32*) |
| 6114 | HPUX_IA64_MODE="32" |
| 6115 | ;; |
| 6116 | *ELF-64*) |
| 6117 | HPUX_IA64_MODE="64" |
| 6118 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6119 | esac |
| 6120 | fi |
| 6121 | rm -rf conftest* |
| 6122 | ;; |
| 6123 | *-*-irix6*) |
| 6124 | # Find out which ABI we are using. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6125 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6126 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6127 | (eval $ac_compile) 2>&5 |
| 6128 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6130 | test $ac_status = 0; }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6131 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6132 | case `/usr/bin/file conftest.$ac_objext` in |
| 6133 | *32-bit*) |
| 6134 | LD="${LD-ld} -melf32bsmip" |
| 6135 | ;; |
| 6136 | *N32*) |
| 6137 | LD="${LD-ld} -melf32bmipn32" |
| 6138 | ;; |
| 6139 | *64-bit*) |
| 6140 | LD="${LD-ld} -melf64bmip" |
| 6141 | ;; |
| 6142 | esac |
| 6143 | else |
| 6144 | case `/usr/bin/file conftest.$ac_objext` in |
| 6145 | *32-bit*) |
| 6146 | LD="${LD-ld} -32" |
| 6147 | ;; |
| 6148 | *N32*) |
| 6149 | LD="${LD-ld} -n32" |
| 6150 | ;; |
| 6151 | *64-bit*) |
| 6152 | LD="${LD-ld} -64" |
| 6153 | ;; |
| 6154 | esac |
| 6155 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6156 | fi |
| 6157 | rm -rf conftest* |
| 6158 | ;; |
| 6159 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6160 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6161 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6162 | # Find out which ABI we are using. |
| 6163 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6164 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6165 | (eval $ac_compile) 2>&5 |
| 6166 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6168 | test $ac_status = 0; }; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6169 | case `/usr/bin/file conftest.o` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6170 | *32-bit*) |
| 6171 | case $host in |
| 6172 | x86_64-*kfreebsd*-gnu) |
| 6173 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6174 | ;; |
| 6175 | x86_64-*linux*) |
| 6176 | LD="${LD-ld} -m elf_i386" |
| 6177 | ;; |
| 6178 | ppc64-*linux*|powerpc64-*linux*) |
| 6179 | LD="${LD-ld} -m elf32ppclinux" |
| 6180 | ;; |
| 6181 | s390x-*linux*) |
| 6182 | LD="${LD-ld} -m elf_s390" |
| 6183 | ;; |
| 6184 | sparc64-*linux*) |
| 6185 | LD="${LD-ld} -m elf32_sparc" |
| 6186 | ;; |
| 6187 | esac |
| 6188 | ;; |
| 6189 | *64-bit*) |
| 6190 | case $host in |
| 6191 | x86_64-*kfreebsd*-gnu) |
| 6192 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6193 | ;; |
| 6194 | x86_64-*linux*) |
| 6195 | LD="${LD-ld} -m elf_x86_64" |
| 6196 | ;; |
| 6197 | ppc*-*linux*|powerpc*-*linux*) |
| 6198 | LD="${LD-ld} -m elf64ppc" |
| 6199 | ;; |
| 6200 | s390*-*linux*|s390*-*tpf*) |
| 6201 | LD="${LD-ld} -m elf64_s390" |
| 6202 | ;; |
| 6203 | sparc*-*linux*) |
| 6204 | LD="${LD-ld} -m elf64_sparc" |
| 6205 | ;; |
| 6206 | esac |
| 6207 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6208 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6209 | fi |
| 6210 | rm -rf conftest* |
| 6211 | ;; |
| 6212 | |
| 6213 | *-*-sco3.2v5*) |
| 6214 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6215 | SAVE_CFLAGS="$CFLAGS" |
| 6216 | CFLAGS="$CFLAGS -belf" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6217 | { $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] | 6218 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6219 | if ${lt_cv_cc_needs_belf+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6220 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6221 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6222 | ac_ext=c |
| 6223 | ac_cpp='$CPP $CPPFLAGS' |
| 6224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6227 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6229 | /* end confdefs.h. */ |
| 6230 | |
| 6231 | int |
| 6232 | main () |
| 6233 | { |
| 6234 | |
| 6235 | ; |
| 6236 | return 0; |
| 6237 | } |
| 6238 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6239 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6240 | lt_cv_cc_needs_belf=yes |
| 6241 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6242 | lt_cv_cc_needs_belf=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6243 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6244 | rm -f core conftest.err conftest.$ac_objext \ |
| 6245 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6246 | ac_ext=c |
| 6247 | ac_cpp='$CPP $CPPFLAGS' |
| 6248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6251 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6252 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6253 | { $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] | 6254 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6255 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6256 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6257 | CFLAGS="$SAVE_CFLAGS" |
| 6258 | fi |
| 6259 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6260 | sparc*-*solaris*) |
| 6261 | # Find out which ABI we are using. |
| 6262 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6263 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6264 | (eval $ac_compile) 2>&5 |
| 6265 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6266 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6267 | test $ac_status = 0; }; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6268 | case `/usr/bin/file conftest.o` in |
| 6269 | *64-bit*) |
| 6270 | case $lt_cv_prog_gnu_ld in |
| 6271 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6272 | *) |
| 6273 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6274 | LD="${LD-ld} -64" |
| 6275 | fi |
| 6276 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6277 | esac |
| 6278 | ;; |
| 6279 | esac |
| 6280 | fi |
| 6281 | rm -rf conftest* |
| 6282 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6283 | esac |
| 6284 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6285 | need_locks="$enable_libtool_lock" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6286 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6287 | if test -n "$ac_tool_prefix"; then |
| 6288 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6289 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6291 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6292 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6293 | $as_echo_n "(cached) " >&6 |
| 6294 | else |
| 6295 | if test -n "$MANIFEST_TOOL"; then |
| 6296 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6297 | else |
| 6298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6299 | for as_dir in $PATH |
| 6300 | do |
| 6301 | IFS=$as_save_IFS |
| 6302 | test -z "$as_dir" && as_dir=. |
| 6303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6305 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6307 | break 2 |
| 6308 | fi |
| 6309 | done |
| 6310 | done |
| 6311 | IFS=$as_save_IFS |
| 6312 | |
| 6313 | fi |
| 6314 | fi |
| 6315 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6316 | if test -n "$MANIFEST_TOOL"; then |
| 6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6318 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6319 | else |
| 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6321 | $as_echo "no" >&6; } |
| 6322 | fi |
| 6323 | |
| 6324 | |
| 6325 | fi |
| 6326 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6327 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6328 | # Extract the first word of "mt", so it can be a program name with args. |
| 6329 | set dummy mt; ac_word=$2 |
| 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6331 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6332 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6333 | $as_echo_n "(cached) " >&6 |
| 6334 | else |
| 6335 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6336 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6337 | else |
| 6338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6339 | for as_dir in $PATH |
| 6340 | do |
| 6341 | IFS=$as_save_IFS |
| 6342 | test -z "$as_dir" && as_dir=. |
| 6343 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6345 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6347 | break 2 |
| 6348 | fi |
| 6349 | done |
| 6350 | done |
| 6351 | IFS=$as_save_IFS |
| 6352 | |
| 6353 | fi |
| 6354 | fi |
| 6355 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6356 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6358 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6359 | else |
| 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6361 | $as_echo "no" >&6; } |
| 6362 | fi |
| 6363 | |
| 6364 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6365 | MANIFEST_TOOL=":" |
| 6366 | else |
| 6367 | case $cross_compiling:$ac_tool_warned in |
| 6368 | yes:) |
| 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6370 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6371 | ac_tool_warned=yes ;; |
| 6372 | esac |
| 6373 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6374 | fi |
| 6375 | else |
| 6376 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6377 | fi |
| 6378 | |
| 6379 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6381 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6382 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6383 | $as_echo_n "(cached) " >&6 |
| 6384 | else |
| 6385 | lt_cv_path_mainfest_tool=no |
| 6386 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6387 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6388 | cat conftest.err >&5 |
| 6389 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6390 | lt_cv_path_mainfest_tool=yes |
| 6391 | fi |
| 6392 | rm -f conftest* |
| 6393 | fi |
| 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6395 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 6396 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 6397 | MANIFEST_TOOL=: |
| 6398 | fi |
| 6399 | |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6404 | |
| 6405 | case $host_os in |
| 6406 | rhapsody* | darwin*) |
| 6407 | if test -n "$ac_tool_prefix"; then |
| 6408 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6409 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6411 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6412 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6413 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6414 | else |
| 6415 | if test -n "$DSYMUTIL"; then |
| 6416 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6417 | else |
| 6418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6419 | for as_dir in $PATH |
| 6420 | do |
| 6421 | IFS=$as_save_IFS |
| 6422 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6424 | 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] | 6425 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6426 | $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] | 6427 | break 2 |
| 6428 | fi |
| 6429 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6430 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6431 | IFS=$as_save_IFS |
| 6432 | |
| 6433 | fi |
| 6434 | fi |
| 6435 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6436 | if test -n "$DSYMUTIL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6438 | $as_echo "$DSYMUTIL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6439 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6441 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6442 | fi |
| 6443 | |
| 6444 | |
| 6445 | fi |
| 6446 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6447 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6448 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6449 | set dummy dsymutil; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6451 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6452 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6453 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6454 | else |
| 6455 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6456 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6457 | else |
| 6458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6459 | for as_dir in $PATH |
| 6460 | do |
| 6461 | IFS=$as_save_IFS |
| 6462 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6464 | 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] | 6465 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6466 | $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] | 6467 | break 2 |
| 6468 | fi |
| 6469 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6470 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6471 | IFS=$as_save_IFS |
| 6472 | |
| 6473 | fi |
| 6474 | fi |
| 6475 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6476 | if test -n "$ac_ct_DSYMUTIL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6478 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6479 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6481 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6482 | fi |
| 6483 | |
| 6484 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6485 | DSYMUTIL=":" |
| 6486 | else |
| 6487 | case $cross_compiling:$ac_tool_warned in |
| 6488 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6489 | { $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] | 6490 | $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] | 6491 | ac_tool_warned=yes ;; |
| 6492 | esac |
| 6493 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6494 | fi |
| 6495 | else |
| 6496 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6497 | fi |
| 6498 | |
| 6499 | if test -n "$ac_tool_prefix"; then |
| 6500 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6501 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6503 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6504 | if ${ac_cv_prog_NMEDIT+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6505 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6506 | else |
| 6507 | if test -n "$NMEDIT"; then |
| 6508 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6509 | else |
| 6510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6511 | for as_dir in $PATH |
| 6512 | do |
| 6513 | IFS=$as_save_IFS |
| 6514 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6516 | 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] | 6517 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6518 | $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] | 6519 | break 2 |
| 6520 | fi |
| 6521 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6522 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6523 | IFS=$as_save_IFS |
| 6524 | |
| 6525 | fi |
| 6526 | fi |
| 6527 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6528 | if test -n "$NMEDIT"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6530 | $as_echo "$NMEDIT" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6531 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6533 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6534 | fi |
| 6535 | |
| 6536 | |
| 6537 | fi |
| 6538 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6539 | ac_ct_NMEDIT=$NMEDIT |
| 6540 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6541 | set dummy nmedit; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6543 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6544 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6545 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6546 | else |
| 6547 | if test -n "$ac_ct_NMEDIT"; then |
| 6548 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6549 | else |
| 6550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6551 | for as_dir in $PATH |
| 6552 | do |
| 6553 | IFS=$as_save_IFS |
| 6554 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6556 | 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] | 6557 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6558 | $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] | 6559 | break 2 |
| 6560 | fi |
| 6561 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6562 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6563 | IFS=$as_save_IFS |
| 6564 | |
| 6565 | fi |
| 6566 | fi |
| 6567 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6568 | if test -n "$ac_ct_NMEDIT"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6570 | $as_echo "$ac_ct_NMEDIT" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6571 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6573 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6574 | fi |
| 6575 | |
| 6576 | if test "x$ac_ct_NMEDIT" = x; then |
| 6577 | NMEDIT=":" |
| 6578 | else |
| 6579 | case $cross_compiling:$ac_tool_warned in |
| 6580 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6581 | { $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] | 6582 | $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] | 6583 | ac_tool_warned=yes ;; |
| 6584 | esac |
| 6585 | NMEDIT=$ac_ct_NMEDIT |
| 6586 | fi |
| 6587 | else |
| 6588 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6589 | fi |
| 6590 | |
| 6591 | if test -n "$ac_tool_prefix"; then |
| 6592 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6593 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6595 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6596 | if ${ac_cv_prog_LIPO+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6597 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6598 | else |
| 6599 | if test -n "$LIPO"; then |
| 6600 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6601 | else |
| 6602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6603 | for as_dir in $PATH |
| 6604 | do |
| 6605 | IFS=$as_save_IFS |
| 6606 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6608 | 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] | 6609 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6610 | $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] | 6611 | break 2 |
| 6612 | fi |
| 6613 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6614 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6615 | IFS=$as_save_IFS |
| 6616 | |
| 6617 | fi |
| 6618 | fi |
| 6619 | LIPO=$ac_cv_prog_LIPO |
| 6620 | if test -n "$LIPO"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6622 | $as_echo "$LIPO" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6623 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6625 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6626 | fi |
| 6627 | |
| 6628 | |
| 6629 | fi |
| 6630 | if test -z "$ac_cv_prog_LIPO"; then |
| 6631 | ac_ct_LIPO=$LIPO |
| 6632 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6633 | set dummy lipo; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6635 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6636 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6637 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6638 | else |
| 6639 | if test -n "$ac_ct_LIPO"; then |
| 6640 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6641 | else |
| 6642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6643 | for as_dir in $PATH |
| 6644 | do |
| 6645 | IFS=$as_save_IFS |
| 6646 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6648 | 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] | 6649 | ac_cv_prog_ac_ct_LIPO="lipo" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6650 | $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] | 6651 | break 2 |
| 6652 | fi |
| 6653 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6654 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6655 | IFS=$as_save_IFS |
| 6656 | |
| 6657 | fi |
| 6658 | fi |
| 6659 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6660 | if test -n "$ac_ct_LIPO"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6662 | $as_echo "$ac_ct_LIPO" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6663 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6665 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6666 | fi |
| 6667 | |
| 6668 | if test "x$ac_ct_LIPO" = x; then |
| 6669 | LIPO=":" |
| 6670 | else |
| 6671 | case $cross_compiling:$ac_tool_warned in |
| 6672 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6673 | { $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] | 6674 | $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] | 6675 | ac_tool_warned=yes ;; |
| 6676 | esac |
| 6677 | LIPO=$ac_ct_LIPO |
| 6678 | fi |
| 6679 | else |
| 6680 | LIPO="$ac_cv_prog_LIPO" |
| 6681 | fi |
| 6682 | |
| 6683 | if test -n "$ac_tool_prefix"; then |
| 6684 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6685 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6687 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6688 | if ${ac_cv_prog_OTOOL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6689 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6690 | else |
| 6691 | if test -n "$OTOOL"; then |
| 6692 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6693 | else |
| 6694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6695 | for as_dir in $PATH |
| 6696 | do |
| 6697 | IFS=$as_save_IFS |
| 6698 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6700 | 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] | 6701 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6702 | $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] | 6703 | break 2 |
| 6704 | fi |
| 6705 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6706 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6707 | IFS=$as_save_IFS |
| 6708 | |
| 6709 | fi |
| 6710 | fi |
| 6711 | OTOOL=$ac_cv_prog_OTOOL |
| 6712 | if test -n "$OTOOL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6714 | $as_echo "$OTOOL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6715 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6717 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6718 | fi |
| 6719 | |
| 6720 | |
| 6721 | fi |
| 6722 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6723 | ac_ct_OTOOL=$OTOOL |
| 6724 | # Extract the first word of "otool", so it can be a program name with args. |
| 6725 | set dummy otool; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6727 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6728 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6729 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6730 | else |
| 6731 | if test -n "$ac_ct_OTOOL"; then |
| 6732 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6733 | else |
| 6734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6735 | for as_dir in $PATH |
| 6736 | do |
| 6737 | IFS=$as_save_IFS |
| 6738 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6739 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6740 | 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] | 6741 | ac_cv_prog_ac_ct_OTOOL="otool" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6742 | $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] | 6743 | break 2 |
| 6744 | fi |
| 6745 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6746 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6747 | IFS=$as_save_IFS |
| 6748 | |
| 6749 | fi |
| 6750 | fi |
| 6751 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6752 | if test -n "$ac_ct_OTOOL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6754 | $as_echo "$ac_ct_OTOOL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6755 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6757 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6758 | fi |
| 6759 | |
| 6760 | if test "x$ac_ct_OTOOL" = x; then |
| 6761 | OTOOL=":" |
| 6762 | else |
| 6763 | case $cross_compiling:$ac_tool_warned in |
| 6764 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6765 | { $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] | 6766 | $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] | 6767 | ac_tool_warned=yes ;; |
| 6768 | esac |
| 6769 | OTOOL=$ac_ct_OTOOL |
| 6770 | fi |
| 6771 | else |
| 6772 | OTOOL="$ac_cv_prog_OTOOL" |
| 6773 | fi |
| 6774 | |
| 6775 | if test -n "$ac_tool_prefix"; then |
| 6776 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6777 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6779 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6780 | if ${ac_cv_prog_OTOOL64+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6781 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6782 | else |
| 6783 | if test -n "$OTOOL64"; then |
| 6784 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6785 | else |
| 6786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6787 | for as_dir in $PATH |
| 6788 | do |
| 6789 | IFS=$as_save_IFS |
| 6790 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6792 | 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] | 6793 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6794 | $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] | 6795 | break 2 |
| 6796 | fi |
| 6797 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6798 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6799 | IFS=$as_save_IFS |
| 6800 | |
| 6801 | fi |
| 6802 | fi |
| 6803 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6804 | if test -n "$OTOOL64"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6806 | $as_echo "$OTOOL64" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6807 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6809 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6810 | fi |
| 6811 | |
| 6812 | |
| 6813 | fi |
| 6814 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6815 | ac_ct_OTOOL64=$OTOOL64 |
| 6816 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6817 | set dummy otool64; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6819 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6820 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6821 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6822 | else |
| 6823 | if test -n "$ac_ct_OTOOL64"; then |
| 6824 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6825 | else |
| 6826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6827 | for as_dir in $PATH |
| 6828 | do |
| 6829 | IFS=$as_save_IFS |
| 6830 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6832 | 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] | 6833 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6834 | $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] | 6835 | break 2 |
| 6836 | fi |
| 6837 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6838 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6839 | IFS=$as_save_IFS |
| 6840 | |
| 6841 | fi |
| 6842 | fi |
| 6843 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6844 | if test -n "$ac_ct_OTOOL64"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6846 | $as_echo "$ac_ct_OTOOL64" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6847 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6849 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6850 | fi |
| 6851 | |
| 6852 | if test "x$ac_ct_OTOOL64" = x; then |
| 6853 | OTOOL64=":" |
| 6854 | else |
| 6855 | case $cross_compiling:$ac_tool_warned in |
| 6856 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6857 | { $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] | 6858 | $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] | 6859 | ac_tool_warned=yes ;; |
| 6860 | esac |
| 6861 | OTOOL64=$ac_ct_OTOOL64 |
| 6862 | fi |
| 6863 | else |
| 6864 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6865 | fi |
| 6866 | |
| 6867 | |
| 6868 | |
| 6869 | |
| 6870 | |
| 6871 | |
| 6872 | |
| 6873 | |
| 6874 | |
| 6875 | |
| 6876 | |
| 6877 | |
| 6878 | |
| 6879 | |
| 6880 | |
| 6881 | |
| 6882 | |
| 6883 | |
| 6884 | |
| 6885 | |
| 6886 | |
| 6887 | |
| 6888 | |
| 6889 | |
| 6890 | |
| 6891 | |
| 6892 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6893 | { $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] | 6894 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6895 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6896 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6897 | else |
| 6898 | lt_cv_apple_cc_single_mod=no |
| 6899 | if test -z "${LT_MULTI_MODULE}"; then |
| 6900 | # By default we will add the -single_module flag. You can override |
| 6901 | # by either setting the environment variable LT_MULTI_MODULE |
| 6902 | # non-empty at configure time, or by adding -multi_module to the |
| 6903 | # link flags. |
| 6904 | rm -rf libconftest.dylib* |
| 6905 | echo "int foo(void){return 1;}" > conftest.c |
| 6906 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6907 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6908 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6909 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6910 | _lt_result=$? |
| 6911 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 6912 | lt_cv_apple_cc_single_mod=yes |
| 6913 | else |
| 6914 | cat conftest.err >&5 |
| 6915 | fi |
| 6916 | rm -rf libconftest.dylib* |
| 6917 | rm -f conftest.* |
| 6918 | fi |
| 6919 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6920 | { $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] | 6921 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6922 | { $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] | 6923 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6924 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6925 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6926 | else |
| 6927 | lt_cv_ld_exported_symbols_list=no |
| 6928 | save_LDFLAGS=$LDFLAGS |
| 6929 | echo "_main" > conftest.sym |
| 6930 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6932 | /* end confdefs.h. */ |
| 6933 | |
| 6934 | int |
| 6935 | main () |
| 6936 | { |
| 6937 | |
| 6938 | ; |
| 6939 | return 0; |
| 6940 | } |
| 6941 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6942 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6943 | lt_cv_ld_exported_symbols_list=yes |
| 6944 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6945 | lt_cv_ld_exported_symbols_list=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6946 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6947 | rm -f core conftest.err conftest.$ac_objext \ |
| 6948 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6949 | LDFLAGS="$save_LDFLAGS" |
| 6950 | |
| 6951 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6952 | { $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] | 6953 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 6955 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 6956 | if ${lt_cv_ld_force_load+:} false; then : |
| 6957 | $as_echo_n "(cached) " >&6 |
| 6958 | else |
| 6959 | lt_cv_ld_force_load=no |
| 6960 | cat > conftest.c << _LT_EOF |
| 6961 | int forced_loaded() { return 2;} |
| 6962 | _LT_EOF |
| 6963 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 6964 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 6965 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 6966 | $AR cru libconftest.a conftest.o 2>&5 |
| 6967 | echo "$RANLIB libconftest.a" >&5 |
| 6968 | $RANLIB libconftest.a 2>&5 |
| 6969 | cat > conftest.c << _LT_EOF |
| 6970 | int main() { return 0;} |
| 6971 | _LT_EOF |
| 6972 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 6973 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 6974 | _lt_result=$? |
| 6975 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 6976 | lt_cv_ld_force_load=yes |
| 6977 | else |
| 6978 | cat conftest.err >&5 |
| 6979 | fi |
| 6980 | rm -f conftest.err libconftest.a conftest conftest.c |
| 6981 | rm -rf conftest.dSYM |
| 6982 | |
| 6983 | fi |
| 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 6985 | $as_echo "$lt_cv_ld_force_load" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6986 | case $host_os in |
| 6987 | rhapsody* | darwin1.[012]) |
| 6988 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 6989 | darwin1.*) |
| 6990 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6991 | darwin*) # darwin 5.x on |
| 6992 | # if running on 10.5 or later, the deployment target defaults |
| 6993 | # to the OS version, if on x86, and 10.4, the deployment |
| 6994 | # target defaults to 10.4. Don't you love it? |
| 6995 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 6996 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 6997 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6998 | 10.[012]*) |
| 6999 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7000 | 10.*) |
| 7001 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7002 | esac |
| 7003 | ;; |
| 7004 | esac |
| 7005 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7006 | _lt_dar_single_mod='$single_module' |
| 7007 | fi |
| 7008 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7009 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7010 | else |
| 7011 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7012 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7013 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7014 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7015 | else |
| 7016 | _lt_dsymutil= |
| 7017 | fi |
| 7018 | ;; |
| 7019 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7020 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7021 | ac_ext=c |
| 7022 | ac_cpp='$CPP $CPPFLAGS' |
| 7023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7026 | { $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] | 7027 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7028 | # On Suns, sometimes $CPP names a directory. |
| 7029 | if test -n "$CPP" && test -d "$CPP"; then |
| 7030 | CPP= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7031 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7032 | if test -z "$CPP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7033 | if ${ac_cv_prog_CPP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7034 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7035 | else |
| 7036 | # Double quotes because CPP needs to be expanded |
| 7037 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7038 | do |
| 7039 | ac_preproc_ok=false |
| 7040 | for ac_c_preproc_warn_flag in '' yes |
| 7041 | do |
| 7042 | # Use a header file that comes with gcc, so configuring glibc |
| 7043 | # with a fresh cross-compiler works. |
| 7044 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7045 | # <limits.h> exists even on freestanding compilers. |
| 7046 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7047 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7049 | /* end confdefs.h. */ |
| 7050 | #ifdef __STDC__ |
| 7051 | # include <limits.h> |
| 7052 | #else |
| 7053 | # include <assert.h> |
| 7054 | #endif |
| 7055 | Syntax error |
| 7056 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7057 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7058 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7059 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7060 | # Broken: fails on valid input. |
| 7061 | continue |
| 7062 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7063 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7064 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7065 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7066 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7068 | /* end confdefs.h. */ |
| 7069 | #include <ac_nonexistent.h> |
| 7070 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7071 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7072 | # Broken: success on invalid input. |
| 7073 | continue |
| 7074 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7075 | # Passes both tests. |
| 7076 | ac_preproc_ok=: |
| 7077 | break |
| 7078 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7079 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7080 | |
| 7081 | done |
| 7082 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7083 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7084 | if $ac_preproc_ok; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7085 | break |
| 7086 | fi |
| 7087 | |
| 7088 | done |
| 7089 | ac_cv_prog_CPP=$CPP |
| 7090 | |
| 7091 | fi |
| 7092 | CPP=$ac_cv_prog_CPP |
| 7093 | else |
| 7094 | ac_cv_prog_CPP=$CPP |
| 7095 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7097 | $as_echo "$CPP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7098 | ac_preproc_ok=false |
| 7099 | for ac_c_preproc_warn_flag in '' yes |
| 7100 | do |
| 7101 | # Use a header file that comes with gcc, so configuring glibc |
| 7102 | # with a fresh cross-compiler works. |
| 7103 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7104 | # <limits.h> exists even on freestanding compilers. |
| 7105 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7106 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7108 | /* end confdefs.h. */ |
| 7109 | #ifdef __STDC__ |
| 7110 | # include <limits.h> |
| 7111 | #else |
| 7112 | # include <assert.h> |
| 7113 | #endif |
| 7114 | Syntax error |
| 7115 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7116 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7117 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7118 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7119 | # Broken: fails on valid input. |
| 7120 | continue |
| 7121 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7122 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7123 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7124 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7125 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7127 | /* end confdefs.h. */ |
| 7128 | #include <ac_nonexistent.h> |
| 7129 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7130 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7131 | # Broken: success on invalid input. |
| 7132 | continue |
| 7133 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7134 | # Passes both tests. |
| 7135 | ac_preproc_ok=: |
| 7136 | break |
| 7137 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7138 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7139 | |
| 7140 | done |
| 7141 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7142 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7143 | if $ac_preproc_ok; then : |
| 7144 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7145 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7146 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7148 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7149 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7150 | fi |
| 7151 | |
| 7152 | ac_ext=c |
| 7153 | ac_cpp='$CPP $CPPFLAGS' |
| 7154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7157 | |
| 7158 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7159 | { $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] | 7160 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7161 | if ${ac_cv_header_stdc+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7162 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7163 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7165 | /* end confdefs.h. */ |
| 7166 | #include <stdlib.h> |
| 7167 | #include <stdarg.h> |
| 7168 | #include <string.h> |
| 7169 | #include <float.h> |
| 7170 | |
| 7171 | int |
| 7172 | main () |
| 7173 | { |
| 7174 | |
| 7175 | ; |
| 7176 | return 0; |
| 7177 | } |
| 7178 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7179 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7180 | ac_cv_header_stdc=yes |
| 7181 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7182 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7183 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7185 | |
| 7186 | if test $ac_cv_header_stdc = yes; then |
| 7187 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7189 | /* end confdefs.h. */ |
| 7190 | #include <string.h> |
| 7191 | |
| 7192 | _ACEOF |
| 7193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7194 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7195 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7196 | else |
| 7197 | ac_cv_header_stdc=no |
| 7198 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7199 | rm -f conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7200 | |
| 7201 | fi |
| 7202 | |
| 7203 | if test $ac_cv_header_stdc = yes; then |
| 7204 | # 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] | 7205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7206 | /* end confdefs.h. */ |
| 7207 | #include <stdlib.h> |
| 7208 | |
| 7209 | _ACEOF |
| 7210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7211 | $EGREP "free" >/dev/null 2>&1; then : |
| 7212 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7213 | else |
| 7214 | ac_cv_header_stdc=no |
| 7215 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7216 | rm -f conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7217 | |
| 7218 | fi |
| 7219 | |
| 7220 | if test $ac_cv_header_stdc = yes; then |
| 7221 | # /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] | 7222 | if test "$cross_compiling" = yes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7223 | : |
| 7224 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7226 | /* end confdefs.h. */ |
| 7227 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7228 | #include <stdlib.h> |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7229 | #if ((' ' & 0x0FF) == 0x020) |
| 7230 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7231 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7232 | #else |
| 7233 | # define ISLOWER(c) \ |
| 7234 | (('a' <= (c) && (c) <= 'i') \ |
| 7235 | || ('j' <= (c) && (c) <= 'r') \ |
| 7236 | || ('s' <= (c) && (c) <= 'z')) |
| 7237 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7238 | #endif |
| 7239 | |
| 7240 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7241 | int |
| 7242 | main () |
| 7243 | { |
| 7244 | int i; |
| 7245 | for (i = 0; i < 256; i++) |
| 7246 | if (XOR (islower (i), ISLOWER (i)) |
| 7247 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7248 | return 2; |
| 7249 | return 0; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7250 | } |
| 7251 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7252 | if ac_fn_c_try_run "$LINENO"; then : |
| 7253 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7254 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7255 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7256 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7257 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7258 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7259 | fi |
| 7260 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7261 | fi |
| 7262 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7263 | { $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] | 7264 | $as_echo "$ac_cv_header_stdc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7265 | if test $ac_cv_header_stdc = yes; then |
| 7266 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7267 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7268 | |
| 7269 | fi |
| 7270 | |
| 7271 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7272 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7273 | inttypes.h stdint.h unistd.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7274 | do : |
| 7275 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7276 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7277 | " |
| 7278 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7279 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7280 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7281 | _ACEOF |
| 7282 | |
| 7283 | fi |
| 7284 | |
| 7285 | done |
| 7286 | |
| 7287 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7288 | for ac_header in dlfcn.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7289 | do : |
| 7290 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7291 | " |
| 7292 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7293 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7294 | #define HAVE_DLFCN_H 1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7295 | _ACEOF |
| 7296 | |
| 7297 | fi |
| 7298 | |
| 7299 | done |
| 7300 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7301 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7302 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7303 | |
| 7304 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7305 | # Set options |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7306 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7307 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7308 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7309 | enable_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7310 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7311 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7312 | enable_win32_dll=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7313 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7314 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7315 | # Check whether --enable-shared was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7316 | if test "${enable_shared+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7317 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7318 | case $enableval in |
| 7319 | yes) enable_shared=yes ;; |
| 7320 | no) enable_shared=no ;; |
| 7321 | *) |
| 7322 | enable_shared=no |
| 7323 | # Look at the argument we got. We use all the common list separators. |
| 7324 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7325 | for pkg in $enableval; do |
| 7326 | IFS="$lt_save_ifs" |
| 7327 | if test "X$pkg" = "X$p"; then |
| 7328 | enable_shared=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7329 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7330 | done |
| 7331 | IFS="$lt_save_ifs" |
| 7332 | ;; |
| 7333 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7334 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7335 | enable_shared=yes |
| 7336 | fi |
| 7337 | |
| 7338 | |
| 7339 | |
| 7340 | |
| 7341 | |
| 7342 | |
| 7343 | |
| 7344 | |
| 7345 | |
| 7346 | # Check whether --enable-static was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7347 | if test "${enable_static+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7348 | enableval=$enable_static; p=${PACKAGE-default} |
| 7349 | case $enableval in |
| 7350 | yes) enable_static=yes ;; |
| 7351 | no) enable_static=no ;; |
| 7352 | *) |
| 7353 | enable_static=no |
| 7354 | # Look at the argument we got. We use all the common list separators. |
| 7355 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7356 | for pkg in $enableval; do |
| 7357 | IFS="$lt_save_ifs" |
| 7358 | if test "X$pkg" = "X$p"; then |
| 7359 | enable_static=yes |
| 7360 | fi |
| 7361 | done |
| 7362 | IFS="$lt_save_ifs" |
| 7363 | ;; |
| 7364 | esac |
| 7365 | else |
| 7366 | enable_static=yes |
| 7367 | fi |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | |
| 7373 | |
| 7374 | |
| 7375 | |
| 7376 | |
| 7377 | |
| 7378 | # Check whether --with-pic was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7379 | if test "${with_pic+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7380 | withval=$with_pic; pic_mode="$withval" |
| 7381 | else |
| 7382 | pic_mode=default |
| 7383 | fi |
| 7384 | |
| 7385 | |
| 7386 | test -z "$pic_mode" && pic_mode=default |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | |
| 7391 | |
| 7392 | |
| 7393 | |
| 7394 | # Check whether --enable-fast-install was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7395 | if test "${enable_fast_install+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7396 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7397 | case $enableval in |
| 7398 | yes) enable_fast_install=yes ;; |
| 7399 | no) enable_fast_install=no ;; |
| 7400 | *) |
| 7401 | enable_fast_install=no |
| 7402 | # Look at the argument we got. We use all the common list separators. |
| 7403 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7404 | for pkg in $enableval; do |
| 7405 | IFS="$lt_save_ifs" |
| 7406 | if test "X$pkg" = "X$p"; then |
| 7407 | enable_fast_install=yes |
| 7408 | fi |
| 7409 | done |
| 7410 | IFS="$lt_save_ifs" |
| 7411 | ;; |
| 7412 | esac |
| 7413 | else |
| 7414 | enable_fast_install=yes |
| 7415 | fi |
| 7416 | |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | |
| 7422 | |
| 7423 | |
| 7424 | |
| 7425 | |
| 7426 | |
| 7427 | # This can be used to rebuild libtool when needed |
| 7428 | LIBTOOL_DEPS="$ltmain" |
| 7429 | |
| 7430 | # Always use our own libtool. |
| 7431 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7432 | |
| 7433 | |
| 7434 | |
| 7435 | |
| 7436 | |
| 7437 | |
| 7438 | |
| 7439 | |
| 7440 | |
| 7441 | |
| 7442 | |
| 7443 | |
| 7444 | |
| 7445 | |
| 7446 | |
| 7447 | |
| 7448 | |
| 7449 | |
| 7450 | |
| 7451 | |
| 7452 | |
| 7453 | |
| 7454 | |
| 7455 | |
| 7456 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7457 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7458 | test -z "$LN_S" && LN_S="ln -s" |
| 7459 | |
| 7460 | |
| 7461 | |
| 7462 | |
| 7463 | |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
| 7469 | |
| 7470 | |
| 7471 | |
| 7472 | |
| 7473 | if test -n "${ZSH_VERSION+set}" ; then |
| 7474 | setopt NO_GLOB_SUBST |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7475 | fi |
| 7476 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7478 | $as_echo_n "checking for objdir... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7479 | if ${lt_cv_objdir+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7480 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7481 | else |
| 7482 | rm -f .libs 2>/dev/null |
| 7483 | mkdir .libs 2>/dev/null |
| 7484 | if test -d .libs; then |
| 7485 | lt_cv_objdir=.libs |
| 7486 | else |
| 7487 | # MS-DOS does not allow filenames that begin with a dot. |
| 7488 | lt_cv_objdir=_libs |
| 7489 | fi |
| 7490 | rmdir .libs 2>/dev/null |
| 7491 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7493 | $as_echo "$lt_cv_objdir" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7494 | objdir=$lt_cv_objdir |
| 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7500 | cat >>confdefs.h <<_ACEOF |
| 7501 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7502 | _ACEOF |
| 7503 | |
| 7504 | |
| 7505 | |
| 7506 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7507 | case $host_os in |
| 7508 | aix3*) |
| 7509 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7510 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7511 | # vanish in a puff of smoke. |
| 7512 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7513 | COLLECT_NAMES= |
| 7514 | export COLLECT_NAMES |
| 7515 | fi |
| 7516 | ;; |
| 7517 | esac |
| 7518 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7519 | # Global variables: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7520 | ofile=libtool |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7521 | can_build_shared=yes |
| 7522 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7523 | # All known linkers require a `.a' archive for static linking (except MSVC, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7524 | # which needs '.lib'). |
| 7525 | libext=a |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7526 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7527 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7528 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7529 | old_CC="$CC" |
| 7530 | old_CFLAGS="$CFLAGS" |
| 7531 | |
| 7532 | # Set sane defaults for various variables |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7533 | test -z "$CC" && CC=cc |
| 7534 | test -z "$LTCC" && LTCC=$CC |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7535 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7536 | test -z "$LD" && LD=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7537 | test -z "$ac_objext" && ac_objext=o |
| 7538 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7539 | for cc_temp in $compiler""; do |
| 7540 | case $cc_temp in |
| 7541 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7542 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7543 | \-*) ;; |
| 7544 | *) break;; |
| 7545 | esac |
| 7546 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7547 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7548 | |
| 7549 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7550 | # Only perform the check for file, if the check method requires it |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7551 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7552 | case $deplibs_check_method in |
| 7553 | file_magic*) |
| 7554 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7555 | { $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] | 7556 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7557 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7558 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7559 | else |
| 7560 | case $MAGIC_CMD in |
| 7561 | [\\/*] | ?:[\\/]*) |
| 7562 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7563 | ;; |
| 7564 | *) |
| 7565 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7566 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7567 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7568 | for ac_dir in $ac_dummy; do |
| 7569 | IFS="$lt_save_ifs" |
| 7570 | test -z "$ac_dir" && ac_dir=. |
| 7571 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7572 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7573 | if test -n "$file_magic_test_file"; then |
| 7574 | case $deplibs_check_method in |
| 7575 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7576 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7577 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7578 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7579 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7580 | : |
| 7581 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7582 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7583 | |
| 7584 | *** Warning: the command libtool uses to detect shared libraries, |
| 7585 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7586 | *** The result is that libtool may fail to recognize shared libraries |
| 7587 | *** as such. This will affect the creation of libtool libraries that |
| 7588 | *** depend on shared libraries, but programs linked with such libtool |
| 7589 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7590 | *** may want to report the problem to your system manager and/or to |
| 7591 | *** bug-libtool@gnu.org |
| 7592 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7593 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7594 | fi ;; |
| 7595 | esac |
| 7596 | fi |
| 7597 | break |
| 7598 | fi |
| 7599 | done |
| 7600 | IFS="$lt_save_ifs" |
| 7601 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7602 | ;; |
| 7603 | esac |
| 7604 | fi |
| 7605 | |
| 7606 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7607 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7609 | $as_echo "$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7610 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7612 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7613 | fi |
| 7614 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7615 | |
| 7616 | |
| 7617 | |
| 7618 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7619 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7620 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7622 | $as_echo_n "checking for file... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7623 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7624 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7625 | else |
| 7626 | case $MAGIC_CMD in |
| 7627 | [\\/*] | ?:[\\/]*) |
| 7628 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7629 | ;; |
| 7630 | *) |
| 7631 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7632 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7633 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7634 | for ac_dir in $ac_dummy; do |
| 7635 | IFS="$lt_save_ifs" |
| 7636 | test -z "$ac_dir" && ac_dir=. |
| 7637 | if test -f $ac_dir/file; then |
| 7638 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7639 | if test -n "$file_magic_test_file"; then |
| 7640 | case $deplibs_check_method in |
| 7641 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7642 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7643 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7644 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7645 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7646 | : |
| 7647 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7648 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7649 | |
| 7650 | *** Warning: the command libtool uses to detect shared libraries, |
| 7651 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7652 | *** The result is that libtool may fail to recognize shared libraries |
| 7653 | *** as such. This will affect the creation of libtool libraries that |
| 7654 | *** depend on shared libraries, but programs linked with such libtool |
| 7655 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7656 | *** may want to report the problem to your system manager and/or to |
| 7657 | *** bug-libtool@gnu.org |
| 7658 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7659 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7660 | fi ;; |
| 7661 | esac |
| 7662 | fi |
| 7663 | break |
| 7664 | fi |
| 7665 | done |
| 7666 | IFS="$lt_save_ifs" |
| 7667 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7668 | ;; |
| 7669 | esac |
| 7670 | fi |
| 7671 | |
| 7672 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7673 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7675 | $as_echo "$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7676 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7678 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7679 | fi |
| 7680 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7681 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7682 | else |
| 7683 | MAGIC_CMD=: |
| 7684 | fi |
| 7685 | fi |
| 7686 | |
| 7687 | fi |
| 7688 | ;; |
| 7689 | esac |
| 7690 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7691 | # Use C for the default configuration in the libtool script |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7692 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7693 | lt_save_CC="$CC" |
| 7694 | ac_ext=c |
| 7695 | ac_cpp='$CPP $CPPFLAGS' |
| 7696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7699 | |
| 7700 | |
| 7701 | # Source file extension for C test sources. |
| 7702 | ac_ext=c |
| 7703 | |
| 7704 | # Object file extension for compiled C test sources. |
| 7705 | objext=o |
| 7706 | objext=$objext |
| 7707 | |
| 7708 | # Code to be used in simple compile tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7709 | lt_simple_compile_test_code="int some_variable = 0;" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7710 | |
| 7711 | # Code to be used in simple link tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7712 | lt_simple_link_test_code='int main(){return(0);}' |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | |
| 7717 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7718 | |
| 7719 | |
| 7720 | # If no C compiler was specified, use CC. |
| 7721 | LTCC=${LTCC-"$CC"} |
| 7722 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7723 | # If no C compiler flags were specified, use CFLAGS. |
| 7724 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7725 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7726 | # Allow CC to be a program name with arguments. |
| 7727 | compiler=$CC |
| 7728 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7729 | # Save the default compiler, since it gets overwritten when the other |
| 7730 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7731 | compiler_DEFAULT=$CC |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7732 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7733 | # save warnings/boilerplate of simple test code |
| 7734 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7735 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7736 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7737 | _lt_compiler_boilerplate=`cat conftest.err` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7738 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7739 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7740 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7741 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7742 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7743 | _lt_linker_boilerplate=`cat conftest.err` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7744 | $RM -r conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7745 | |
| 7746 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 7747 | ## CAVEAT EMPTOR: |
| 7748 | ## There is no encapsulation within the following macros, do not change |
| 7749 | ## the running order or otherwise move them around unless you know exactly |
| 7750 | ## what you are doing... |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7751 | if test -n "$compiler"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7752 | |
| 7753 | lt_prog_compiler_no_builtin_flag= |
| 7754 | |
| 7755 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7756 | case $cc_basename in |
| 7757 | nvcc*) |
| 7758 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 7759 | *) |
| 7760 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 7761 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7762 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7763 | { $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] | 7764 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7765 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7766 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7767 | else |
| 7768 | lt_cv_prog_compiler_rtti_exceptions=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7769 | ac_outfile=conftest.$ac_objext |
| 7770 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7771 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7772 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7773 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7774 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7775 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7776 | # The option is referenced via a variable to avoid confusing sed. |
| 7777 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7778 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7779 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7780 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7781 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7782 | (eval "$lt_compile" 2>conftest.err) |
| 7783 | ac_status=$? |
| 7784 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7786 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7787 | # The compiler can only warn and ignore the option if not recognized |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7788 | # So say no if there are warnings other than the usual output. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7789 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7790 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7791 | 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] | 7792 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7793 | fi |
| 7794 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7795 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7796 | |
| 7797 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7798 | { $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] | 7799 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7800 | |
| 7801 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7802 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7803 | else |
| 7804 | : |
| 7805 | fi |
| 7806 | |
| 7807 | fi |
| 7808 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7809 | |
| 7810 | |
| 7811 | |
| 7812 | |
| 7813 | |
| 7814 | lt_prog_compiler_wl= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7815 | lt_prog_compiler_pic= |
| 7816 | lt_prog_compiler_static= |
| 7817 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7818 | |
| 7819 | if test "$GCC" = yes; then |
| 7820 | lt_prog_compiler_wl='-Wl,' |
| 7821 | lt_prog_compiler_static='-static' |
| 7822 | |
| 7823 | case $host_os in |
| 7824 | aix*) |
| 7825 | # All AIX code is PIC. |
| 7826 | if test "$host_cpu" = ia64; then |
| 7827 | # AIX 5 now supports IA64 processor |
| 7828 | lt_prog_compiler_static='-Bstatic' |
| 7829 | fi |
| 7830 | ;; |
| 7831 | |
| 7832 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7833 | case $host_cpu in |
| 7834 | powerpc) |
| 7835 | # see comment about AmigaOS4 .so support |
| 7836 | lt_prog_compiler_pic='-fPIC' |
| 7837 | ;; |
| 7838 | m68k) |
| 7839 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7840 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7841 | # like `-m68040'. |
| 7842 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7843 | ;; |
| 7844 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7845 | ;; |
| 7846 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7847 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7848 | # PIC is the default for these OSes. |
| 7849 | ;; |
| 7850 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7851 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7852 | # This hack is so that the source file can tell whether it is being |
| 7853 | # built for inclusion in a dll (and should export symbols for example). |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7854 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7855 | # (--disable-auto-import) libraries |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7856 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7857 | ;; |
| 7858 | |
| 7859 | darwin* | rhapsody*) |
| 7860 | # PIC is the default on this platform |
| 7861 | # Common symbols not allowed in MH_DYLIB files |
| 7862 | lt_prog_compiler_pic='-fno-common' |
| 7863 | ;; |
| 7864 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7865 | haiku*) |
| 7866 | # PIC is the default for Haiku. |
| 7867 | # The "-static" flag exists, but is broken. |
| 7868 | lt_prog_compiler_static= |
| 7869 | ;; |
| 7870 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7871 | hpux*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7872 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 7873 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 7874 | # sets the default TLS model and affects inlining. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7875 | case $host_cpu in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7876 | hppa*64*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7877 | # +Z the default |
| 7878 | ;; |
| 7879 | *) |
| 7880 | lt_prog_compiler_pic='-fPIC' |
| 7881 | ;; |
| 7882 | esac |
| 7883 | ;; |
| 7884 | |
| 7885 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7886 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7887 | # Instead, we relocate shared libraries at runtime. |
| 7888 | ;; |
| 7889 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7890 | msdosdjgpp*) |
| 7891 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7892 | # on systems that don't support them. |
| 7893 | lt_prog_compiler_can_build_shared=no |
| 7894 | enable_shared=no |
| 7895 | ;; |
| 7896 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7897 | *nto* | *qnx*) |
| 7898 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7899 | # it will coredump. |
| 7900 | lt_prog_compiler_pic='-fPIC -shared' |
| 7901 | ;; |
| 7902 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7903 | sysv4*MP*) |
| 7904 | if test -d /usr/nec; then |
| 7905 | lt_prog_compiler_pic=-Kconform_pic |
| 7906 | fi |
| 7907 | ;; |
| 7908 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7909 | *) |
| 7910 | lt_prog_compiler_pic='-fPIC' |
| 7911 | ;; |
| 7912 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7913 | |
| 7914 | case $cc_basename in |
| 7915 | nvcc*) # Cuda Compiler Driver 2.2 |
| 7916 | lt_prog_compiler_wl='-Xlinker ' |
| 7917 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 7918 | ;; |
| 7919 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7920 | else |
| 7921 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7922 | case $host_os in |
| 7923 | aix*) |
| 7924 | lt_prog_compiler_wl='-Wl,' |
| 7925 | if test "$host_cpu" = ia64; then |
| 7926 | # AIX 5 now supports IA64 processor |
| 7927 | lt_prog_compiler_static='-Bstatic' |
| 7928 | else |
| 7929 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7930 | fi |
| 7931 | ;; |
| 7932 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7933 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7934 | # This hack is so that the source file can tell whether it is being |
| 7935 | # built for inclusion in a dll (and should export symbols for example). |
| 7936 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7937 | ;; |
| 7938 | |
| 7939 | hpux9* | hpux10* | hpux11*) |
| 7940 | lt_prog_compiler_wl='-Wl,' |
| 7941 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7942 | # not for PA HP-UX. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7943 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7944 | hppa*64*|ia64*) |
| 7945 | # +Z the default |
| 7946 | ;; |
| 7947 | *) |
| 7948 | lt_prog_compiler_pic='+Z' |
| 7949 | ;; |
| 7950 | esac |
| 7951 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7952 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7953 | ;; |
| 7954 | |
| 7955 | irix5* | irix6* | nonstopux*) |
| 7956 | lt_prog_compiler_wl='-Wl,' |
| 7957 | # PIC (with -KPIC) is the default. |
| 7958 | lt_prog_compiler_static='-non_shared' |
| 7959 | ;; |
| 7960 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7961 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7962 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7963 | # old Intel for x86_64 which still supported -KPIC. |
| 7964 | ecc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7965 | lt_prog_compiler_wl='-Wl,' |
| 7966 | lt_prog_compiler_pic='-KPIC' |
| 7967 | lt_prog_compiler_static='-static' |
| 7968 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7969 | # icc used to be incompatible with GCC. |
| 7970 | # ICC 10 doesn't accept -KPIC any more. |
| 7971 | icc* | ifort*) |
| 7972 | lt_prog_compiler_wl='-Wl,' |
| 7973 | lt_prog_compiler_pic='-fPIC' |
| 7974 | lt_prog_compiler_static='-static' |
| 7975 | ;; |
| 7976 | # Lahey Fortran 8.1. |
| 7977 | lf95*) |
| 7978 | lt_prog_compiler_wl='-Wl,' |
| 7979 | lt_prog_compiler_pic='--shared' |
| 7980 | lt_prog_compiler_static='--static' |
| 7981 | ;; |
| 7982 | nagfor*) |
| 7983 | # NAG Fortran compiler |
| 7984 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 7985 | lt_prog_compiler_pic='-PIC' |
| 7986 | lt_prog_compiler_static='-Bstatic' |
| 7987 | ;; |
| 7988 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7989 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7990 | # which looks to be a dead project) |
| 7991 | lt_prog_compiler_wl='-Wl,' |
| 7992 | lt_prog_compiler_pic='-fpic' |
| 7993 | lt_prog_compiler_static='-Bstatic' |
| 7994 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7995 | ccc*) |
| 7996 | lt_prog_compiler_wl='-Wl,' |
| 7997 | # All Alpha code is PIC. |
| 7998 | lt_prog_compiler_static='-non_shared' |
| 7999 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8000 | xl* | bgxl* | bgf* | mpixl*) |
| 8001 | # 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] | 8002 | lt_prog_compiler_wl='-Wl,' |
| 8003 | lt_prog_compiler_pic='-qpic' |
| 8004 | lt_prog_compiler_static='-qstaticlink' |
| 8005 | ;; |
| 8006 | *) |
| 8007 | case `$CC -V 2>&1 | sed 5q` in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8008 | *Sun\ F* | *Sun*Fortran*) |
| 8009 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8010 | lt_prog_compiler_pic='-KPIC' |
| 8011 | lt_prog_compiler_static='-Bstatic' |
| 8012 | lt_prog_compiler_wl='' |
| 8013 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8014 | *Sun\ C*) |
| 8015 | # Sun C 5.9 |
| 8016 | lt_prog_compiler_pic='-KPIC' |
| 8017 | lt_prog_compiler_static='-Bstatic' |
| 8018 | lt_prog_compiler_wl='-Wl,' |
| 8019 | ;; |
| 8020 | esac |
| 8021 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8022 | esac |
| 8023 | ;; |
| 8024 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8025 | newsos6) |
| 8026 | lt_prog_compiler_pic='-KPIC' |
| 8027 | lt_prog_compiler_static='-Bstatic' |
| 8028 | ;; |
| 8029 | |
| 8030 | *nto* | *qnx*) |
| 8031 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8032 | # it will coredump. |
| 8033 | lt_prog_compiler_pic='-fPIC -shared' |
| 8034 | ;; |
| 8035 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8036 | osf3* | osf4* | osf5*) |
| 8037 | lt_prog_compiler_wl='-Wl,' |
| 8038 | # All OSF/1 code is PIC. |
| 8039 | lt_prog_compiler_static='-non_shared' |
| 8040 | ;; |
| 8041 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8042 | rdos*) |
| 8043 | lt_prog_compiler_static='-non_shared' |
| 8044 | ;; |
| 8045 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8046 | solaris*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8047 | lt_prog_compiler_pic='-KPIC' |
| 8048 | lt_prog_compiler_static='-Bstatic' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8049 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8050 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8051 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8052 | *) |
| 8053 | lt_prog_compiler_wl='-Wl,';; |
| 8054 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8055 | ;; |
| 8056 | |
| 8057 | sunos4*) |
| 8058 | lt_prog_compiler_wl='-Qoption ld ' |
| 8059 | lt_prog_compiler_pic='-PIC' |
| 8060 | lt_prog_compiler_static='-Bstatic' |
| 8061 | ;; |
| 8062 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8063 | sysv4 | sysv4.2uw2* | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8064 | lt_prog_compiler_wl='-Wl,' |
| 8065 | lt_prog_compiler_pic='-KPIC' |
| 8066 | lt_prog_compiler_static='-Bstatic' |
| 8067 | ;; |
| 8068 | |
| 8069 | sysv4*MP*) |
| 8070 | if test -d /usr/nec ;then |
| 8071 | lt_prog_compiler_pic='-Kconform_pic' |
| 8072 | lt_prog_compiler_static='-Bstatic' |
| 8073 | fi |
| 8074 | ;; |
| 8075 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8076 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8077 | lt_prog_compiler_wl='-Wl,' |
| 8078 | lt_prog_compiler_pic='-KPIC' |
| 8079 | lt_prog_compiler_static='-Bstatic' |
| 8080 | ;; |
| 8081 | |
| 8082 | unicos*) |
| 8083 | lt_prog_compiler_wl='-Wl,' |
| 8084 | lt_prog_compiler_can_build_shared=no |
| 8085 | ;; |
| 8086 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8087 | uts4*) |
| 8088 | lt_prog_compiler_pic='-pic' |
| 8089 | lt_prog_compiler_static='-Bstatic' |
| 8090 | ;; |
| 8091 | |
| 8092 | *) |
| 8093 | lt_prog_compiler_can_build_shared=no |
| 8094 | ;; |
| 8095 | esac |
| 8096 | fi |
| 8097 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8098 | case $host_os in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8099 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8100 | *djgpp*) |
| 8101 | lt_prog_compiler_pic= |
| 8102 | ;; |
| 8103 | *) |
| 8104 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8105 | ;; |
| 8106 | esac |
| 8107 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8109 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8110 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8111 | $as_echo_n "(cached) " >&6 |
| 8112 | else |
| 8113 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8114 | fi |
| 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8116 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8117 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8118 | |
| 8119 | # |
| 8120 | # Check to make sure the PIC flag actually works. |
| 8121 | # |
| 8122 | if test -n "$lt_prog_compiler_pic"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8123 | { $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] | 8124 | $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] | 8125 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8126 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8127 | else |
| 8128 | lt_cv_prog_compiler_pic_works=no |
| 8129 | ac_outfile=conftest.$ac_objext |
| 8130 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8131 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8132 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8133 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8134 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8135 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8136 | # The option is referenced via a variable to avoid confusing sed. |
| 8137 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8138 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8139 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8140 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8141 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8142 | (eval "$lt_compile" 2>conftest.err) |
| 8143 | ac_status=$? |
| 8144 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8146 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8147 | # The compiler can only warn and ignore the option if not recognized |
| 8148 | # So say no if there are warnings other than the usual output. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8149 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8150 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8151 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8152 | lt_cv_prog_compiler_pic_works=yes |
| 8153 | fi |
| 8154 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8155 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8156 | |
| 8157 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8158 | { $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] | 8159 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8160 | |
| 8161 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8162 | case $lt_prog_compiler_pic in |
| 8163 | "" | " "*) ;; |
| 8164 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8165 | esac |
| 8166 | else |
| 8167 | lt_prog_compiler_pic= |
| 8168 | lt_prog_compiler_can_build_shared=no |
| 8169 | fi |
| 8170 | |
| 8171 | fi |
| 8172 | |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 | |
| 8177 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8178 | |
| 8179 | |
| 8180 | |
| 8181 | |
| 8182 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8183 | # |
| 8184 | # Check to make sure the static flag actually works. |
| 8185 | # |
| 8186 | 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] | 8187 | { $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] | 8188 | $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] | 8189 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8190 | $as_echo_n "(cached) " >&6 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8191 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8192 | lt_cv_prog_compiler_static_works=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8193 | save_LDFLAGS="$LDFLAGS" |
| 8194 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8195 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8196 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8197 | # The linker can only warn and ignore the option if not recognized |
| 8198 | # So say no if there are warnings |
| 8199 | if test -s conftest.err; then |
| 8200 | # Append any errors to the config.log. |
| 8201 | cat conftest.err 1>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8202 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8203 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8204 | if diff conftest.exp conftest.er2 >/dev/null; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8205 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8206 | fi |
| 8207 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8208 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8209 | fi |
| 8210 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8211 | $RM -r conftest* |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8212 | LDFLAGS="$save_LDFLAGS" |
| 8213 | |
| 8214 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8215 | { $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] | 8216 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8217 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8218 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8219 | : |
| 8220 | else |
| 8221 | lt_prog_compiler_static= |
| 8222 | fi |
| 8223 | |
| 8224 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8230 | { $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] | 8231 | $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] | 8232 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8233 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8234 | else |
| 8235 | lt_cv_prog_compiler_c_o=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8236 | $RM -r conftest 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8237 | mkdir conftest |
| 8238 | cd conftest |
| 8239 | mkdir out |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8240 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8241 | |
| 8242 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8243 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8244 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8245 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8246 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8247 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8248 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8249 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8250 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8251 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8252 | (eval "$lt_compile" 2>out/conftest.err) |
| 8253 | ac_status=$? |
| 8254 | cat out/conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8256 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8257 | then |
| 8258 | # The compiler can only warn and ignore the option if not recognized |
| 8259 | # So say no if there are warnings |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8260 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8261 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8262 | 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] | 8263 | lt_cv_prog_compiler_c_o=yes |
| 8264 | fi |
| 8265 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8266 | chmod u+w . 2>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8267 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8268 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8269 | # template instantiation |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8270 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8271 | $RM out/* && rmdir out |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8272 | cd .. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8273 | $RM -r conftest |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8274 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8275 | |
| 8276 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8277 | { $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] | 8278 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8279 | |
| 8280 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8281 | |
| 8282 | |
| 8283 | |
| 8284 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8285 | { $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] | 8286 | $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] | 8287 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8288 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8289 | else |
| 8290 | lt_cv_prog_compiler_c_o=no |
| 8291 | $RM -r conftest 2>/dev/null |
| 8292 | mkdir conftest |
| 8293 | cd conftest |
| 8294 | mkdir out |
| 8295 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8296 | |
| 8297 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8298 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8299 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8300 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8301 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8302 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8303 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8304 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8305 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8306 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8307 | (eval "$lt_compile" 2>out/conftest.err) |
| 8308 | ac_status=$? |
| 8309 | cat out/conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8311 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8312 | then |
| 8313 | # The compiler can only warn and ignore the option if not recognized |
| 8314 | # So say no if there are warnings |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8315 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8316 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8317 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8318 | lt_cv_prog_compiler_c_o=yes |
| 8319 | fi |
| 8320 | fi |
| 8321 | chmod u+w . 2>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8322 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8323 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8324 | # template instantiation |
| 8325 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8326 | $RM out/* && rmdir out |
| 8327 | cd .. |
| 8328 | $RM -r conftest |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8329 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8330 | |
| 8331 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8332 | { $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] | 8333 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8338 | hard_links="nottested" |
| 8339 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8340 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8341 | { $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] | 8342 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8343 | hard_links=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8344 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8345 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8346 | touch conftest.a |
| 8347 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8348 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8350 | $as_echo "$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8351 | if test "$hard_links" = no; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8352 | { $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] | 8353 | $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] | 8354 | need_locks=warn |
| 8355 | fi |
| 8356 | else |
| 8357 | need_locks=no |
| 8358 | fi |
| 8359 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8365 | { $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] | 8366 | $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] | 8367 | |
| 8368 | runpath_var= |
| 8369 | allow_undefined_flag= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8370 | always_export_symbols=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8371 | archive_cmds= |
| 8372 | archive_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8373 | compiler_needs_object=no |
| 8374 | enable_shared_with_static_runtimes=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8375 | export_dynamic_flag_spec= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8376 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8377 | hardcode_automatic=no |
| 8378 | hardcode_direct=no |
| 8379 | hardcode_direct_absolute=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8380 | hardcode_libdir_flag_spec= |
| 8381 | hardcode_libdir_flag_spec_ld= |
| 8382 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8383 | hardcode_minus_L=no |
| 8384 | hardcode_shlibpath_var=unsupported |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8385 | inherit_rpath=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8386 | link_all_deplibs=unknown |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8387 | module_cmds= |
| 8388 | module_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8389 | old_archive_from_new_cmds= |
| 8390 | old_archive_from_expsyms_cmds= |
| 8391 | thread_safe_flag_spec= |
| 8392 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8393 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8394 | # included in the symbol list |
| 8395 | include_expsyms= |
| 8396 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8397 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8398 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8399 | # as well as any symbol that contains `d'. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8400 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8401 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8402 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8403 | # the symbol is explicitly referenced. Since portable code cannot |
| 8404 | # rely on this symbol name, it's probably fine to never include it in |
| 8405 | # preloaded symbol tables. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8406 | # Exclude shared library initialization/finalization symbols. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8407 | extract_expsyms_cmds= |
| 8408 | |
| 8409 | case $host_os in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8410 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8411 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8412 | # When not using gcc, we currently assume that we are using |
| 8413 | # Microsoft Visual C++. |
| 8414 | if test "$GCC" != yes; then |
| 8415 | with_gnu_ld=no |
| 8416 | fi |
| 8417 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8418 | interix*) |
| 8419 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8420 | with_gnu_ld=yes |
| 8421 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8422 | openbsd*) |
| 8423 | with_gnu_ld=no |
| 8424 | ;; |
| 8425 | esac |
| 8426 | |
| 8427 | ld_shlibs=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8428 | |
| 8429 | # On some targets, GNU ld is compatible enough with the native linker |
| 8430 | # that we're better off using the native interface for both. |
| 8431 | lt_use_gnu_ld_interface=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8432 | if test "$with_gnu_ld" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8433 | case $host_os in |
| 8434 | aix*) |
| 8435 | # The AIX port of GNU ld has always aspired to compatibility |
| 8436 | # with the native linker. However, as the warning in the GNU ld |
| 8437 | # block says, versions before 2.19.5* couldn't really create working |
| 8438 | # shared libraries, regardless of the interface used. |
| 8439 | case `$LD -v 2>&1` in |
| 8440 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 8441 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 8442 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 8443 | *) |
| 8444 | lt_use_gnu_ld_interface=yes |
| 8445 | ;; |
| 8446 | esac |
| 8447 | ;; |
| 8448 | *) |
| 8449 | lt_use_gnu_ld_interface=yes |
| 8450 | ;; |
| 8451 | esac |
| 8452 | fi |
| 8453 | |
| 8454 | if test "$lt_use_gnu_ld_interface" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8455 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8456 | wlarc='${wl}' |
| 8457 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8458 | # Set some defaults for GNU ld with shared library support. These |
| 8459 | # are reset later if shared libraries are not supported. Putting them |
| 8460 | # here allows them to be overridden if necessary. |
| 8461 | runpath_var=LD_RUN_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8462 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8463 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8464 | # ancient GNU ld didn't support --whole-archive et. al. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8465 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8466 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8467 | else |
| 8468 | whole_archive_flag_spec= |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8469 | fi |
| 8470 | supports_anon_versioning=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8471 | case `$LD -v 2>&1` in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8472 | *GNU\ gold*) supports_anon_versioning=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8473 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8474 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8475 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8476 | *\ 2.11.*) ;; # other 2.11 versions |
| 8477 | *) supports_anon_versioning=yes ;; |
| 8478 | esac |
| 8479 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8480 | # See if GNU ld supports shared libraries. |
| 8481 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8482 | aix[3-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8483 | # On AIX/PPC, the GNU linker is very broken |
| 8484 | if test "$host_cpu" != ia64; then |
| 8485 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8486 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8487 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8488 | *** 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] | 8489 | *** to be unable to reliably create shared libraries on AIX. |
| 8490 | *** Therefore, libtool is disabling shared libraries support. If you |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8491 | *** really care for shared libraries, you may want to install binutils |
| 8492 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8493 | *** You will then need to restart the configuration process. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8494 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8495 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8496 | fi |
| 8497 | ;; |
| 8498 | |
| 8499 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8500 | case $host_cpu in |
| 8501 | powerpc) |
| 8502 | # see comment about AmigaOS4 .so support |
| 8503 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8504 | archive_expsym_cmds='' |
| 8505 | ;; |
| 8506 | m68k) |
| 8507 | 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)' |
| 8508 | hardcode_libdir_flag_spec='-L$libdir' |
| 8509 | hardcode_minus_L=yes |
| 8510 | ;; |
| 8511 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8512 | ;; |
| 8513 | |
| 8514 | beos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8515 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8516 | allow_undefined_flag=unsupported |
| 8517 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8518 | # support --undefined. This deserves some investigation. FIXME |
| 8519 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8520 | else |
| 8521 | ld_shlibs=no |
| 8522 | fi |
| 8523 | ;; |
| 8524 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8525 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8526 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8527 | # as there is no search path for DLLs. |
| 8528 | hardcode_libdir_flag_spec='-L$libdir' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8529 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8530 | allow_undefined_flag=unsupported |
| 8531 | always_export_symbols=no |
| 8532 | enable_shared_with_static_runtimes=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8533 | 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' |
| 8534 | 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] | 8535 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8536 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8537 | 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] | 8538 | # If the export-symbols file already is a .def file (1st line |
| 8539 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8540 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8541 | cp $export_symbols $output_objdir/$soname.def; |
| 8542 | else |
| 8543 | echo EXPORTS > $output_objdir/$soname.def; |
| 8544 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8545 | fi~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8546 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8547 | else |
| 8548 | ld_shlibs=no |
| 8549 | fi |
| 8550 | ;; |
| 8551 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8552 | haiku*) |
| 8553 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8554 | link_all_deplibs=yes |
| 8555 | ;; |
| 8556 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8557 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8558 | hardcode_direct=no |
| 8559 | hardcode_shlibpath_var=no |
| 8560 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8561 | export_dynamic_flag_spec='${wl}-E' |
| 8562 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8563 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8564 | # default) and relocated if they conflict, which is a slow very memory |
| 8565 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8566 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8567 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8568 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8569 | 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' |
| 8570 | ;; |
| 8571 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8572 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8573 | tmp_diet=no |
| 8574 | if test "$host_os" = linux-dietlibc; then |
| 8575 | case $cc_basename in |
| 8576 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8577 | esac |
| 8578 | fi |
| 8579 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8580 | && test "$tmp_diet" = no |
| 8581 | then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8582 | tmp_addflag=' $pic_flag' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8583 | tmp_sharedflag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8584 | case $cc_basename,$host_cpu in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8585 | pgcc*) # Portland Group C compiler |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8586 | 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] | 8587 | tmp_addflag=' $pic_flag' |
| 8588 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8589 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8590 | # Portland Group f77 and f90 compilers |
| 8591 | 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] | 8592 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8593 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8594 | tmp_addflag=' -i_dynamic' ;; |
| 8595 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8596 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8597 | ifc* | ifort*) # Intel Fortran compiler |
| 8598 | tmp_addflag=' -nofor_main' ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8599 | lf95*) # Lahey Fortran 8.1 |
| 8600 | whole_archive_flag_spec= |
| 8601 | tmp_sharedflag='--shared' ;; |
| 8602 | 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] | 8603 | tmp_sharedflag='-qmkshrobj' |
| 8604 | tmp_addflag= ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8605 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8606 | 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' |
| 8607 | compiler_needs_object=yes |
| 8608 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8609 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8610 | case `$CC -V 2>&1 | sed 5q` in |
| 8611 | *Sun\ C*) # Sun C 5.9 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8612 | 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] | 8613 | compiler_needs_object=yes |
| 8614 | tmp_sharedflag='-G' ;; |
| 8615 | *Sun\ F*) # Sun Fortran 8.3 |
| 8616 | tmp_sharedflag='-G' ;; |
| 8617 | esac |
| 8618 | 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] | 8619 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8620 | if test "x$supports_anon_versioning" = xyes; then |
| 8621 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8622 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8623 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8624 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8625 | fi |
| 8626 | |
| 8627 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8628 | xlf* | bgf* | bgxlf* | mpixlf*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8629 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8630 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 8631 | hardcode_libdir_flag_spec= |
| 8632 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8633 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8634 | if test "x$supports_anon_versioning" = xyes; then |
| 8635 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8636 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8637 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8638 | $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] | 8639 | fi |
| 8640 | ;; |
| 8641 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8642 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8643 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8644 | fi |
| 8645 | ;; |
| 8646 | |
| 8647 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8648 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8649 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8650 | wlarc= |
| 8651 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8652 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8653 | 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] | 8654 | fi |
| 8655 | ;; |
| 8656 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8657 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8658 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8659 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8660 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8661 | |
| 8662 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8663 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8664 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8665 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8666 | *** your PATH or compiler configuration so that the native linker is |
| 8667 | *** used, and then restart. |
| 8668 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8669 | _LT_EOF |
| 8670 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8671 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8672 | 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] | 8673 | else |
| 8674 | ld_shlibs=no |
| 8675 | fi |
| 8676 | ;; |
| 8677 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8678 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8679 | case `$LD -v 2>&1` in |
| 8680 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8681 | ld_shlibs=no |
| 8682 | cat <<_LT_EOF 1>&2 |
| 8683 | |
| 8684 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8685 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8686 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8687 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8688 | *** your PATH or compiler configuration so that the native linker is |
| 8689 | *** used, and then restart. |
| 8690 | |
| 8691 | _LT_EOF |
| 8692 | ;; |
| 8693 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8694 | # For security reasons, it is highly recommended that you always |
| 8695 | # use absolute paths for naming shared libraries, and exclude the |
| 8696 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 8697 | # requires that you compile everything twice, which is a pain. |
| 8698 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8699 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8700 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8701 | 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] | 8702 | else |
| 8703 | ld_shlibs=no |
| 8704 | fi |
| 8705 | ;; |
| 8706 | esac |
| 8707 | ;; |
| 8708 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8709 | sunos4*) |
| 8710 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8711 | wlarc= |
| 8712 | hardcode_direct=yes |
| 8713 | hardcode_shlibpath_var=no |
| 8714 | ;; |
| 8715 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8716 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8717 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8718 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8719 | 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] | 8720 | else |
| 8721 | ld_shlibs=no |
| 8722 | fi |
| 8723 | ;; |
| 8724 | esac |
| 8725 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8726 | if test "$ld_shlibs" = no; then |
| 8727 | runpath_var= |
| 8728 | hardcode_libdir_flag_spec= |
| 8729 | export_dynamic_flag_spec= |
| 8730 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8731 | fi |
| 8732 | else |
| 8733 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8734 | case $host_os in |
| 8735 | aix3*) |
| 8736 | allow_undefined_flag=unsupported |
| 8737 | always_export_symbols=yes |
| 8738 | 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' |
| 8739 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8740 | # are no directories specified by -L. |
| 8741 | hardcode_minus_L=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8742 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8743 | # Neither direct hardcoding nor static linking is supported with a |
| 8744 | # broken collect2. |
| 8745 | hardcode_direct=unsupported |
| 8746 | fi |
| 8747 | ;; |
| 8748 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8749 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8750 | if test "$host_cpu" = ia64; then |
| 8751 | # On IA64, the linker does run time linking by default, so we don't |
| 8752 | # have to do anything special. |
| 8753 | aix_use_runtimelinking=no |
| 8754 | exp_sym_flag='-Bexport' |
| 8755 | no_entry_flag="" |
| 8756 | else |
| 8757 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8758 | # -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] | 8759 | # Also, AIX nm treats weak defined symbols like other global |
| 8760 | # defined symbols, whereas GNU nm marks them as "W". |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8761 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8762 | 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] | 8763 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8764 | 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] | 8765 | fi |
| 8766 | aix_use_runtimelinking=no |
| 8767 | |
| 8768 | # Test if we are trying to use run time linking or normal |
| 8769 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8770 | # need to do runtime linking. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8771 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8772 | for ld_flag in $LDFLAGS; do |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8773 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8774 | aix_use_runtimelinking=yes |
| 8775 | break |
| 8776 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8777 | done |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8778 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8779 | esac |
| 8780 | |
| 8781 | exp_sym_flag='-bexport' |
| 8782 | no_entry_flag='-bnoentry' |
| 8783 | fi |
| 8784 | |
| 8785 | # When large executables or shared objects are built, AIX ld can |
| 8786 | # have problems creating the table of contents. If linking a library |
| 8787 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8788 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8789 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8790 | |
| 8791 | archive_cmds='' |
| 8792 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8793 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8794 | hardcode_libdir_separator=':' |
| 8795 | link_all_deplibs=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8796 | file_list_spec='${wl}-f,' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8797 | |
| 8798 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8799 | case $host_os in aix4.[012]|aix4.[012].*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8800 | # We only want to do this on AIX 4.2 and lower, the check |
| 8801 | # below for broken collect2 doesn't work under 4.3+ |
| 8802 | collect2name=`${CC} -print-prog-name=collect2` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8803 | if test -f "$collect2name" && |
| 8804 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8805 | then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8806 | # We have reworked collect2 |
| 8807 | : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8808 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8809 | # We have old collect2 |
| 8810 | hardcode_direct=unsupported |
| 8811 | # It fails to find uninstalled libraries when the uninstalled |
| 8812 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8813 | # to unsupported forces relinking |
| 8814 | hardcode_minus_L=yes |
| 8815 | hardcode_libdir_flag_spec='-L$libdir' |
| 8816 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8817 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8818 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8819 | esac |
| 8820 | shared_flag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8821 | if test "$aix_use_runtimelinking" = yes; then |
| 8822 | shared_flag="$shared_flag "'${wl}-G' |
| 8823 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8824 | else |
| 8825 | # not using gcc |
| 8826 | if test "$host_cpu" = ia64; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8827 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8828 | # chokes on -Wl,-G. The following line is correct: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8829 | shared_flag='-G' |
| 8830 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8831 | if test "$aix_use_runtimelinking" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8832 | shared_flag='${wl}-G' |
| 8833 | else |
| 8834 | shared_flag='${wl}-bM:SRE' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8835 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8836 | fi |
| 8837 | fi |
| 8838 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8839 | export_dynamic_flag_spec='${wl}-bexpall' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8840 | # It seems that -bexpall does not export symbols beginning with |
| 8841 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8842 | always_export_symbols=yes |
| 8843 | if test "$aix_use_runtimelinking" = yes; then |
| 8844 | # Warning - without using the other runtime loading flags (-brtl), |
| 8845 | # -berok will link without error, but may produce a broken library. |
| 8846 | allow_undefined_flag='-berok' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8847 | # Determine the default libpath from the value encoded in an |
| 8848 | # empty executable. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8849 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8850 | aix_libpath=$lt_cv_aix_libpath |
| 8851 | else |
| 8852 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8853 | $as_echo_n "(cached) " >&6 |
| 8854 | else |
| 8855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8856 | /* end confdefs.h. */ |
| 8857 | |
| 8858 | int |
| 8859 | main () |
| 8860 | { |
| 8861 | |
| 8862 | ; |
| 8863 | return 0; |
| 8864 | } |
| 8865 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8866 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8867 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8868 | lt_aix_libpath_sed=' |
| 8869 | /Import File Strings/,/^$/ { |
| 8870 | /^0/ { |
| 8871 | s/^0 *\([^ ]*\) *$/\1/ |
| 8872 | p |
| 8873 | } |
| 8874 | }' |
| 8875 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8876 | # Check for a 64-bit object if we didn't find anything. |
| 8877 | if test -z "$lt_cv_aix_libpath_"; then |
| 8878 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8879 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 8880 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8881 | rm -f core conftest.err conftest.$ac_objext \ |
| 8882 | conftest$ac_exeext conftest.$ac_ext |
| 8883 | if test -z "$lt_cv_aix_libpath_"; then |
| 8884 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8885 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8886 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8887 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8888 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8889 | aix_libpath=$lt_cv_aix_libpath_ |
| 8890 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8891 | |
| 8892 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8893 | 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] | 8894 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8895 | if test "$host_cpu" = ia64; then |
| 8896 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8897 | allow_undefined_flag="-z nodefs" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8898 | 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] | 8899 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8900 | # Determine the default libpath from the value encoded in an |
| 8901 | # empty executable. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8902 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8903 | aix_libpath=$lt_cv_aix_libpath |
| 8904 | else |
| 8905 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8906 | $as_echo_n "(cached) " >&6 |
| 8907 | else |
| 8908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8909 | /* end confdefs.h. */ |
| 8910 | |
| 8911 | int |
| 8912 | main () |
| 8913 | { |
| 8914 | |
| 8915 | ; |
| 8916 | return 0; |
| 8917 | } |
| 8918 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8919 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8920 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8921 | lt_aix_libpath_sed=' |
| 8922 | /Import File Strings/,/^$/ { |
| 8923 | /^0/ { |
| 8924 | s/^0 *\([^ ]*\) *$/\1/ |
| 8925 | p |
| 8926 | } |
| 8927 | }' |
| 8928 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8929 | # Check for a 64-bit object if we didn't find anything. |
| 8930 | if test -z "$lt_cv_aix_libpath_"; then |
| 8931 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8932 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 8933 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8934 | rm -f core conftest.err conftest.$ac_objext \ |
| 8935 | conftest$ac_exeext conftest.$ac_ext |
| 8936 | if test -z "$lt_cv_aix_libpath_"; then |
| 8937 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8938 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8939 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8940 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8941 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8942 | aix_libpath=$lt_cv_aix_libpath_ |
| 8943 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8944 | |
| 8945 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8946 | # Warning - without using the other run time loading flags, |
| 8947 | # -berok will link without error, but may produce a broken library. |
| 8948 | no_undefined_flag=' ${wl}-bernotok' |
| 8949 | allow_undefined_flag=' ${wl}-berok' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8950 | if test "$with_gnu_ld" = yes; then |
| 8951 | # We only use this code for GNU lds that support --whole-archive. |
| 8952 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 8953 | else |
| 8954 | # Exported symbols can be pulled into shared objects from archives |
| 8955 | whole_archive_flag_spec='$convenience' |
| 8956 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8957 | archive_cmds_need_lc=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8958 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8959 | 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] | 8960 | fi |
| 8961 | fi |
| 8962 | ;; |
| 8963 | |
| 8964 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8965 | case $host_cpu in |
| 8966 | powerpc) |
| 8967 | # see comment about AmigaOS4 .so support |
| 8968 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8969 | archive_expsym_cmds='' |
| 8970 | ;; |
| 8971 | m68k) |
| 8972 | 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)' |
| 8973 | hardcode_libdir_flag_spec='-L$libdir' |
| 8974 | hardcode_minus_L=yes |
| 8975 | ;; |
| 8976 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8977 | ;; |
| 8978 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8979 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8980 | export_dynamic_flag_spec=-rdynamic |
| 8981 | ;; |
| 8982 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8983 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8984 | # When not using gcc, we currently assume that we are using |
| 8985 | # Microsoft Visual C++. |
| 8986 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8987 | # no search path for DLLs. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8988 | case $cc_basename in |
| 8989 | cl*) |
| 8990 | # Native MSVC |
| 8991 | hardcode_libdir_flag_spec=' ' |
| 8992 | allow_undefined_flag=unsupported |
| 8993 | always_export_symbols=yes |
| 8994 | file_list_spec='@' |
| 8995 | # Tell ltmain to make .lib files, not .a files. |
| 8996 | libext=lib |
| 8997 | # Tell ltmain to make .dll files, not .so files. |
| 8998 | shrext_cmds=".dll" |
| 8999 | # FIXME: Setting linknames here is a bad hack. |
| 9000 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9001 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9002 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9003 | else |
| 9004 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9005 | fi~ |
| 9006 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9007 | linknames=' |
| 9008 | # The linker will not automatically build a static lib if we build a DLL. |
| 9009 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9010 | enable_shared_with_static_runtimes=yes |
| 9011 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9012 | # Don't use ranlib |
| 9013 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9014 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9015 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9016 | case $lt_outputfile in |
| 9017 | *.exe|*.EXE) ;; |
| 9018 | *) |
| 9019 | lt_outputfile="$lt_outputfile.exe" |
| 9020 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9021 | ;; |
| 9022 | esac~ |
| 9023 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9024 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9025 | $RM "$lt_outputfile.manifest"; |
| 9026 | fi' |
| 9027 | ;; |
| 9028 | *) |
| 9029 | # Assume MSVC wrapper |
| 9030 | hardcode_libdir_flag_spec=' ' |
| 9031 | allow_undefined_flag=unsupported |
| 9032 | # Tell ltmain to make .lib files, not .a files. |
| 9033 | libext=lib |
| 9034 | # Tell ltmain to make .dll files, not .so files. |
| 9035 | shrext_cmds=".dll" |
| 9036 | # FIXME: Setting linknames here is a bad hack. |
| 9037 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9038 | # The linker will automatically build a .lib file if we build a DLL. |
| 9039 | old_archive_from_new_cmds='true' |
| 9040 | # FIXME: Should let the user specify the lib program. |
| 9041 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9042 | enable_shared_with_static_runtimes=yes |
| 9043 | ;; |
| 9044 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9045 | ;; |
| 9046 | |
| 9047 | darwin* | rhapsody*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9048 | |
| 9049 | |
| 9050 | archive_cmds_need_lc=no |
| 9051 | hardcode_direct=no |
| 9052 | hardcode_automatic=yes |
| 9053 | hardcode_shlibpath_var=unsupported |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9054 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9055 | 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\"`' |
| 9056 | else |
| 9057 | whole_archive_flag_spec='' |
| 9058 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9059 | link_all_deplibs=yes |
| 9060 | allow_undefined_flag="$_lt_dar_allow_undefined" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9061 | case $cc_basename in |
| 9062 | ifort*) _lt_dar_can_shared=yes ;; |
| 9063 | *) _lt_dar_can_shared=$GCC ;; |
| 9064 | esac |
| 9065 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9066 | output_verbose_link_cmd=func_echo_all |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9067 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9068 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9069 | 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}" |
| 9070 | 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}" |
| 9071 | |
| 9072 | else |
| 9073 | ld_shlibs=no |
| 9074 | fi |
| 9075 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9076 | ;; |
| 9077 | |
| 9078 | dgux*) |
| 9079 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9080 | hardcode_libdir_flag_spec='-L$libdir' |
| 9081 | hardcode_shlibpath_var=no |
| 9082 | ;; |
| 9083 | |
| 9084 | freebsd1*) |
| 9085 | ld_shlibs=no |
| 9086 | ;; |
| 9087 | |
| 9088 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9089 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9090 | # does not break anything, and helps significantly (at the cost of a little |
| 9091 | # extra space). |
| 9092 | freebsd2.2*) |
| 9093 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9094 | hardcode_libdir_flag_spec='-R$libdir' |
| 9095 | hardcode_direct=yes |
| 9096 | hardcode_shlibpath_var=no |
| 9097 | ;; |
| 9098 | |
| 9099 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9100 | freebsd2*) |
| 9101 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9102 | hardcode_direct=yes |
| 9103 | hardcode_minus_L=yes |
| 9104 | hardcode_shlibpath_var=no |
| 9105 | ;; |
| 9106 | |
| 9107 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9108 | freebsd* | dragonfly*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9109 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9110 | hardcode_libdir_flag_spec='-R$libdir' |
| 9111 | hardcode_direct=yes |
| 9112 | hardcode_shlibpath_var=no |
| 9113 | ;; |
| 9114 | |
| 9115 | hpux9*) |
| 9116 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9117 | 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] | 9118 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9119 | 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] | 9120 | fi |
| 9121 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9122 | hardcode_libdir_separator=: |
| 9123 | hardcode_direct=yes |
| 9124 | |
| 9125 | # hardcode_minus_L: Not really in the search PATH, |
| 9126 | # but as the default location of the library. |
| 9127 | hardcode_minus_L=yes |
| 9128 | export_dynamic_flag_spec='${wl}-E' |
| 9129 | ;; |
| 9130 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9131 | hpux10*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9132 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9133 | 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] | 9134 | else |
| 9135 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9136 | fi |
| 9137 | if test "$with_gnu_ld" = no; then |
| 9138 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9139 | hardcode_libdir_flag_spec_ld='+b $libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9140 | hardcode_libdir_separator=: |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9141 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9142 | hardcode_direct_absolute=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9143 | export_dynamic_flag_spec='${wl}-E' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9144 | # hardcode_minus_L: Not really in the search PATH, |
| 9145 | # but as the default location of the library. |
| 9146 | hardcode_minus_L=yes |
| 9147 | fi |
| 9148 | ;; |
| 9149 | |
| 9150 | hpux11*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9151 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9152 | case $host_cpu in |
| 9153 | hppa*64*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9154 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9155 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9156 | ia64*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9157 | 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] | 9158 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9159 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9160 | 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] | 9161 | ;; |
| 9162 | esac |
| 9163 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9164 | case $host_cpu in |
| 9165 | hppa*64*) |
| 9166 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9167 | ;; |
| 9168 | ia64*) |
| 9169 | 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] | 9170 | ;; |
| 9171 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9172 | |
| 9173 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9174 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9176 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9177 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9178 | $as_echo_n "(cached) " >&6 |
| 9179 | else |
| 9180 | lt_cv_prog_compiler__b=no |
| 9181 | save_LDFLAGS="$LDFLAGS" |
| 9182 | LDFLAGS="$LDFLAGS -b" |
| 9183 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9184 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9185 | # The linker can only warn and ignore the option if not recognized |
| 9186 | # So say no if there are warnings |
| 9187 | if test -s conftest.err; then |
| 9188 | # Append any errors to the config.log. |
| 9189 | cat conftest.err 1>&5 |
| 9190 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9191 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9192 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9193 | lt_cv_prog_compiler__b=yes |
| 9194 | fi |
| 9195 | else |
| 9196 | lt_cv_prog_compiler__b=yes |
| 9197 | fi |
| 9198 | fi |
| 9199 | $RM -r conftest* |
| 9200 | LDFLAGS="$save_LDFLAGS" |
| 9201 | |
| 9202 | fi |
| 9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9204 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9205 | |
| 9206 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9207 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9208 | else |
| 9209 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9210 | fi |
| 9211 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9212 | ;; |
| 9213 | esac |
| 9214 | fi |
| 9215 | if test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9216 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9217 | hardcode_libdir_separator=: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9218 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9219 | case $host_cpu in |
| 9220 | hppa*64*|ia64*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9221 | hardcode_direct=no |
| 9222 | hardcode_shlibpath_var=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9223 | ;; |
| 9224 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9225 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9226 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9227 | export_dynamic_flag_spec='${wl}-E' |
| 9228 | |
| 9229 | # hardcode_minus_L: Not really in the search PATH, |
| 9230 | # but as the default location of the library. |
| 9231 | hardcode_minus_L=yes |
| 9232 | ;; |
| 9233 | esac |
| 9234 | fi |
| 9235 | ;; |
| 9236 | |
| 9237 | irix5* | irix6* | nonstopux*) |
| 9238 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9239 | 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] | 9240 | # Try to use the -exported_symbol ld option, if it does not |
| 9241 | # work, assume that -exports_file does not work either and |
| 9242 | # implicitly export all symbols. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9243 | # This should be the same for all languages, so no per-tag cache variable. |
| 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9245 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 9246 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 9247 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9248 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9249 | save_LDFLAGS="$LDFLAGS" |
| 9250 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9252 | /* end confdefs.h. */ |
| 9253 | int foo (void) { return 0; } |
| 9254 | _ACEOF |
| 9255 | if ac_fn_c_try_link "$LINENO"; then : |
| 9256 | lt_cv_irix_exported_symbol=yes |
| 9257 | else |
| 9258 | lt_cv_irix_exported_symbol=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9259 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9260 | rm -f core conftest.err conftest.$ac_objext \ |
| 9261 | conftest$ac_exeext conftest.$ac_ext |
| 9262 | LDFLAGS="$save_LDFLAGS" |
| 9263 | fi |
| 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 9265 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 9266 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 9267 | 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' |
| 9268 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9269 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9270 | 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' |
| 9271 | 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] | 9272 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9273 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9274 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9275 | hardcode_libdir_separator=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9276 | inherit_rpath=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9277 | link_all_deplibs=yes |
| 9278 | ;; |
| 9279 | |
| 9280 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9281 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9282 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9283 | else |
| 9284 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9285 | fi |
| 9286 | hardcode_libdir_flag_spec='-R$libdir' |
| 9287 | hardcode_direct=yes |
| 9288 | hardcode_shlibpath_var=no |
| 9289 | ;; |
| 9290 | |
| 9291 | newsos6) |
| 9292 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9293 | hardcode_direct=yes |
| 9294 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9295 | hardcode_libdir_separator=: |
| 9296 | hardcode_shlibpath_var=no |
| 9297 | ;; |
| 9298 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9299 | *nto* | *qnx*) |
| 9300 | ;; |
| 9301 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9302 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9303 | if test -f /usr/libexec/ld.so; then |
| 9304 | hardcode_direct=yes |
| 9305 | hardcode_shlibpath_var=no |
| 9306 | hardcode_direct_absolute=yes |
| 9307 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9308 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9309 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9310 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9311 | export_dynamic_flag_spec='${wl}-E' |
| 9312 | else |
| 9313 | case $host_os in |
| 9314 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9315 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9316 | hardcode_libdir_flag_spec='-R$libdir' |
| 9317 | ;; |
| 9318 | *) |
| 9319 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9320 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9321 | ;; |
| 9322 | esac |
| 9323 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9324 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9325 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9326 | fi |
| 9327 | ;; |
| 9328 | |
| 9329 | os2*) |
| 9330 | hardcode_libdir_flag_spec='-L$libdir' |
| 9331 | hardcode_minus_L=yes |
| 9332 | allow_undefined_flag=unsupported |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9333 | 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] | 9334 | 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] | 9335 | ;; |
| 9336 | |
| 9337 | osf3*) |
| 9338 | if test "$GCC" = yes; then |
| 9339 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9340 | 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] | 9341 | else |
| 9342 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9343 | 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] | 9344 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9345 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9346 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9347 | hardcode_libdir_separator=: |
| 9348 | ;; |
| 9349 | |
| 9350 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9351 | if test "$GCC" = yes; then |
| 9352 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9353 | 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] | 9354 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9355 | else |
| 9356 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9357 | 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] | 9358 | 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] | 9359 | $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] | 9360 | |
| 9361 | # Both c and cxx compiler support -rpath directly |
| 9362 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9363 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9364 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9365 | hardcode_libdir_separator=: |
| 9366 | ;; |
| 9367 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9368 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9369 | no_undefined_flag=' -z defs' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9370 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9371 | wlarc='${wl}' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9372 | 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] | 9373 | 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] | 9374 | $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] | 9375 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9376 | case `$CC -V 2>&1` in |
| 9377 | *"Compilers 5.0"*) |
| 9378 | wlarc='' |
| 9379 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9380 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9381 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9382 | ;; |
| 9383 | *) |
| 9384 | wlarc='${wl}' |
| 9385 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9386 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9387 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9388 | ;; |
| 9389 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9390 | fi |
| 9391 | hardcode_libdir_flag_spec='-R$libdir' |
| 9392 | hardcode_shlibpath_var=no |
| 9393 | case $host_os in |
| 9394 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9395 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9396 | # The compiler driver will combine and reorder linker options, |
| 9397 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9398 | # but is careful enough not to reorder. |
| 9399 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9400 | if test "$GCC" = yes; then |
| 9401 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9402 | else |
| 9403 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9404 | fi |
| 9405 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9406 | esac |
| 9407 | link_all_deplibs=yes |
| 9408 | ;; |
| 9409 | |
| 9410 | sunos4*) |
| 9411 | if test "x$host_vendor" = xsequent; then |
| 9412 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9413 | # files that make .init and .fini sections work. |
| 9414 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9415 | else |
| 9416 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9417 | fi |
| 9418 | hardcode_libdir_flag_spec='-L$libdir' |
| 9419 | hardcode_direct=yes |
| 9420 | hardcode_minus_L=yes |
| 9421 | hardcode_shlibpath_var=no |
| 9422 | ;; |
| 9423 | |
| 9424 | sysv4) |
| 9425 | case $host_vendor in |
| 9426 | sni) |
| 9427 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9428 | hardcode_direct=yes # is this really true??? |
| 9429 | ;; |
| 9430 | siemens) |
| 9431 | ## LD is ld it makes a PLAMLIB |
| 9432 | ## CC just makes a GrossModule. |
| 9433 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9434 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9435 | hardcode_direct=no |
| 9436 | ;; |
| 9437 | motorola) |
| 9438 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9439 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9440 | ;; |
| 9441 | esac |
| 9442 | runpath_var='LD_RUN_PATH' |
| 9443 | hardcode_shlibpath_var=no |
| 9444 | ;; |
| 9445 | |
| 9446 | sysv4.3*) |
| 9447 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9448 | hardcode_shlibpath_var=no |
| 9449 | export_dynamic_flag_spec='-Bexport' |
| 9450 | ;; |
| 9451 | |
| 9452 | sysv4*MP*) |
| 9453 | if test -d /usr/nec; then |
| 9454 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9455 | hardcode_shlibpath_var=no |
| 9456 | runpath_var=LD_RUN_PATH |
| 9457 | hardcode_runpath_var=yes |
| 9458 | ld_shlibs=yes |
| 9459 | fi |
| 9460 | ;; |
| 9461 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9462 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9463 | no_undefined_flag='${wl}-z,text' |
| 9464 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9465 | hardcode_shlibpath_var=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9466 | runpath_var='LD_RUN_PATH' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9467 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9468 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9469 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9470 | 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] | 9471 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9472 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9473 | 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] | 9474 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9475 | ;; |
| 9476 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9477 | sysv5* | sco3.2v5* | sco5v6*) |
| 9478 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9479 | # link with -lc, and that would cause any symbols used from libc to |
| 9480 | # always be unresolved, which means just about no library would |
| 9481 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9482 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9483 | # as -z defs. |
| 9484 | no_undefined_flag='${wl}-z,text' |
| 9485 | allow_undefined_flag='${wl}-z,nodefs' |
| 9486 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9487 | hardcode_shlibpath_var=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9488 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9489 | hardcode_libdir_separator=':' |
| 9490 | link_all_deplibs=yes |
| 9491 | export_dynamic_flag_spec='${wl}-Bexport' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9492 | runpath_var='LD_RUN_PATH' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9493 | |
| 9494 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9495 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9496 | 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] | 9497 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9498 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9499 | 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] | 9500 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9501 | ;; |
| 9502 | |
| 9503 | uts4*) |
| 9504 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9505 | hardcode_libdir_flag_spec='-L$libdir' |
| 9506 | hardcode_shlibpath_var=no |
| 9507 | ;; |
| 9508 | |
| 9509 | *) |
| 9510 | ld_shlibs=no |
| 9511 | ;; |
| 9512 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9513 | |
| 9514 | if test x$host_vendor = xsni; then |
| 9515 | case $host in |
| 9516 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9517 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9518 | ;; |
| 9519 | esac |
| 9520 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9521 | fi |
| 9522 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 9524 | $as_echo "$ld_shlibs" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9525 | test "$ld_shlibs" = no && can_build_shared=no |
| 9526 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9527 | with_gnu_ld=$with_gnu_ld |
| 9528 | |
| 9529 | |
| 9530 | |
| 9531 | |
| 9532 | |
| 9533 | |
| 9534 | |
| 9535 | |
| 9536 | |
| 9537 | |
| 9538 | |
| 9539 | |
| 9540 | |
| 9541 | |
| 9542 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9543 | # |
| 9544 | # Do we need to explicitly link libc? |
| 9545 | # |
| 9546 | case "x$archive_cmds_need_lc" in |
| 9547 | x|xyes) |
| 9548 | # Assume -lc should be added |
| 9549 | archive_cmds_need_lc=yes |
| 9550 | |
| 9551 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9552 | case $archive_cmds in |
| 9553 | *'~'*) |
| 9554 | # FIXME: we may have to deal with multi-command sequences. |
| 9555 | ;; |
| 9556 | '$CC '*) |
| 9557 | # Test whether the compiler implicitly links with -lc since on some |
| 9558 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9559 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9560 | { $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] | 9561 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9562 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 9563 | $as_echo_n "(cached) " >&6 |
| 9564 | else |
| 9565 | $RM conftest* |
| 9566 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9567 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9568 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9569 | (eval $ac_compile) 2>&5 |
| 9570 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9572 | test $ac_status = 0; } 2>conftest.err; then |
| 9573 | soname=conftest |
| 9574 | lib=conftest |
| 9575 | libobjs=conftest.$ac_objext |
| 9576 | deplibs= |
| 9577 | wl=$lt_prog_compiler_wl |
| 9578 | pic_flag=$lt_prog_compiler_pic |
| 9579 | compiler_flags=-v |
| 9580 | linker_flags=-v |
| 9581 | verstring= |
| 9582 | output_objdir=. |
| 9583 | libname=conftest |
| 9584 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9585 | allow_undefined_flag= |
| 9586 | 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] | 9587 | (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] | 9588 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9590 | test $ac_status = 0; } |
| 9591 | then |
| 9592 | lt_cv_archive_cmds_need_lc=no |
| 9593 | else |
| 9594 | lt_cv_archive_cmds_need_lc=yes |
| 9595 | fi |
| 9596 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9597 | else |
| 9598 | cat conftest.err 1>&5 |
| 9599 | fi |
| 9600 | $RM conftest* |
| 9601 | |
| 9602 | fi |
| 9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 9604 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 9605 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9606 | ;; |
| 9607 | esac |
| 9608 | fi |
| 9609 | ;; |
| 9610 | esac |
| 9611 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9612 | |
| 9613 | |
| 9614 | |
| 9615 | |
| 9616 | |
| 9617 | |
| 9618 | |
| 9619 | |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | |
| 9626 | |
| 9627 | |
| 9628 | |
| 9629 | |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | |
| 9639 | |
| 9640 | |
| 9641 | |
| 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 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 9769 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9770 | |
| 9771 | if test "$GCC" = yes; then |
| 9772 | case $host_os in |
| 9773 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9774 | *) lt_awk_arg="/^libraries:/" ;; |
| 9775 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9776 | case $host_os in |
| 9777 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 9778 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 9779 | esac |
| 9780 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 9781 | case $lt_search_path_spec in |
| 9782 | *\;*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9783 | # if the path contains ";" then we assume it to be the separator |
| 9784 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9785 | # assumed that no part of a normal pathname contains ";" but that should |
| 9786 | # okay in the real world where ";" in dirpaths is itself problematic. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9787 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 9788 | ;; |
| 9789 | *) |
| 9790 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 9791 | ;; |
| 9792 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9793 | # Ok, now we have the path, separated by spaces, we can step through it |
| 9794 | # and add multilib dir if necessary. |
| 9795 | lt_tmp_lt_search_path_spec= |
| 9796 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 9797 | for lt_sys_path in $lt_search_path_spec; do |
| 9798 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9799 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 9800 | else |
| 9801 | test -d "$lt_sys_path" && \ |
| 9802 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9803 | fi |
| 9804 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9805 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9806 | BEGIN {RS=" "; FS="/|\n";} { |
| 9807 | lt_foo=""; |
| 9808 | lt_count=0; |
| 9809 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9810 | if ($lt_i != "" && $lt_i != ".") { |
| 9811 | if ($lt_i == "..") { |
| 9812 | lt_count++; |
| 9813 | } else { |
| 9814 | if (lt_count == 0) { |
| 9815 | lt_foo="/" $lt_i lt_foo; |
| 9816 | } else { |
| 9817 | lt_count--; |
| 9818 | } |
| 9819 | } |
| 9820 | } |
| 9821 | } |
| 9822 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9823 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9824 | }'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9825 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 9826 | # for these hosts. |
| 9827 | case $host_os in |
| 9828 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 9829 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 9830 | esac |
| 9831 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9832 | else |
| 9833 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9834 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9835 | library_names_spec= |
| 9836 | libname_spec='lib$name' |
| 9837 | soname_spec= |
| 9838 | shrext_cmds=".so" |
| 9839 | postinstall_cmds= |
| 9840 | postuninstall_cmds= |
| 9841 | finish_cmds= |
| 9842 | finish_eval= |
| 9843 | shlibpath_var= |
| 9844 | shlibpath_overrides_runpath=unknown |
| 9845 | version_type=none |
| 9846 | dynamic_linker="$host_os ld.so" |
| 9847 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9848 | need_lib_prefix=unknown |
| 9849 | hardcode_into_libs=no |
| 9850 | |
| 9851 | # when you set need_version to no, make sure it does not cause -set_version |
| 9852 | # flags to be left without arguments |
| 9853 | need_version=unknown |
| 9854 | |
| 9855 | case $host_os in |
| 9856 | aix3*) |
| 9857 | version_type=linux |
| 9858 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9859 | shlibpath_var=LIBPATH |
| 9860 | |
| 9861 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9863 | ;; |
| 9864 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9865 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9866 | version_type=linux |
| 9867 | need_lib_prefix=no |
| 9868 | need_version=no |
| 9869 | hardcode_into_libs=yes |
| 9870 | if test "$host_cpu" = ia64; then |
| 9871 | # AIX 5 supports IA64 |
| 9872 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9873 | shlibpath_var=LD_LIBRARY_PATH |
| 9874 | else |
| 9875 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9876 | # for dependence libraries. The import file would start with |
| 9877 | # the line `#! .'. This would cause the generated library to |
| 9878 | # depend on `.', always an invalid library. This was fixed in |
| 9879 | # development snapshots of GCC prior to 3.0. |
| 9880 | case $host_os in |
| 9881 | aix4 | aix4.[01] | aix4.[01].*) |
| 9882 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9883 | echo ' yes ' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9884 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9885 | : |
| 9886 | else |
| 9887 | can_build_shared=no |
| 9888 | fi |
| 9889 | ;; |
| 9890 | esac |
| 9891 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9892 | # soname into executable. Probably we can add versioning support to |
| 9893 | # collect2, so additional links can be useful in future. |
| 9894 | if test "$aix_use_runtimelinking" = yes; then |
| 9895 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9896 | # instead of lib<name>.a to let people know that these are not |
| 9897 | # typical AIX shared libraries. |
| 9898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9899 | else |
| 9900 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9901 | # and later when we are not doing run time linking. |
| 9902 | library_names_spec='${libname}${release}.a $libname.a' |
| 9903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9904 | fi |
| 9905 | shlibpath_var=LIBPATH |
| 9906 | fi |
| 9907 | ;; |
| 9908 | |
| 9909 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9910 | case $host_cpu in |
| 9911 | powerpc) |
| 9912 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 9913 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 9914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9915 | ;; |
| 9916 | m68k) |
| 9917 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9918 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9919 | 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] | 9920 | ;; |
| 9921 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9922 | ;; |
| 9923 | |
| 9924 | beos*) |
| 9925 | library_names_spec='${libname}${shared_ext}' |
| 9926 | dynamic_linker="$host_os ld.so" |
| 9927 | shlibpath_var=LIBRARY_PATH |
| 9928 | ;; |
| 9929 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9930 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9931 | version_type=linux |
| 9932 | need_version=no |
| 9933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9936 | shlibpath_var=LD_LIBRARY_PATH |
| 9937 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9938 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9939 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9940 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9941 | # libtool to hard-code these into programs |
| 9942 | ;; |
| 9943 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9944 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9945 | version_type=windows |
| 9946 | shrext_cmds=".dll" |
| 9947 | need_version=no |
| 9948 | need_lib_prefix=no |
| 9949 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9950 | case $GCC,$cc_basename in |
| 9951 | yes,*) |
| 9952 | # gcc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9953 | library_names_spec='$libname.dll.a' |
| 9954 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9955 | postinstall_cmds='base_file=`basename \${file}`~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9956 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9957 | dldir=$destdir/`dirname \$dlpath`~ |
| 9958 | test -d \$dldir || mkdir -p \$dldir~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9959 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9960 | chmod a+x \$dldir/$dlname~ |
| 9961 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 9962 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 9963 | fi' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9964 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9965 | dlpath=$dir/\$dldll~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9966 | $RM \$dlpath' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9967 | shlibpath_overrides_runpath=yes |
| 9968 | |
| 9969 | case $host_os in |
| 9970 | cygwin*) |
| 9971 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9972 | 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] | 9973 | |
| 9974 | 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] | 9975 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9976 | mingw* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9977 | # MinGW DLLs use traditional 'lib' prefix |
| 9978 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9979 | ;; |
| 9980 | pw32*) |
| 9981 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9982 | 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] | 9983 | ;; |
| 9984 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9985 | dynamic_linker='Win32 ld.exe' |
| 9986 | ;; |
| 9987 | |
| 9988 | *,cl*) |
| 9989 | # Native MSVC |
| 9990 | libname_spec='$name' |
| 9991 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9992 | library_names_spec='${libname}.dll.lib' |
| 9993 | |
| 9994 | case $build_os in |
| 9995 | mingw*) |
| 9996 | sys_lib_search_path_spec= |
| 9997 | lt_save_ifs=$IFS |
| 9998 | IFS=';' |
| 9999 | for lt_path in $LIB |
| 10000 | do |
| 10001 | IFS=$lt_save_ifs |
| 10002 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10003 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10004 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10005 | done |
| 10006 | IFS=$lt_save_ifs |
| 10007 | # Convert to MSYS style. |
| 10008 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10009 | ;; |
| 10010 | cygwin*) |
| 10011 | # Convert to unix form, then to dos form, then back to unix form |
| 10012 | # but this time dos style (no spaces!) so that the unix form looks |
| 10013 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10014 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10015 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10016 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10017 | ;; |
| 10018 | *) |
| 10019 | sys_lib_search_path_spec="$LIB" |
| 10020 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10021 | # It is most probably a Windows format PATH. |
| 10022 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10023 | else |
| 10024 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10025 | fi |
| 10026 | # FIXME: find the short name or the path components, as spaces are |
| 10027 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10028 | ;; |
| 10029 | esac |
| 10030 | |
| 10031 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10032 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10033 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10034 | dldir=$destdir/`dirname \$dlpath`~ |
| 10035 | test -d \$dldir || mkdir -p \$dldir~ |
| 10036 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10037 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10038 | dlpath=$dir/\$dldll~ |
| 10039 | $RM \$dlpath' |
| 10040 | shlibpath_overrides_runpath=yes |
| 10041 | dynamic_linker='Win32 link.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10042 | ;; |
| 10043 | |
| 10044 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10045 | # Assume MSVC wrapper |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10046 | 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] | 10047 | dynamic_linker='Win32 ld.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10048 | ;; |
| 10049 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10050 | # FIXME: first we should search . and the directory the executable is in |
| 10051 | shlibpath_var=PATH |
| 10052 | ;; |
| 10053 | |
| 10054 | darwin* | rhapsody*) |
| 10055 | dynamic_linker="$host_os dyld" |
| 10056 | version_type=darwin |
| 10057 | need_lib_prefix=no |
| 10058 | need_version=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10059 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10060 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10061 | shlibpath_overrides_runpath=yes |
| 10062 | shlibpath_var=DYLD_LIBRARY_PATH |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10063 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10064 | |
| 10065 | 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] | 10066 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10067 | ;; |
| 10068 | |
| 10069 | dgux*) |
| 10070 | version_type=linux |
| 10071 | need_lib_prefix=no |
| 10072 | need_version=no |
| 10073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10075 | shlibpath_var=LD_LIBRARY_PATH |
| 10076 | ;; |
| 10077 | |
| 10078 | freebsd1*) |
| 10079 | dynamic_linker=no |
| 10080 | ;; |
| 10081 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10082 | freebsd* | dragonfly*) |
| 10083 | # DragonFly does not have aout. When/if they implement a new |
| 10084 | # versioning mechanism, adjust this. |
| 10085 | if test -x /usr/bin/objformat; then |
| 10086 | objformat=`/usr/bin/objformat` |
| 10087 | else |
| 10088 | case $host_os in |
| 10089 | freebsd[123]*) objformat=aout ;; |
| 10090 | *) objformat=elf ;; |
| 10091 | esac |
| 10092 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10093 | version_type=freebsd-$objformat |
| 10094 | case $version_type in |
| 10095 | freebsd-elf*) |
| 10096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10097 | need_version=no |
| 10098 | need_lib_prefix=no |
| 10099 | ;; |
| 10100 | freebsd-*) |
| 10101 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10102 | need_version=yes |
| 10103 | ;; |
| 10104 | esac |
| 10105 | shlibpath_var=LD_LIBRARY_PATH |
| 10106 | case $host_os in |
| 10107 | freebsd2*) |
| 10108 | shlibpath_overrides_runpath=yes |
| 10109 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10110 | freebsd3.[01]* | freebsdelf3.[01]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10111 | shlibpath_overrides_runpath=yes |
| 10112 | hardcode_into_libs=yes |
| 10113 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10114 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10115 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10116 | shlibpath_overrides_runpath=no |
| 10117 | hardcode_into_libs=yes |
| 10118 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10119 | *) # from 4.6 on, and DragonFly |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10120 | shlibpath_overrides_runpath=yes |
| 10121 | hardcode_into_libs=yes |
| 10122 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10123 | esac |
| 10124 | ;; |
| 10125 | |
| 10126 | gnu*) |
| 10127 | version_type=linux |
| 10128 | need_lib_prefix=no |
| 10129 | need_version=no |
| 10130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10132 | shlibpath_var=LD_LIBRARY_PATH |
| 10133 | hardcode_into_libs=yes |
| 10134 | ;; |
| 10135 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10136 | haiku*) |
| 10137 | version_type=linux |
| 10138 | need_lib_prefix=no |
| 10139 | need_version=no |
| 10140 | dynamic_linker="$host_os runtime_loader" |
| 10141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10143 | shlibpath_var=LIBRARY_PATH |
| 10144 | shlibpath_overrides_runpath=yes |
| 10145 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10146 | hardcode_into_libs=yes |
| 10147 | ;; |
| 10148 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10149 | hpux9* | hpux10* | hpux11*) |
| 10150 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10151 | # link against other versions. |
| 10152 | version_type=sunos |
| 10153 | need_lib_prefix=no |
| 10154 | need_version=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10155 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10156 | ia64*) |
| 10157 | shrext_cmds='.so' |
| 10158 | hardcode_into_libs=yes |
| 10159 | dynamic_linker="$host_os dld.so" |
| 10160 | shlibpath_var=LD_LIBRARY_PATH |
| 10161 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10164 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10165 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10166 | else |
| 10167 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10168 | fi |
| 10169 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10170 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10171 | hppa*64*) |
| 10172 | shrext_cmds='.sl' |
| 10173 | hardcode_into_libs=yes |
| 10174 | dynamic_linker="$host_os dld.sl" |
| 10175 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10176 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10179 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10180 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10181 | ;; |
| 10182 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10183 | shrext_cmds='.sl' |
| 10184 | dynamic_linker="$host_os dld.sl" |
| 10185 | shlibpath_var=SHLIB_PATH |
| 10186 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10189 | ;; |
| 10190 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10191 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10192 | postinstall_cmds='chmod 555 $lib' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10193 | # or fails outright, so override atomically: |
| 10194 | install_override_mode=555 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10195 | ;; |
| 10196 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10197 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10198 | version_type=linux |
| 10199 | need_lib_prefix=no |
| 10200 | need_version=no |
| 10201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10202 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10203 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10204 | shlibpath_var=LD_LIBRARY_PATH |
| 10205 | shlibpath_overrides_runpath=no |
| 10206 | hardcode_into_libs=yes |
| 10207 | ;; |
| 10208 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10209 | irix5* | irix6* | nonstopux*) |
| 10210 | case $host_os in |
| 10211 | nonstopux*) version_type=nonstopux ;; |
| 10212 | *) |
| 10213 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10214 | version_type=linux |
| 10215 | else |
| 10216 | version_type=irix |
| 10217 | fi ;; |
| 10218 | esac |
| 10219 | need_lib_prefix=no |
| 10220 | need_version=no |
| 10221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10223 | case $host_os in |
| 10224 | irix5* | nonstopux*) |
| 10225 | libsuff= shlibsuff= |
| 10226 | ;; |
| 10227 | *) |
| 10228 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10229 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10230 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10231 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10232 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10233 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10234 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10235 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10236 | esac |
| 10237 | ;; |
| 10238 | esac |
| 10239 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10240 | shlibpath_overrides_runpath=no |
| 10241 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10242 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10243 | hardcode_into_libs=yes |
| 10244 | ;; |
| 10245 | |
| 10246 | # No shared lib support for Linux oldld, aout, or coff. |
| 10247 | linux*oldld* | linux*aout* | linux*coff*) |
| 10248 | dynamic_linker=no |
| 10249 | ;; |
| 10250 | |
| 10251 | # This must be Linux ELF. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10252 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10253 | version_type=linux |
| 10254 | need_lib_prefix=no |
| 10255 | need_version=no |
| 10256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10257 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10258 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10259 | shlibpath_var=LD_LIBRARY_PATH |
| 10260 | shlibpath_overrides_runpath=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10261 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10262 | # Some binutils ld are patched to set DT_RUNPATH |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10263 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 10264 | $as_echo_n "(cached) " >&6 |
| 10265 | else |
| 10266 | lt_cv_shlibpath_overrides_runpath=no |
| 10267 | save_LDFLAGS=$LDFLAGS |
| 10268 | save_libdir=$libdir |
| 10269 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10270 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10272 | /* end confdefs.h. */ |
| 10273 | |
| 10274 | int |
| 10275 | main () |
| 10276 | { |
| 10277 | |
| 10278 | ; |
| 10279 | return 0; |
| 10280 | } |
| 10281 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10282 | if ac_fn_c_try_link "$LINENO"; then : |
| 10283 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10284 | lt_cv_shlibpath_overrides_runpath=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10285 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10286 | fi |
| 10287 | rm -f core conftest.err conftest.$ac_objext \ |
| 10288 | conftest$ac_exeext conftest.$ac_ext |
| 10289 | LDFLAGS=$save_LDFLAGS |
| 10290 | libdir=$save_libdir |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10291 | |
| 10292 | fi |
| 10293 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10294 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10295 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10296 | # This implies no fast_install, which is unacceptable. |
| 10297 | # Some rework will be needed to allow for fast_install |
| 10298 | # before this can be enabled. |
| 10299 | hardcode_into_libs=yes |
| 10300 | |
| 10301 | # Append ld.so.conf contents to the search path |
| 10302 | if test -f /etc/ld.so.conf; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10303 | 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] | 10304 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10305 | fi |
| 10306 | |
| 10307 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10308 | # powerpc, because MkLinux only supported shared libraries with the |
| 10309 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10310 | # most powerpc-linux boxes support dynamic linking these days and |
| 10311 | # people can always --disable-shared, the test was removed, and we |
| 10312 | # assume the GNU/Linux dynamic linker is in use. |
| 10313 | dynamic_linker='GNU/Linux ld.so' |
| 10314 | ;; |
| 10315 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10316 | netbsd*) |
| 10317 | version_type=sunos |
| 10318 | need_lib_prefix=no |
| 10319 | need_version=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10320 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10322 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10323 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10324 | else |
| 10325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10327 | dynamic_linker='NetBSD ld.elf_so' |
| 10328 | fi |
| 10329 | shlibpath_var=LD_LIBRARY_PATH |
| 10330 | shlibpath_overrides_runpath=yes |
| 10331 | hardcode_into_libs=yes |
| 10332 | ;; |
| 10333 | |
| 10334 | newsos6) |
| 10335 | version_type=linux |
| 10336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10337 | shlibpath_var=LD_LIBRARY_PATH |
| 10338 | shlibpath_overrides_runpath=yes |
| 10339 | ;; |
| 10340 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10341 | *nto* | *qnx*) |
| 10342 | version_type=qnx |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10343 | need_lib_prefix=no |
| 10344 | need_version=no |
| 10345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10346 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10347 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10348 | shlibpath_overrides_runpath=no |
| 10349 | hardcode_into_libs=yes |
| 10350 | dynamic_linker='ldqnx.so' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10351 | ;; |
| 10352 | |
| 10353 | openbsd*) |
| 10354 | version_type=sunos |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10355 | sys_lib_dlsearch_path_spec="/usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10356 | need_lib_prefix=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10357 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10358 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10359 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10360 | *) need_version=no ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10361 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10363 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10364 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10365 | 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] | 10366 | case $host_os in |
| 10367 | openbsd2.[89] | openbsd2.[89].*) |
| 10368 | shlibpath_overrides_runpath=no |
| 10369 | ;; |
| 10370 | *) |
| 10371 | shlibpath_overrides_runpath=yes |
| 10372 | ;; |
| 10373 | esac |
| 10374 | else |
| 10375 | shlibpath_overrides_runpath=yes |
| 10376 | fi |
| 10377 | ;; |
| 10378 | |
| 10379 | os2*) |
| 10380 | libname_spec='$name' |
| 10381 | shrext_cmds=".dll" |
| 10382 | need_lib_prefix=no |
| 10383 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10384 | dynamic_linker='OS/2 ld.exe' |
| 10385 | shlibpath_var=LIBPATH |
| 10386 | ;; |
| 10387 | |
| 10388 | osf3* | osf4* | osf5*) |
| 10389 | version_type=osf |
| 10390 | need_lib_prefix=no |
| 10391 | need_version=no |
| 10392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10394 | shlibpath_var=LD_LIBRARY_PATH |
| 10395 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10396 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10397 | ;; |
| 10398 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10399 | rdos*) |
| 10400 | dynamic_linker=no |
| 10401 | ;; |
| 10402 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10403 | solaris*) |
| 10404 | version_type=linux |
| 10405 | need_lib_prefix=no |
| 10406 | need_version=no |
| 10407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10409 | shlibpath_var=LD_LIBRARY_PATH |
| 10410 | shlibpath_overrides_runpath=yes |
| 10411 | hardcode_into_libs=yes |
| 10412 | # ldd complains unless libraries are executable |
| 10413 | postinstall_cmds='chmod +x $lib' |
| 10414 | ;; |
| 10415 | |
| 10416 | sunos4*) |
| 10417 | version_type=sunos |
| 10418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10419 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10420 | shlibpath_var=LD_LIBRARY_PATH |
| 10421 | shlibpath_overrides_runpath=yes |
| 10422 | if test "$with_gnu_ld" = yes; then |
| 10423 | need_lib_prefix=no |
| 10424 | fi |
| 10425 | need_version=yes |
| 10426 | ;; |
| 10427 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10428 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10429 | version_type=linux |
| 10430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10431 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10432 | shlibpath_var=LD_LIBRARY_PATH |
| 10433 | case $host_vendor in |
| 10434 | sni) |
| 10435 | shlibpath_overrides_runpath=no |
| 10436 | need_lib_prefix=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10437 | runpath_var=LD_RUN_PATH |
| 10438 | ;; |
| 10439 | siemens) |
| 10440 | need_lib_prefix=no |
| 10441 | ;; |
| 10442 | motorola) |
| 10443 | need_lib_prefix=no |
| 10444 | need_version=no |
| 10445 | shlibpath_overrides_runpath=no |
| 10446 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10447 | ;; |
| 10448 | esac |
| 10449 | ;; |
| 10450 | |
| 10451 | sysv4*MP*) |
| 10452 | if test -d /usr/nec ;then |
| 10453 | version_type=linux |
| 10454 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10455 | soname_spec='$libname${shared_ext}.$major' |
| 10456 | shlibpath_var=LD_LIBRARY_PATH |
| 10457 | fi |
| 10458 | ;; |
| 10459 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10460 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10461 | version_type=freebsd-elf |
| 10462 | need_lib_prefix=no |
| 10463 | need_version=no |
| 10464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10466 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10467 | shlibpath_overrides_runpath=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10468 | hardcode_into_libs=yes |
| 10469 | if test "$with_gnu_ld" = yes; then |
| 10470 | 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] | 10471 | else |
| 10472 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10473 | case $host_os in |
| 10474 | sco3.2v5*) |
| 10475 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10476 | ;; |
| 10477 | esac |
| 10478 | fi |
| 10479 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10480 | ;; |
| 10481 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10482 | tpf*) |
| 10483 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10484 | version_type=linux |
| 10485 | need_lib_prefix=no |
| 10486 | need_version=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10487 | 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] | 10488 | shlibpath_var=LD_LIBRARY_PATH |
| 10489 | shlibpath_overrides_runpath=no |
| 10490 | hardcode_into_libs=yes |
| 10491 | ;; |
| 10492 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10493 | uts4*) |
| 10494 | version_type=linux |
| 10495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10496 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10497 | shlibpath_var=LD_LIBRARY_PATH |
| 10498 | ;; |
| 10499 | |
| 10500 | *) |
| 10501 | dynamic_linker=no |
| 10502 | ;; |
| 10503 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10505 | $as_echo "$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10506 | test "$dynamic_linker" = no && can_build_shared=no |
| 10507 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10508 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10509 | if test "$GCC" = yes; then |
| 10510 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10511 | fi |
| 10512 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10513 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10514 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10515 | fi |
| 10516 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10517 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10518 | fi |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | |
| 10542 | |
| 10543 | |
| 10544 | |
| 10545 | |
| 10546 | |
| 10547 | |
| 10548 | |
| 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 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | { $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] | 10612 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10613 | hardcode_action= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10614 | if test -n "$hardcode_libdir_flag_spec" || |
| 10615 | test -n "$runpath_var" || |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10616 | test "X$hardcode_automatic" = "Xyes" ; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10617 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10618 | # We can hardcode non-existent directories. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10619 | if test "$hardcode_direct" != no && |
| 10620 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10621 | # have to relink, otherwise we might link with an installed library |
| 10622 | # when we should be linking with a yet-to-be-installed one |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10623 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10624 | test "$hardcode_minus_L" != no; then |
| 10625 | # Linking always hardcodes the temporary library directory. |
| 10626 | hardcode_action=relink |
| 10627 | else |
| 10628 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10629 | hardcode_action=immediate |
| 10630 | fi |
| 10631 | else |
| 10632 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10633 | # directories. |
| 10634 | hardcode_action=unsupported |
| 10635 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10637 | $as_echo "$hardcode_action" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10638 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10639 | if test "$hardcode_action" = relink || |
| 10640 | test "$inherit_rpath" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10641 | # Fast installation is not supported |
| 10642 | enable_fast_install=no |
| 10643 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10644 | test "$enable_shared" = no; then |
| 10645 | # Fast installation is not necessary |
| 10646 | enable_fast_install=needless |
| 10647 | fi |
| 10648 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10649 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10650 | |
| 10651 | |
| 10652 | |
| 10653 | |
| 10654 | if test "x$enable_dlopen" != xyes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10655 | enable_dlopen=unknown |
| 10656 | enable_dlopen_self=unknown |
| 10657 | enable_dlopen_self_static=unknown |
| 10658 | else |
| 10659 | lt_cv_dlopen=no |
| 10660 | lt_cv_dlopen_libs= |
| 10661 | |
| 10662 | case $host_os in |
| 10663 | beos*) |
| 10664 | lt_cv_dlopen="load_add_on" |
| 10665 | lt_cv_dlopen_libs= |
| 10666 | lt_cv_dlopen_self=yes |
| 10667 | ;; |
| 10668 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10669 | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10670 | lt_cv_dlopen="LoadLibrary" |
| 10671 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10672 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10673 | |
| 10674 | cygwin*) |
| 10675 | lt_cv_dlopen="dlopen" |
| 10676 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10677 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10678 | |
| 10679 | darwin*) |
| 10680 | # if libdl is installed we need to link against it |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10681 | { $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] | 10682 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10683 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10684 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10685 | else |
| 10686 | ac_check_lib_save_LIBS=$LIBS |
| 10687 | LIBS="-ldl $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10689 | /* end confdefs.h. */ |
| 10690 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10691 | /* Override any GCC internal prototype to avoid an error. |
| 10692 | Use char because int might match the return type of a GCC |
| 10693 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10694 | #ifdef __cplusplus |
| 10695 | extern "C" |
| 10696 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10697 | char dlopen (); |
| 10698 | int |
| 10699 | main () |
| 10700 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10701 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10702 | ; |
| 10703 | return 0; |
| 10704 | } |
| 10705 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10706 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10707 | ac_cv_lib_dl_dlopen=yes |
| 10708 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10709 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10710 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10711 | rm -f core conftest.err conftest.$ac_objext \ |
| 10712 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10713 | LIBS=$ac_check_lib_save_LIBS |
| 10714 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10715 | { $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] | 10716 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10717 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10718 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10719 | else |
| 10720 | |
| 10721 | lt_cv_dlopen="dyld" |
| 10722 | lt_cv_dlopen_libs= |
| 10723 | lt_cv_dlopen_self=yes |
| 10724 | |
| 10725 | fi |
| 10726 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10727 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10728 | |
| 10729 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10730 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10731 | if test "x$ac_cv_func_shl_load" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10732 | lt_cv_dlopen="shl_load" |
| 10733 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10734 | { $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] | 10735 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10736 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10737 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10738 | else |
| 10739 | ac_check_lib_save_LIBS=$LIBS |
| 10740 | LIBS="-ldld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10742 | /* end confdefs.h. */ |
| 10743 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10744 | /* Override any GCC internal prototype to avoid an error. |
| 10745 | Use char because int might match the return type of a GCC |
| 10746 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10747 | #ifdef __cplusplus |
| 10748 | extern "C" |
| 10749 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10750 | char shl_load (); |
| 10751 | int |
| 10752 | main () |
| 10753 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10754 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
| 10758 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10759 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10760 | ac_cv_lib_dld_shl_load=yes |
| 10761 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10762 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10763 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10764 | rm -f core conftest.err conftest.$ac_objext \ |
| 10765 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10766 | LIBS=$ac_check_lib_save_LIBS |
| 10767 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10768 | { $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] | 10769 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10770 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10771 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10772 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10773 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10774 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10775 | lt_cv_dlopen="dlopen" |
| 10776 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10777 | { $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] | 10778 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10779 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10780 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10781 | else |
| 10782 | ac_check_lib_save_LIBS=$LIBS |
| 10783 | LIBS="-ldl $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10785 | /* end confdefs.h. */ |
| 10786 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10787 | /* Override any GCC internal prototype to avoid an error. |
| 10788 | Use char because int might match the return type of a GCC |
| 10789 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10790 | #ifdef __cplusplus |
| 10791 | extern "C" |
| 10792 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10793 | char dlopen (); |
| 10794 | int |
| 10795 | main () |
| 10796 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10797 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10798 | ; |
| 10799 | return 0; |
| 10800 | } |
| 10801 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10802 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10803 | ac_cv_lib_dl_dlopen=yes |
| 10804 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10805 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10806 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10807 | rm -f core conftest.err conftest.$ac_objext \ |
| 10808 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10809 | LIBS=$ac_check_lib_save_LIBS |
| 10810 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10811 | { $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] | 10812 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10813 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10814 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10815 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10816 | { $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] | 10817 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10818 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10819 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10820 | else |
| 10821 | ac_check_lib_save_LIBS=$LIBS |
| 10822 | LIBS="-lsvld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10824 | /* end confdefs.h. */ |
| 10825 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10826 | /* Override any GCC internal prototype to avoid an error. |
| 10827 | Use char because int might match the return type of a GCC |
| 10828 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10829 | #ifdef __cplusplus |
| 10830 | extern "C" |
| 10831 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10832 | char dlopen (); |
| 10833 | int |
| 10834 | main () |
| 10835 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10836 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10837 | ; |
| 10838 | return 0; |
| 10839 | } |
| 10840 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10841 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10842 | ac_cv_lib_svld_dlopen=yes |
| 10843 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10844 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10845 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10846 | rm -f core conftest.err conftest.$ac_objext \ |
| 10847 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10848 | LIBS=$ac_check_lib_save_LIBS |
| 10849 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10850 | { $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] | 10851 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10852 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10853 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10854 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10855 | { $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] | 10856 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10857 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10858 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10859 | else |
| 10860 | ac_check_lib_save_LIBS=$LIBS |
| 10861 | LIBS="-ldld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10863 | /* end confdefs.h. */ |
| 10864 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10865 | /* Override any GCC internal prototype to avoid an error. |
| 10866 | Use char because int might match the return type of a GCC |
| 10867 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10868 | #ifdef __cplusplus |
| 10869 | extern "C" |
| 10870 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10871 | char dld_link (); |
| 10872 | int |
| 10873 | main () |
| 10874 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10875 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10876 | ; |
| 10877 | return 0; |
| 10878 | } |
| 10879 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10880 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10881 | ac_cv_lib_dld_dld_link=yes |
| 10882 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10883 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10884 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10885 | rm -f core conftest.err conftest.$ac_objext \ |
| 10886 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10887 | LIBS=$ac_check_lib_save_LIBS |
| 10888 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10889 | { $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] | 10890 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10891 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10892 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10893 | fi |
| 10894 | |
| 10895 | |
| 10896 | fi |
| 10897 | |
| 10898 | |
| 10899 | fi |
| 10900 | |
| 10901 | |
| 10902 | fi |
| 10903 | |
| 10904 | |
| 10905 | fi |
| 10906 | |
| 10907 | |
| 10908 | fi |
| 10909 | |
| 10910 | ;; |
| 10911 | esac |
| 10912 | |
| 10913 | if test "x$lt_cv_dlopen" != xno; then |
| 10914 | enable_dlopen=yes |
| 10915 | else |
| 10916 | enable_dlopen=no |
| 10917 | fi |
| 10918 | |
| 10919 | case $lt_cv_dlopen in |
| 10920 | dlopen) |
| 10921 | save_CPPFLAGS="$CPPFLAGS" |
| 10922 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10923 | |
| 10924 | save_LDFLAGS="$LDFLAGS" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10925 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10926 | |
| 10927 | save_LIBS="$LIBS" |
| 10928 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10929 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10930 | { $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] | 10931 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10932 | if ${lt_cv_dlopen_self+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10933 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10934 | else |
| 10935 | if test "$cross_compiling" = yes; then : |
| 10936 | lt_cv_dlopen_self=cross |
| 10937 | else |
| 10938 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10939 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10940 | cat > conftest.$ac_ext <<_LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10941 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10942 | #include "confdefs.h" |
| 10943 | |
| 10944 | #if HAVE_DLFCN_H |
| 10945 | #include <dlfcn.h> |
| 10946 | #endif |
| 10947 | |
| 10948 | #include <stdio.h> |
| 10949 | |
| 10950 | #ifdef RTLD_GLOBAL |
| 10951 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10952 | #else |
| 10953 | # ifdef DL_GLOBAL |
| 10954 | # define LT_DLGLOBAL DL_GLOBAL |
| 10955 | # else |
| 10956 | # define LT_DLGLOBAL 0 |
| 10957 | # endif |
| 10958 | #endif |
| 10959 | |
| 10960 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10961 | find out it does not work in some platform. */ |
| 10962 | #ifndef LT_DLLAZY_OR_NOW |
| 10963 | # ifdef RTLD_LAZY |
| 10964 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10965 | # else |
| 10966 | # ifdef DL_LAZY |
| 10967 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10968 | # else |
| 10969 | # ifdef RTLD_NOW |
| 10970 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10971 | # else |
| 10972 | # ifdef DL_NOW |
| 10973 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10974 | # else |
| 10975 | # define LT_DLLAZY_OR_NOW 0 |
| 10976 | # endif |
| 10977 | # endif |
| 10978 | # endif |
| 10979 | # endif |
| 10980 | #endif |
| 10981 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10982 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 10983 | correspondingly for the symbols needed. */ |
| 10984 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 10985 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10986 | #endif |
| 10987 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10988 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10989 | int main () |
| 10990 | { |
| 10991 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10992 | int status = $lt_dlunknown; |
| 10993 | |
| 10994 | if (self) |
| 10995 | { |
| 10996 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10997 | else |
| 10998 | { |
| 10999 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11000 | else puts (dlerror ()); |
| 11001 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11002 | /* dlclose (self); */ |
| 11003 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11004 | else |
| 11005 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11006 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11007 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11008 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11009 | _LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11010 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11011 | (eval $ac_link) 2>&5 |
| 11012 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11014 | 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] | 11015 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11016 | lt_status=$? |
| 11017 | case x$lt_status in |
| 11018 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11019 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11020 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11021 | esac |
| 11022 | else : |
| 11023 | # compilation failed |
| 11024 | lt_cv_dlopen_self=no |
| 11025 | fi |
| 11026 | fi |
| 11027 | rm -fr conftest* |
| 11028 | |
| 11029 | |
| 11030 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11031 | { $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] | 11032 | $as_echo "$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11033 | |
| 11034 | if test "x$lt_cv_dlopen_self" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11035 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11036 | { $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] | 11037 | $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] | 11038 | if ${lt_cv_dlopen_self_static+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11039 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11040 | else |
| 11041 | if test "$cross_compiling" = yes; then : |
| 11042 | lt_cv_dlopen_self_static=cross |
| 11043 | else |
| 11044 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11045 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11046 | cat > conftest.$ac_ext <<_LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11047 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11048 | #include "confdefs.h" |
| 11049 | |
| 11050 | #if HAVE_DLFCN_H |
| 11051 | #include <dlfcn.h> |
| 11052 | #endif |
| 11053 | |
| 11054 | #include <stdio.h> |
| 11055 | |
| 11056 | #ifdef RTLD_GLOBAL |
| 11057 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11058 | #else |
| 11059 | # ifdef DL_GLOBAL |
| 11060 | # define LT_DLGLOBAL DL_GLOBAL |
| 11061 | # else |
| 11062 | # define LT_DLGLOBAL 0 |
| 11063 | # endif |
| 11064 | #endif |
| 11065 | |
| 11066 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11067 | find out it does not work in some platform. */ |
| 11068 | #ifndef LT_DLLAZY_OR_NOW |
| 11069 | # ifdef RTLD_LAZY |
| 11070 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11071 | # else |
| 11072 | # ifdef DL_LAZY |
| 11073 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11074 | # else |
| 11075 | # ifdef RTLD_NOW |
| 11076 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11077 | # else |
| 11078 | # ifdef DL_NOW |
| 11079 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11080 | # else |
| 11081 | # define LT_DLLAZY_OR_NOW 0 |
| 11082 | # endif |
| 11083 | # endif |
| 11084 | # endif |
| 11085 | # endif |
| 11086 | #endif |
| 11087 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11088 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11089 | correspondingly for the symbols needed. */ |
| 11090 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11091 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11092 | #endif |
| 11093 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11094 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11095 | int main () |
| 11096 | { |
| 11097 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11098 | int status = $lt_dlunknown; |
| 11099 | |
| 11100 | if (self) |
| 11101 | { |
| 11102 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11103 | else |
| 11104 | { |
| 11105 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11106 | else puts (dlerror ()); |
| 11107 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11108 | /* dlclose (self); */ |
| 11109 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11110 | else |
| 11111 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11112 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11113 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11114 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11115 | _LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11116 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11117 | (eval $ac_link) 2>&5 |
| 11118 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11120 | 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] | 11121 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11122 | lt_status=$? |
| 11123 | case x$lt_status in |
| 11124 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11125 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11126 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11127 | esac |
| 11128 | else : |
| 11129 | # compilation failed |
| 11130 | lt_cv_dlopen_self_static=no |
| 11131 | fi |
| 11132 | fi |
| 11133 | rm -fr conftest* |
| 11134 | |
| 11135 | |
| 11136 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11137 | { $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] | 11138 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11139 | fi |
| 11140 | |
| 11141 | CPPFLAGS="$save_CPPFLAGS" |
| 11142 | LDFLAGS="$save_LDFLAGS" |
| 11143 | LIBS="$save_LIBS" |
| 11144 | ;; |
| 11145 | esac |
| 11146 | |
| 11147 | case $lt_cv_dlopen_self in |
| 11148 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11149 | *) enable_dlopen_self=unknown ;; |
| 11150 | esac |
| 11151 | |
| 11152 | case $lt_cv_dlopen_self_static in |
| 11153 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11154 | *) enable_dlopen_self_static=unknown ;; |
| 11155 | esac |
| 11156 | fi |
| 11157 | |
| 11158 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11159 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11160 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11161 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11162 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11163 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11164 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11165 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11166 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11167 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11168 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11169 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11170 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11171 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11172 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11173 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11174 | striplib= |
| 11175 | old_striplib= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11176 | { $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] | 11177 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11178 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11179 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11180 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11182 | $as_echo "yes" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11183 | else |
| 11184 | # FIXME - insert some real tests, host_os isn't really good enough |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11185 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11186 | darwin*) |
| 11187 | if test -n "$STRIP" ; then |
| 11188 | striplib="$STRIP -x" |
| 11189 | old_striplib="$STRIP -S" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11191 | $as_echo "yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11192 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11194 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11195 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11196 | ;; |
| 11197 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11199 | $as_echo "no" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11200 | ;; |
| 11201 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11202 | fi |
| 11203 | |
| 11204 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11205 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11206 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11207 | |
| 11208 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11209 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11210 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11211 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11212 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11213 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11214 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11215 | # Report which library types will actually be built |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11216 | { $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] | 11217 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11219 | $as_echo "$can_build_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11220 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11221 | { $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] | 11222 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11223 | test "$can_build_shared" = "no" && enable_shared=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11224 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11225 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11226 | # are all built from PIC. |
| 11227 | case $host_os in |
| 11228 | aix3*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11229 | test "$enable_shared" = yes && enable_static=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11230 | if test -n "$RANLIB"; then |
| 11231 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11232 | postinstall_cmds='$RANLIB $lib' |
| 11233 | fi |
| 11234 | ;; |
| 11235 | |
| 11236 | aix[4-9]*) |
| 11237 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11238 | test "$enable_shared" = yes && enable_static=no |
| 11239 | fi |
| 11240 | ;; |
| 11241 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11243 | $as_echo "$enable_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11244 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11245 | { $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] | 11246 | $as_echo_n "checking whether to build static libraries... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11247 | # Make sure either enable_shared or enable_static is yes. |
| 11248 | test "$enable_shared" = yes || enable_static=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11250 | $as_echo "$enable_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11251 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11252 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11253 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11254 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11255 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11256 | ac_ext=c |
| 11257 | ac_cpp='$CPP $CPPFLAGS' |
| 11258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11261 | |
| 11262 | CC="$lt_save_CC" |
| 11263 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11264 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11265 | |
| 11266 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11267 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11268 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11269 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11270 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11271 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11272 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11273 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11274 | |
| 11275 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11276 | ac_config_commands="$ac_config_commands libtool" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11277 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11278 | |
| 11279 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11280 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11281 | # Only expand once: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11282 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11283 | |
| 11284 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11285 | ac_ext=c |
| 11286 | ac_cpp='$CPP $CPPFLAGS' |
| 11287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11290 | if test -n "$ac_tool_prefix"; then |
| 11291 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 11292 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11294 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11295 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11296 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11297 | else |
| 11298 | if test -n "$CC"; then |
| 11299 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11300 | else |
| 11301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11302 | for as_dir in $PATH |
| 11303 | do |
| 11304 | IFS=$as_save_IFS |
| 11305 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11307 | 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] | 11308 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11309 | $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] | 11310 | break 2 |
| 11311 | fi |
| 11312 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11313 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11314 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11315 | |
| 11316 | fi |
| 11317 | fi |
| 11318 | CC=$ac_cv_prog_CC |
| 11319 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11321 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11322 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11324 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11325 | fi |
| 11326 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11327 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11328 | fi |
| 11329 | if test -z "$ac_cv_prog_CC"; then |
| 11330 | ac_ct_CC=$CC |
| 11331 | # Extract the first word of "gcc", so it can be a program name with args. |
| 11332 | set dummy gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11334 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11335 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11336 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11337 | else |
| 11338 | if test -n "$ac_ct_CC"; then |
| 11339 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 11340 | else |
| 11341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11342 | for as_dir in $PATH |
| 11343 | do |
| 11344 | IFS=$as_save_IFS |
| 11345 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11346 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11347 | 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] | 11348 | ac_cv_prog_ac_ct_CC="gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11349 | $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] | 11350 | break 2 |
| 11351 | fi |
| 11352 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11353 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11354 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11355 | |
| 11356 | fi |
| 11357 | fi |
| 11358 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 11359 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11361 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11362 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11364 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11365 | fi |
| 11366 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11367 | if test "x$ac_ct_CC" = x; then |
| 11368 | CC="" |
| 11369 | else |
| 11370 | case $cross_compiling:$ac_tool_warned in |
| 11371 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11372 | { $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] | 11373 | $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] | 11374 | ac_tool_warned=yes ;; |
| 11375 | esac |
| 11376 | CC=$ac_ct_CC |
| 11377 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11378 | else |
| 11379 | CC="$ac_cv_prog_CC" |
| 11380 | fi |
| 11381 | |
| 11382 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11383 | if test -n "$ac_tool_prefix"; then |
| 11384 | # 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] | 11385 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11387 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11388 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11389 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11390 | else |
| 11391 | if test -n "$CC"; then |
| 11392 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11393 | else |
| 11394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11395 | for as_dir in $PATH |
| 11396 | do |
| 11397 | IFS=$as_save_IFS |
| 11398 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11400 | 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] | 11401 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11402 | $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] | 11403 | break 2 |
| 11404 | fi |
| 11405 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11406 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11407 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11408 | |
| 11409 | fi |
| 11410 | fi |
| 11411 | CC=$ac_cv_prog_CC |
| 11412 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11414 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11415 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11417 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11418 | fi |
| 11419 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11420 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11421 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11422 | fi |
| 11423 | if test -z "$CC"; then |
| 11424 | # Extract the first word of "cc", so it can be a program name with args. |
| 11425 | set dummy cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11427 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11428 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11429 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11430 | else |
| 11431 | if test -n "$CC"; then |
| 11432 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11433 | else |
| 11434 | ac_prog_rejected=no |
| 11435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11436 | for as_dir in $PATH |
| 11437 | do |
| 11438 | IFS=$as_save_IFS |
| 11439 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11441 | 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] | 11442 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 11443 | ac_prog_rejected=yes |
| 11444 | continue |
| 11445 | fi |
| 11446 | ac_cv_prog_CC="cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11447 | $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] | 11448 | break 2 |
| 11449 | fi |
| 11450 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11451 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11452 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11453 | |
| 11454 | if test $ac_prog_rejected = yes; then |
| 11455 | # We found a bogon in the path, so make sure we never use it. |
| 11456 | set dummy $ac_cv_prog_CC |
| 11457 | shift |
| 11458 | if test $# != 0; then |
| 11459 | # We chose a different compiler from the bogus one. |
| 11460 | # However, it has the same basename, so the bogon will be chosen |
| 11461 | # first if we set CC to just the basename; use the full file name. |
| 11462 | shift |
| 11463 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 11464 | fi |
| 11465 | fi |
| 11466 | fi |
| 11467 | fi |
| 11468 | CC=$ac_cv_prog_CC |
| 11469 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11471 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11472 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11474 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11475 | fi |
| 11476 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11477 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11478 | fi |
| 11479 | if test -z "$CC"; then |
| 11480 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11481 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11482 | do |
| 11483 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11484 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11486 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11487 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11488 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11489 | else |
| 11490 | if test -n "$CC"; then |
| 11491 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11492 | else |
| 11493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11494 | for as_dir in $PATH |
| 11495 | do |
| 11496 | IFS=$as_save_IFS |
| 11497 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11499 | 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] | 11500 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11501 | $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] | 11502 | break 2 |
| 11503 | fi |
| 11504 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11505 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11506 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11507 | |
| 11508 | fi |
| 11509 | fi |
| 11510 | CC=$ac_cv_prog_CC |
| 11511 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11513 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11514 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11516 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11517 | fi |
| 11518 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11519 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11520 | test -n "$CC" && break |
| 11521 | done |
| 11522 | fi |
| 11523 | if test -z "$CC"; then |
| 11524 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11525 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11526 | do |
| 11527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11528 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11530 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11531 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11532 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11533 | else |
| 11534 | if test -n "$ac_ct_CC"; then |
| 11535 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 11536 | else |
| 11537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11538 | for as_dir in $PATH |
| 11539 | do |
| 11540 | IFS=$as_save_IFS |
| 11541 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11543 | 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] | 11544 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11545 | $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] | 11546 | break 2 |
| 11547 | fi |
| 11548 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11549 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11550 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11551 | |
| 11552 | fi |
| 11553 | fi |
| 11554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 11555 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11557 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11558 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11560 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11561 | fi |
| 11562 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11563 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11564 | test -n "$ac_ct_CC" && break |
| 11565 | done |
| 11566 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11567 | if test "x$ac_ct_CC" = x; then |
| 11568 | CC="" |
| 11569 | else |
| 11570 | case $cross_compiling:$ac_tool_warned in |
| 11571 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11572 | { $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] | 11573 | $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] | 11574 | ac_tool_warned=yes ;; |
| 11575 | esac |
| 11576 | CC=$ac_ct_CC |
| 11577 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11578 | fi |
| 11579 | |
| 11580 | fi |
| 11581 | |
| 11582 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11583 | 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] | 11584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11585 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 11586 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11587 | |
| 11588 | # Provide some information about the compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11589 | $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] | 11590 | set X $ac_compile |
| 11591 | ac_compiler=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11592 | for ac_option in --version -v -V -qversion; do |
| 11593 | { { ac_try="$ac_compiler $ac_option >&5" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11594 | case "(($ac_try" in |
| 11595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11596 | *) ac_try_echo=$ac_try;; |
| 11597 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 11599 | $as_echo "$ac_try_echo"; } >&5 |
| 11600 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11601 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11602 | if test -s conftest.err; then |
| 11603 | sed '10a\ |
| 11604 | ... rest of stderr output deleted ... |
| 11605 | 10q' conftest.err >conftest.er1 |
| 11606 | cat conftest.er1 >&5 |
| 11607 | fi |
| 11608 | rm -f conftest.er1 conftest.err |
| 11609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11610 | test $ac_status = 0; } |
| 11611 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11612 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11613 | { $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] | 11614 | $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] | 11615 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11616 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11617 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11619 | /* end confdefs.h. */ |
| 11620 | |
| 11621 | int |
| 11622 | main () |
| 11623 | { |
| 11624 | #ifndef __GNUC__ |
| 11625 | choke me |
| 11626 | #endif |
| 11627 | |
| 11628 | ; |
| 11629 | return 0; |
| 11630 | } |
| 11631 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11632 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11633 | ac_compiler_gnu=yes |
| 11634 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11635 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11636 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11638 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 11639 | |
| 11640 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11641 | { $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] | 11642 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 11643 | if test $ac_compiler_gnu = yes; then |
| 11644 | GCC=yes |
| 11645 | else |
| 11646 | GCC= |
| 11647 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11648 | ac_test_CFLAGS=${CFLAGS+set} |
| 11649 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11650 | { $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] | 11651 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11652 | if ${ac_cv_prog_cc_g+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11653 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11654 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11655 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 11656 | ac_c_werror_flag=yes |
| 11657 | ac_cv_prog_cc_g=no |
| 11658 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11660 | /* end confdefs.h. */ |
| 11661 | |
| 11662 | int |
| 11663 | main () |
| 11664 | { |
| 11665 | |
| 11666 | ; |
| 11667 | return 0; |
| 11668 | } |
| 11669 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11670 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11671 | ac_cv_prog_cc_g=yes |
| 11672 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11673 | CFLAGS="" |
| 11674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11675 | /* end confdefs.h. */ |
| 11676 | |
| 11677 | int |
| 11678 | main () |
| 11679 | { |
| 11680 | |
| 11681 | ; |
| 11682 | return 0; |
| 11683 | } |
| 11684 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11685 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11686 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11687 | else |
| 11688 | ac_c_werror_flag=$ac_save_c_werror_flag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11689 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11691 | /* end confdefs.h. */ |
| 11692 | |
| 11693 | int |
| 11694 | main () |
| 11695 | { |
| 11696 | |
| 11697 | ; |
| 11698 | return 0; |
| 11699 | } |
| 11700 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11701 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11702 | ac_cv_prog_cc_g=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11703 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11705 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11707 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11709 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 11710 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11711 | { $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] | 11712 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11713 | if test "$ac_test_CFLAGS" = set; then |
| 11714 | CFLAGS=$ac_save_CFLAGS |
| 11715 | elif test $ac_cv_prog_cc_g = yes; then |
| 11716 | if test "$GCC" = yes; then |
| 11717 | CFLAGS="-g -O2" |
| 11718 | else |
| 11719 | CFLAGS="-g" |
| 11720 | fi |
| 11721 | else |
| 11722 | if test "$GCC" = yes; then |
| 11723 | CFLAGS="-O2" |
| 11724 | else |
| 11725 | CFLAGS= |
| 11726 | fi |
| 11727 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11728 | { $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] | 11729 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11730 | if ${ac_cv_prog_cc_c89+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11731 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11732 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11733 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11734 | ac_save_CC=$CC |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11736 | /* end confdefs.h. */ |
| 11737 | #include <stdarg.h> |
| 11738 | #include <stdio.h> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11739 | struct stat; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11740 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 11741 | struct buf { int x; }; |
| 11742 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 11743 | static char *e (p, i) |
| 11744 | char **p; |
| 11745 | int i; |
| 11746 | { |
| 11747 | return p[i]; |
| 11748 | } |
| 11749 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 11750 | { |
| 11751 | char *s; |
| 11752 | va_list v; |
| 11753 | va_start (v,p); |
| 11754 | s = g (p, va_arg (v,int)); |
| 11755 | va_end (v); |
| 11756 | return s; |
| 11757 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11758 | |
| 11759 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 11760 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 11761 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11762 | 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] | 11763 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 11764 | 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] | 11765 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11766 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 11767 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11768 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 11769 | inside strings and character constants. */ |
| 11770 | #define FOO(x) 'x' |
| 11771 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 11772 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11773 | int test (int i, double x); |
| 11774 | struct s1 {int (*f) (int a);}; |
| 11775 | struct s2 {int (*f) (double a);}; |
| 11776 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 11777 | int argc; |
| 11778 | char **argv; |
| 11779 | int |
| 11780 | main () |
| 11781 | { |
| 11782 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 11783 | ; |
| 11784 | return 0; |
| 11785 | } |
| 11786 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11787 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 11788 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11789 | do |
| 11790 | CC="$ac_save_CC $ac_arg" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11791 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11792 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11793 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11794 | rm -f core conftest.err conftest.$ac_objext |
| 11795 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11796 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11797 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11798 | CC=$ac_save_CC |
| 11799 | |
| 11800 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11801 | # AC_CACHE_VAL |
| 11802 | case "x$ac_cv_prog_cc_c89" in |
| 11803 | x) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11805 | $as_echo "none needed" >&6; } ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11806 | xno) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11808 | $as_echo "unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11809 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11810 | CC="$CC $ac_cv_prog_cc_c89" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11811 | { $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] | 11812 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11813 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11814 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11815 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11816 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11817 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11818 | ac_ext=c |
| 11819 | ac_cpp='$CPP $CPPFLAGS' |
| 11820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11823 | |
| 11824 | depcc="$CC" am_compiler_list= |
| 11825 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11826 | { $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] | 11827 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11828 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11829 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11830 | else |
| 11831 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 11832 | # We make a subdir and do the tests there. Otherwise we can end up |
| 11833 | # making bogus files that we don't know about and never remove. For |
| 11834 | # instance it was reported that on HP-UX the gcc test will end up |
| 11835 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 11836 | # in D'. |
| 11837 | mkdir conftest.dir |
| 11838 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 11839 | # using a relative directory. |
| 11840 | cp "$am_depcomp" conftest.dir |
| 11841 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11842 | # We will build objects and dependencies in a subdirectory because |
| 11843 | # it helps to detect inapplicable dependency modes. For instance |
| 11844 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 11845 | # side effect of compilation, but ICC will put the dependencies in |
| 11846 | # the current directory while Tru64 will put them in the object |
| 11847 | # directory. |
| 11848 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11849 | |
| 11850 | am_cv_CC_dependencies_compiler_type=none |
| 11851 | if test "$am_compiler_list" = ""; then |
| 11852 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 11853 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11854 | am__universal=false |
| 11855 | case " $depcc " in #( |
| 11856 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 11857 | esac |
| 11858 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11859 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11860 | # Setup a source with many dependencies, because some compilers |
| 11861 | # like to wrap large dependency lists on column 80 (with \), and |
| 11862 | # we should not choose a depcomp mode which is confused by this. |
| 11863 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11864 | # We need to recreate these files for each test, as the compiler may |
| 11865 | # overwrite some of them when testing with obscure command lines. |
| 11866 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11867 | : > sub/conftest.c |
| 11868 | for i in 1 2 3 4 5 6; do |
| 11869 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 11870 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 11871 | # Solaris 8's {/usr,}/bin/sh. |
| 11872 | touch sub/conftst$i.h |
| 11873 | done |
| 11874 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11875 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11876 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 11877 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 11878 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 11879 | # versions had trouble with output in subdirs |
| 11880 | am__obj=sub/conftest.${OBJEXT-o} |
| 11881 | am__minus_obj="-o $am__obj" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11882 | case $depmode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11883 | gcc) |
| 11884 | # This depmode causes a compiler race in universal mode. |
| 11885 | test "$am__universal" = false || continue |
| 11886 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11887 | nosideeffect) |
| 11888 | # after this tag, mechanisms are not by side-effect, so they'll |
| 11889 | # only be used when explicitly requested |
| 11890 | if test "x$enable_dependency_tracking" = xyes; then |
| 11891 | continue |
| 11892 | else |
| 11893 | break |
| 11894 | fi |
| 11895 | ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11896 | msvisualcpp | msvcmsys) |
| 11897 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 11898 | # not run yet. These depmodes are late enough in the game, and |
| 11899 | # so weak that their functioning should not be impacted. |
| 11900 | am__obj=conftest.${OBJEXT-o} |
| 11901 | am__minus_obj= |
| 11902 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11903 | none) break ;; |
| 11904 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11905 | if depmode=$depmode \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11906 | source=sub/conftest.c object=$am__obj \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11907 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11908 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11909 | >/dev/null 2>conftest.err && |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 11910 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11911 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11912 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11913 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11914 | # icc doesn't choke on unknown options, it will just issue warnings |
| 11915 | # or remarks (even with -Werror). So we grep stderr for any message |
| 11916 | # that says an option was ignored or not supported. |
| 11917 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 11918 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 11919 | # The diagnosis changed in icc 8.0: |
| 11920 | # icc: Command line remark: option '-MP' not supported |
| 11921 | if (grep 'ignoring option' conftest.err || |
| 11922 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 11923 | am_cv_CC_dependencies_compiler_type=$depmode |
| 11924 | break |
| 11925 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11926 | fi |
| 11927 | done |
| 11928 | |
| 11929 | cd .. |
| 11930 | rm -rf conftest.dir |
| 11931 | else |
| 11932 | am_cv_CC_dependencies_compiler_type=none |
| 11933 | fi |
| 11934 | |
| 11935 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11936 | { $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] | 11937 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11938 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 11939 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 11940 | if |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11941 | test "x$enable_dependency_tracking" != xno \ |
| 11942 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 11943 | am__fastdepCC_TRUE= |
| 11944 | am__fastdepCC_FALSE='#' |
| 11945 | else |
| 11946 | am__fastdepCC_TRUE='#' |
| 11947 | am__fastdepCC_FALSE= |
| 11948 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11949 | |
| 11950 | |
| 11951 | ac_ext=c |
| 11952 | ac_cpp='$CPP $CPPFLAGS' |
| 11953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11956 | { $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] | 11957 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11958 | # On Suns, sometimes $CPP names a directory. |
| 11959 | if test -n "$CPP" && test -d "$CPP"; then |
| 11960 | CPP= |
| 11961 | fi |
| 11962 | if test -z "$CPP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11963 | if ${ac_cv_prog_CPP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11964 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11965 | else |
| 11966 | # Double quotes because CPP needs to be expanded |
| 11967 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 11968 | do |
| 11969 | ac_preproc_ok=false |
| 11970 | for ac_c_preproc_warn_flag in '' yes |
| 11971 | do |
| 11972 | # Use a header file that comes with gcc, so configuring glibc |
| 11973 | # with a fresh cross-compiler works. |
| 11974 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11975 | # <limits.h> exists even on freestanding compilers. |
| 11976 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11977 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11979 | /* end confdefs.h. */ |
| 11980 | #ifdef __STDC__ |
| 11981 | # include <limits.h> |
| 11982 | #else |
| 11983 | # include <assert.h> |
| 11984 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11985 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11986 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11987 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11988 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11989 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11990 | # Broken: fails on valid input. |
| 11991 | continue |
| 11992 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11993 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11994 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11995 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11996 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11998 | /* end confdefs.h. */ |
| 11999 | #include <ac_nonexistent.h> |
| 12000 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12001 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12002 | # Broken: success on invalid input. |
| 12003 | continue |
| 12004 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12005 | # Passes both tests. |
| 12006 | ac_preproc_ok=: |
| 12007 | break |
| 12008 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12009 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12010 | |
| 12011 | done |
| 12012 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12013 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12014 | if $ac_preproc_ok; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12015 | break |
| 12016 | fi |
| 12017 | |
| 12018 | done |
| 12019 | ac_cv_prog_CPP=$CPP |
| 12020 | |
| 12021 | fi |
| 12022 | CPP=$ac_cv_prog_CPP |
| 12023 | else |
| 12024 | ac_cv_prog_CPP=$CPP |
| 12025 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12027 | $as_echo "$CPP" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12028 | ac_preproc_ok=false |
| 12029 | for ac_c_preproc_warn_flag in '' yes |
| 12030 | do |
| 12031 | # Use a header file that comes with gcc, so configuring glibc |
| 12032 | # with a fresh cross-compiler works. |
| 12033 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12034 | # <limits.h> exists even on freestanding compilers. |
| 12035 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12036 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12038 | /* end confdefs.h. */ |
| 12039 | #ifdef __STDC__ |
| 12040 | # include <limits.h> |
| 12041 | #else |
| 12042 | # include <assert.h> |
| 12043 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12044 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12045 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12046 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12047 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12048 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12049 | # Broken: fails on valid input. |
| 12050 | continue |
| 12051 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12052 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12053 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12054 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12055 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12057 | /* end confdefs.h. */ |
| 12058 | #include <ac_nonexistent.h> |
| 12059 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12060 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12061 | # Broken: success on invalid input. |
| 12062 | continue |
| 12063 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12064 | # Passes both tests. |
| 12065 | ac_preproc_ok=: |
| 12066 | break |
| 12067 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12068 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12069 | |
| 12070 | done |
| 12071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12072 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12073 | if $ac_preproc_ok; then : |
| 12074 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12075 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12076 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12077 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12078 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 12079 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12080 | fi |
| 12081 | |
| 12082 | ac_ext=c |
| 12083 | ac_cpp='$CPP $CPPFLAGS' |
| 12084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12087 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12088 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12089 | { $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] | 12090 | $as_echo_n "checking whether ln -s works... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12091 | LN_S=$as_ln_s |
| 12092 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12094 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12095 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12096 | { $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] | 12097 | $as_echo "no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12098 | fi |
| 12099 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12100 | { $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] | 12101 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 12102 | set x ${MAKE-make} |
| 12103 | 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] | 12104 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12105 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12106 | else |
| 12107 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12108 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12109 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12110 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12111 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12112 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12113 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 12114 | *@@@%%%=?*=@@@%%%*) |
| 12115 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 12116 | *) |
| 12117 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 12118 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12119 | rm -f conftest.make |
| 12120 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12121 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12123 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12124 | SET_MAKE= |
| 12125 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12127 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12128 | SET_MAKE="MAKE=${MAKE-make}" |
| 12129 | fi |
| 12130 | |
| 12131 | for ac_prog in 'bison -y' byacc |
| 12132 | do |
| 12133 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12134 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12136 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12137 | if ${ac_cv_prog_YACC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12138 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12139 | else |
| 12140 | if test -n "$YACC"; then |
| 12141 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 12142 | else |
| 12143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12144 | for as_dir in $PATH |
| 12145 | do |
| 12146 | IFS=$as_save_IFS |
| 12147 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12149 | 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] | 12150 | ac_cv_prog_YACC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12151 | $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] | 12152 | break 2 |
| 12153 | fi |
| 12154 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12155 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12156 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12157 | |
| 12158 | fi |
| 12159 | fi |
| 12160 | YACC=$ac_cv_prog_YACC |
| 12161 | if test -n "$YACC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12163 | $as_echo "$YACC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12164 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12166 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12167 | fi |
| 12168 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12169 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12170 | test -n "$YACC" && break |
| 12171 | done |
| 12172 | test -n "$YACC" || YACC="yacc" |
| 12173 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12174 | for ac_prog in flex lex |
| 12175 | do |
| 12176 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12177 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12179 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12180 | if ${ac_cv_prog_LEX+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12181 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12182 | else |
| 12183 | if test -n "$LEX"; then |
| 12184 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 12185 | else |
| 12186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12187 | for as_dir in $PATH |
| 12188 | do |
| 12189 | IFS=$as_save_IFS |
| 12190 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12192 | 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] | 12193 | ac_cv_prog_LEX="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12194 | $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] | 12195 | break 2 |
| 12196 | fi |
| 12197 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12198 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12199 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12200 | |
| 12201 | fi |
| 12202 | fi |
| 12203 | LEX=$ac_cv_prog_LEX |
| 12204 | if test -n "$LEX"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12206 | $as_echo "$LEX" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12207 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12209 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12212 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12213 | test -n "$LEX" && break |
| 12214 | done |
| 12215 | test -n "$LEX" || LEX=":" |
| 12216 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12217 | if test "x$LEX" != "x:"; then |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12218 | cat >conftest.l <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12219 | %% |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12220 | a { ECHO; } |
| 12221 | b { REJECT; } |
| 12222 | c { yymore (); } |
| 12223 | d { yyless (1); } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12224 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
| 12225 | yyless ((input () != 0)); } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12226 | f { unput (yytext[0]); } |
| 12227 | . { BEGIN INITIAL; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12228 | %% |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12229 | #ifdef YYTEXT_POINTER |
| 12230 | extern char *yytext; |
| 12231 | #endif |
| 12232 | int |
| 12233 | main (void) |
| 12234 | { |
| 12235 | return ! yylex () + ! yywrap (); |
| 12236 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12237 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12238 | { { ac_try="$LEX conftest.l" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12239 | case "(($ac_try" in |
| 12240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12241 | *) ac_try_echo=$ac_try;; |
| 12242 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12243 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12244 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12245 | (eval "$LEX conftest.l") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12246 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12248 | test $ac_status = 0; } |
| 12249 | { $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] | 12250 | $as_echo_n "checking lex output file root... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12251 | if ${ac_cv_prog_lex_root+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12252 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12253 | else |
| 12254 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12255 | if test -f lex.yy.c; then |
| 12256 | ac_cv_prog_lex_root=lex.yy |
| 12257 | elif test -f lexyy.c; then |
| 12258 | ac_cv_prog_lex_root=lexyy |
| 12259 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12260 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12261 | fi |
| 12262 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12263 | { $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] | 12264 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12265 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 12266 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12267 | if test -z "${LEXLIB+set}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12269 | $as_echo_n "checking lex library... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12270 | if ${ac_cv_lib_lex+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12271 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12272 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12273 | |
| 12274 | ac_save_LIBS=$LIBS |
| 12275 | ac_cv_lib_lex='none needed' |
| 12276 | for ac_lib in '' -lfl -ll; do |
| 12277 | LIBS="$ac_lib $ac_save_LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12279 | /* end confdefs.h. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12280 | `cat $LEX_OUTPUT_ROOT.c` |
| 12281 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12282 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12283 | ac_cv_lib_lex=$ac_lib |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12284 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12285 | rm -f core conftest.err conftest.$ac_objext \ |
| 12286 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12287 | test "$ac_cv_lib_lex" != 'none needed' && break |
| 12288 | done |
| 12289 | LIBS=$ac_save_LIBS |
| 12290 | |
| 12291 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12292 | { $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] | 12293 | $as_echo "$ac_cv_lib_lex" >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12294 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
| 12295 | fi |
| 12296 | |
| 12297 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12298 | { $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] | 12299 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12300 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12301 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12302 | else |
| 12303 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 12304 | # default is implementation-dependent. Figure out which it is, since |
| 12305 | # not all implementations provide the %pointer and %array declarations. |
| 12306 | ac_cv_prog_lex_yytext_pointer=no |
| 12307 | ac_save_LIBS=$LIBS |
| 12308 | LIBS="$LEXLIB $ac_save_LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12310 | /* end confdefs.h. */ |
| 12311 | |
| 12312 | #define YYTEXT_POINTER 1 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12313 | `cat $LEX_OUTPUT_ROOT.c` |
| 12314 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12315 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12316 | ac_cv_prog_lex_yytext_pointer=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12317 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12318 | rm -f core conftest.err conftest.$ac_objext \ |
| 12319 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12320 | LIBS=$ac_save_LIBS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12321 | |
| 12322 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12323 | { $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] | 12324 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12325 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 12326 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12327 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12328 | |
| 12329 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12330 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12331 | |
| 12332 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12333 | if test "$LEX" = :; then |
| 12334 | LEX=${am_missing_run}flex |
| 12335 | fi |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12336 | # Extract the first word of "ar", so it can be a program name with args. |
| 12337 | set dummy ar; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12339 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12340 | if ${ac_cv_path_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12341 | $as_echo_n "(cached) " >&6 |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12342 | else |
| 12343 | case $AR in |
| 12344 | [\\/]* | ?:[\\/]*) |
| 12345 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 12346 | ;; |
| 12347 | *) |
| 12348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12349 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 12350 | for as_dir in $as_dummy |
| 12351 | do |
| 12352 | IFS=$as_save_IFS |
| 12353 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12355 | 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] | 12356 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12357 | $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] | 12358 | break 2 |
| 12359 | fi |
| 12360 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12361 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12362 | IFS=$as_save_IFS |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12363 | |
| 12364 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 12365 | ;; |
| 12366 | esac |
| 12367 | fi |
| 12368 | AR=$ac_cv_path_AR |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12369 | if test -n "$AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12371 | $as_echo "$AR" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12372 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12374 | $as_echo "no" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12375 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12376 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12377 | |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 12378 | case "$host_os" in |
Lev Walkin | 7943230 | 2006-03-18 06:39:49 +0000 | [diff] [blame] | 12379 | cygwin) |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 12380 | case "$target" in |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 12381 | *mingw*) |
| 12382 | CC="$CC -mno-cygwin" |
| 12383 | esac |
| 12384 | ;; |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 12385 | esac |
| 12386 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12387 | # Check whether --enable-Werror was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12388 | if test "${enable_Werror+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12389 | enableval=$enable_Werror; enable_werror=$enableval |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12390 | else |
| 12391 | enable_werror=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12392 | fi |
| 12393 | |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12394 | if test x$enable_werror = xyes; then |
Lev Walkin | f84cc01 | 2014-01-14 02:12:24 -0800 | [diff] [blame] | 12395 | TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith" |
Lev Walkin | ea55215 | 2014-01-14 02:15:13 -0800 | [diff] [blame] | 12396 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12397 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12398 | |
| 12399 | |
Lev Walkin | ea55215 | 2014-01-14 02:15:13 -0800 | [diff] [blame] | 12400 | |
Lev Walkin | f84cc01 | 2014-01-14 02:12:24 -0800 | [diff] [blame] | 12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 |
| 12402 | $as_echo_n "checking whether C compiler accepts -Wall... " >&6; } |
| 12403 | if ${ax_cv_check_cflags___Wall+:} false; then : |
| 12404 | $as_echo_n "(cached) " >&6 |
| 12405 | else |
| 12406 | |
| 12407 | ax_check_save_flags=$CFLAGS |
| 12408 | CFLAGS="$CFLAGS -Wall" |
| 12409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12410 | /* end confdefs.h. */ |
| 12411 | |
| 12412 | int |
| 12413 | main () |
| 12414 | { |
| 12415 | |
| 12416 | ; |
| 12417 | return 0; |
| 12418 | } |
| 12419 | _ACEOF |
| 12420 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12421 | ax_cv_check_cflags___Wall=yes |
| 12422 | else |
| 12423 | ax_cv_check_cflags___Wall=no |
| 12424 | fi |
| 12425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12426 | CFLAGS=$ax_check_save_flags |
| 12427 | fi |
| 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5 |
| 12429 | $as_echo "$ax_cv_check_cflags___Wall" >&6; } |
| 12430 | if test x"$ax_cv_check_cflags___Wall" = xyes; then : |
| 12431 | CFLAGS="$CFLAGS -Wall" |
| 12432 | else |
| 12433 | : |
| 12434 | fi |
| 12435 | |
| 12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5 |
| 12437 | $as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; } |
| 12438 | if ${ax_cv_check_cflags___Wcast_qual+:} false; then : |
| 12439 | $as_echo_n "(cached) " >&6 |
| 12440 | else |
| 12441 | |
| 12442 | ax_check_save_flags=$CFLAGS |
| 12443 | CFLAGS="$CFLAGS -Wcast-qual" |
| 12444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12445 | /* end confdefs.h. */ |
| 12446 | |
| 12447 | int |
| 12448 | main () |
| 12449 | { |
| 12450 | |
| 12451 | ; |
| 12452 | return 0; |
| 12453 | } |
| 12454 | _ACEOF |
| 12455 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12456 | ax_cv_check_cflags___Wcast_qual=yes |
| 12457 | else |
| 12458 | ax_cv_check_cflags___Wcast_qual=no |
| 12459 | fi |
| 12460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12461 | CFLAGS=$ax_check_save_flags |
| 12462 | fi |
| 12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5 |
| 12464 | $as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; } |
| 12465 | if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then : |
| 12466 | CFLAGS="$CFLAGS -Wcast-qual" |
| 12467 | else |
| 12468 | : |
| 12469 | fi |
| 12470 | |
| 12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5 |
| 12472 | $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; } |
| 12473 | if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then : |
| 12474 | $as_echo_n "(cached) " >&6 |
| 12475 | else |
| 12476 | |
| 12477 | ax_check_save_flags=$CFLAGS |
| 12478 | CFLAGS="$CFLAGS -Wchar-subscripts" |
| 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12480 | /* end confdefs.h. */ |
| 12481 | |
| 12482 | int |
| 12483 | main () |
| 12484 | { |
| 12485 | |
| 12486 | ; |
| 12487 | return 0; |
| 12488 | } |
| 12489 | _ACEOF |
| 12490 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12491 | ax_cv_check_cflags___Wchar_subscripts=yes |
| 12492 | else |
| 12493 | ax_cv_check_cflags___Wchar_subscripts=no |
| 12494 | fi |
| 12495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12496 | CFLAGS=$ax_check_save_flags |
| 12497 | fi |
| 12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5 |
| 12499 | $as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; } |
| 12500 | if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then : |
| 12501 | CFLAGS="$CFLAGS -Wchar-subscripts" |
| 12502 | else |
| 12503 | : |
| 12504 | fi |
| 12505 | |
| 12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5 |
| 12507 | $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; } |
| 12508 | if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then : |
| 12509 | $as_echo_n "(cached) " >&6 |
| 12510 | else |
| 12511 | |
| 12512 | ax_check_save_flags=$CFLAGS |
| 12513 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 12514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12515 | /* end confdefs.h. */ |
| 12516 | |
| 12517 | int |
| 12518 | main () |
| 12519 | { |
| 12520 | |
| 12521 | ; |
| 12522 | return 0; |
| 12523 | } |
| 12524 | _ACEOF |
| 12525 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12526 | ax_cv_check_cflags___Wmissing_prototypes=yes |
| 12527 | else |
| 12528 | ax_cv_check_cflags___Wmissing_prototypes=no |
| 12529 | fi |
| 12530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12531 | CFLAGS=$ax_check_save_flags |
| 12532 | fi |
| 12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5 |
| 12534 | $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; } |
| 12535 | if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then : |
| 12536 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 12537 | else |
| 12538 | : |
| 12539 | fi |
| 12540 | |
| 12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5 |
| 12542 | $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; } |
| 12543 | if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then : |
| 12544 | $as_echo_n "(cached) " >&6 |
| 12545 | else |
| 12546 | |
| 12547 | ax_check_save_flags=$CFLAGS |
| 12548 | CFLAGS="$CFLAGS -Wmissing-declarations" |
| 12549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12550 | /* end confdefs.h. */ |
| 12551 | |
| 12552 | int |
| 12553 | main () |
| 12554 | { |
| 12555 | |
| 12556 | ; |
| 12557 | return 0; |
| 12558 | } |
| 12559 | _ACEOF |
| 12560 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12561 | ax_cv_check_cflags___Wmissing_declarations=yes |
| 12562 | else |
| 12563 | ax_cv_check_cflags___Wmissing_declarations=no |
| 12564 | fi |
| 12565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12566 | CFLAGS=$ax_check_save_flags |
| 12567 | fi |
| 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5 |
| 12569 | $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; } |
| 12570 | if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then : |
| 12571 | CFLAGS="$CFLAGS -Wmissing-declarations" |
| 12572 | else |
| 12573 | : |
| 12574 | fi |
| 12575 | |
| 12576 | |
| 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5 |
| 12578 | $as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; } |
| 12579 | if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then : |
| 12580 | $as_echo_n "(cached) " >&6 |
| 12581 | else |
| 12582 | |
| 12583 | ax_check_save_flags=$CFLAGS |
| 12584 | CFLAGS="$CFLAGS -Wno-error=cast-align" |
| 12585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12586 | /* end confdefs.h. */ |
| 12587 | |
| 12588 | int |
| 12589 | main () |
| 12590 | { |
| 12591 | |
| 12592 | ; |
| 12593 | return 0; |
| 12594 | } |
| 12595 | _ACEOF |
| 12596 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12597 | ax_cv_check_cflags___Wno_error_cast_align=yes |
| 12598 | else |
| 12599 | ax_cv_check_cflags___Wno_error_cast_align=no |
| 12600 | fi |
| 12601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12602 | CFLAGS=$ax_check_save_flags |
| 12603 | fi |
| 12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5 |
| 12605 | $as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; } |
| 12606 | if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then : |
| 12607 | CFLAGS="$CFLAGS -Wno-error=cast-align" |
| 12608 | else |
| 12609 | : |
| 12610 | fi |
| 12611 | |
| 12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5 |
| 12613 | $as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; } |
| 12614 | if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then : |
| 12615 | $as_echo_n "(cached) " >&6 |
| 12616 | else |
| 12617 | |
| 12618 | ax_check_save_flags=$CFLAGS |
| 12619 | CFLAGS="$CFLAGS -Wno-error=visibility" |
| 12620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12621 | /* end confdefs.h. */ |
| 12622 | |
| 12623 | int |
| 12624 | main () |
| 12625 | { |
| 12626 | |
| 12627 | ; |
| 12628 | return 0; |
| 12629 | } |
| 12630 | _ACEOF |
| 12631 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12632 | ax_cv_check_cflags___Wno_error_visibility=yes |
| 12633 | else |
| 12634 | ax_cv_check_cflags___Wno_error_visibility=no |
| 12635 | fi |
| 12636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12637 | CFLAGS=$ax_check_save_flags |
| 12638 | fi |
| 12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5 |
| 12640 | $as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; } |
| 12641 | if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then : |
| 12642 | CFLAGS="$CFLAGS -Wno-error=visibility" |
| 12643 | else |
| 12644 | : |
| 12645 | fi |
| 12646 | |
| 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5 |
| 12648 | $as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; } |
| 12649 | if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then : |
| 12650 | $as_echo_n "(cached) " >&6 |
| 12651 | else |
| 12652 | |
| 12653 | ax_check_save_flags=$CFLAGS |
| 12654 | CFLAGS="$CFLAGS -Wno-error=parentheses-equality" |
| 12655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12656 | /* end confdefs.h. */ |
| 12657 | |
| 12658 | int |
| 12659 | main () |
| 12660 | { |
| 12661 | |
| 12662 | ; |
| 12663 | return 0; |
| 12664 | } |
| 12665 | _ACEOF |
| 12666 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12667 | ax_cv_check_cflags___Wno_error_parentheses_equality=yes |
| 12668 | else |
| 12669 | ax_cv_check_cflags___Wno_error_parentheses_equality=no |
| 12670 | fi |
| 12671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12672 | CFLAGS=$ax_check_save_flags |
| 12673 | fi |
| 12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5 |
| 12675 | $as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; } |
| 12676 | if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then : |
| 12677 | CFLAGS="$CFLAGS -Wno-error=parentheses-equality" |
| 12678 | else |
| 12679 | : |
| 12680 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12681 | |
| 12682 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12683 | { $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] | 12684 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12685 | if ${ac_cv_header_stdc+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12686 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12687 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12689 | /* end confdefs.h. */ |
| 12690 | #include <stdlib.h> |
| 12691 | #include <stdarg.h> |
| 12692 | #include <string.h> |
| 12693 | #include <float.h> |
| 12694 | |
| 12695 | int |
| 12696 | main () |
| 12697 | { |
| 12698 | |
| 12699 | ; |
| 12700 | return 0; |
| 12701 | } |
| 12702 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12703 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12704 | ac_cv_header_stdc=yes |
| 12705 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12706 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12707 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12709 | |
| 12710 | if test $ac_cv_header_stdc = yes; then |
| 12711 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12713 | /* end confdefs.h. */ |
| 12714 | #include <string.h> |
| 12715 | |
| 12716 | _ACEOF |
| 12717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12718 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 12719 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12720 | else |
| 12721 | ac_cv_header_stdc=no |
| 12722 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12723 | rm -f conftest* |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12724 | |
| 12725 | fi |
| 12726 | |
| 12727 | if test $ac_cv_header_stdc = yes; then |
| 12728 | # 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] | 12729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12730 | /* end confdefs.h. */ |
| 12731 | #include <stdlib.h> |
| 12732 | |
| 12733 | _ACEOF |
| 12734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12735 | $EGREP "free" >/dev/null 2>&1; then : |
| 12736 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12737 | else |
| 12738 | ac_cv_header_stdc=no |
| 12739 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12740 | rm -f conftest* |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12741 | |
| 12742 | fi |
| 12743 | |
| 12744 | if test $ac_cv_header_stdc = yes; then |
| 12745 | # /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] | 12746 | if test "$cross_compiling" = yes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12747 | : |
| 12748 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12750 | /* end confdefs.h. */ |
| 12751 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12752 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12753 | #if ((' ' & 0x0FF) == 0x020) |
| 12754 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 12755 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 12756 | #else |
| 12757 | # define ISLOWER(c) \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12758 | (('a' <= (c) && (c) <= 'i') \ |
| 12759 | || ('j' <= (c) && (c) <= 'r') \ |
| 12760 | || ('s' <= (c) && (c) <= 'z')) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12761 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 12762 | #endif |
| 12763 | |
| 12764 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 12765 | int |
| 12766 | main () |
| 12767 | { |
| 12768 | int i; |
| 12769 | for (i = 0; i < 256; i++) |
| 12770 | if (XOR (islower (i), ISLOWER (i)) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12771 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12772 | return 2; |
| 12773 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12774 | } |
| 12775 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12776 | if ac_fn_c_try_run "$LINENO"; then : |
| 12777 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12778 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12779 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12780 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12782 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12783 | fi |
| 12784 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12785 | fi |
| 12786 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12787 | { $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] | 12788 | $as_echo "$ac_cv_header_stdc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12789 | if test $ac_cv_header_stdc = yes; then |
| 12790 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12791 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12792 | |
| 12793 | fi |
| 12794 | |
Lev Walkin | 79f5495 | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 12795 | for ac_header in sys/param.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12796 | do : |
| 12797 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 12798 | if test "x$ac_cv_header_sys_param_h" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12799 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12800 | #define HAVE_SYS_PARAM_H 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12801 | _ACEOF |
| 12802 | |
| 12803 | fi |
| 12804 | |
| 12805 | done |
| 12806 | |
| 12807 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12808 | { $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] | 12809 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12810 | if ${ac_cv_c_bigendian+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12811 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12812 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12813 | ac_cv_c_bigendian=unknown |
| 12814 | # See if we're dealing with a universal compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12816 | /* end confdefs.h. */ |
| 12817 | #ifndef __APPLE_CC__ |
| 12818 | not a universal capable compiler |
| 12819 | #endif |
| 12820 | typedef int dummy; |
| 12821 | |
| 12822 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12823 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12824 | |
| 12825 | # Check for potential -arch flags. It is not universal unless |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12826 | # there are at least two -arch flags with different values. |
| 12827 | ac_arch= |
| 12828 | ac_prev= |
| 12829 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12830 | if test -n "$ac_prev"; then |
| 12831 | case $ac_word in |
| 12832 | i?86 | x86_64 | ppc | ppc64) |
| 12833 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12834 | ac_arch=$ac_word |
| 12835 | else |
| 12836 | ac_cv_c_bigendian=universal |
| 12837 | break |
| 12838 | fi |
| 12839 | ;; |
| 12840 | esac |
| 12841 | ac_prev= |
| 12842 | elif test "x$ac_word" = "x-arch"; then |
| 12843 | ac_prev=arch |
| 12844 | fi |
| 12845 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12846 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12848 | if test $ac_cv_c_bigendian = unknown; then |
| 12849 | # See if sys/param.h defines the BYTE_ORDER macro. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12851 | /* end confdefs.h. */ |
| 12852 | #include <sys/types.h> |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12853 | #include <sys/param.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12854 | |
| 12855 | int |
| 12856 | main () |
| 12857 | { |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12858 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12859 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12860 | && LITTLE_ENDIAN) |
| 12861 | bogus endian macros |
| 12862 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12863 | |
| 12864 | ; |
| 12865 | return 0; |
| 12866 | } |
| 12867 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12868 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12869 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12871 | /* end confdefs.h. */ |
| 12872 | #include <sys/types.h> |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12873 | #include <sys/param.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12874 | |
| 12875 | int |
| 12876 | main () |
| 12877 | { |
| 12878 | #if BYTE_ORDER != BIG_ENDIAN |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12879 | not big endian |
| 12880 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12881 | |
| 12882 | ; |
| 12883 | return 0; |
| 12884 | } |
| 12885 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12886 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12887 | ac_cv_c_bigendian=yes |
| 12888 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12889 | ac_cv_c_bigendian=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12890 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12892 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12894 | fi |
| 12895 | if test $ac_cv_c_bigendian = unknown; then |
| 12896 | # 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] | 12897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12898 | /* end confdefs.h. */ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12899 | #include <limits.h> |
| 12900 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12901 | int |
| 12902 | main () |
| 12903 | { |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12904 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12905 | bogus endian macros |
| 12906 | #endif |
| 12907 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12908 | ; |
| 12909 | return 0; |
| 12910 | } |
| 12911 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12912 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12913 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12915 | /* end confdefs.h. */ |
| 12916 | #include <limits.h> |
| 12917 | |
| 12918 | int |
| 12919 | main () |
| 12920 | { |
| 12921 | #ifndef _BIG_ENDIAN |
| 12922 | not big endian |
| 12923 | #endif |
| 12924 | |
| 12925 | ; |
| 12926 | return 0; |
| 12927 | } |
| 12928 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12929 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12930 | ac_cv_c_bigendian=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12931 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12932 | ac_cv_c_bigendian=no |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12933 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12935 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12937 | fi |
| 12938 | if test $ac_cv_c_bigendian = unknown; then |
| 12939 | # Compile a test program. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12940 | if test "$cross_compiling" = yes; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12941 | # Try to guess by grepping values from an object file. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12943 | /* end confdefs.h. */ |
| 12944 | short int ascii_mm[] = |
| 12945 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12946 | short int ascii_ii[] = |
| 12947 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12948 | int use_ascii (int i) { |
| 12949 | return ascii_mm[i] + ascii_ii[i]; |
| 12950 | } |
| 12951 | short int ebcdic_ii[] = |
| 12952 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12953 | short int ebcdic_mm[] = |
| 12954 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12955 | int use_ebcdic (int i) { |
| 12956 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12957 | } |
| 12958 | extern int foo; |
| 12959 | |
| 12960 | int |
| 12961 | main () |
| 12962 | { |
| 12963 | return use_ascii (foo) == use_ebcdic (foo); |
| 12964 | ; |
| 12965 | return 0; |
| 12966 | } |
| 12967 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12968 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12969 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12970 | ac_cv_c_bigendian=yes |
| 12971 | fi |
| 12972 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12973 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12974 | ac_cv_c_bigendian=no |
| 12975 | else |
| 12976 | # finding both strings is unlikely to happen, but who knows? |
| 12977 | ac_cv_c_bigendian=unknown |
| 12978 | fi |
| 12979 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12980 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12982 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12984 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12985 | $ac_includes_default |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12986 | int |
| 12987 | main () |
| 12988 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12989 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12990 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12991 | union |
| 12992 | { |
| 12993 | long int l; |
| 12994 | char c[sizeof (long int)]; |
| 12995 | } u; |
| 12996 | u.l = 1; |
| 12997 | return u.c[sizeof (long int) - 1] == 1; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12998 | |
| 12999 | ; |
| 13000 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13001 | } |
| 13002 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13003 | if ac_fn_c_try_run "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13004 | ac_cv_c_bigendian=no |
| 13005 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13006 | ac_cv_c_bigendian=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13007 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13009 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13010 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13011 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13012 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13013 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13014 | { $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] | 13015 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 13016 | case $ac_cv_c_bigendian in #( |
| 13017 | yes) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13018 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13019 | ;; #( |
| 13020 | no) |
| 13021 | ;; #( |
| 13022 | universal) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13023 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13024 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13025 | |
| 13026 | ;; #( |
| 13027 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13028 | as_fn_error $? "unknown endianness |
| 13029 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13030 | esac |
| 13031 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13032 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 13033 | if test "x$ac_cv_type_off_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13034 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13035 | else |
| 13036 | |
| 13037 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13038 | #define off_t long int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13039 | _ACEOF |
| 13040 | |
| 13041 | fi |
| 13042 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13043 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 13044 | if test "x$ac_cv_type_size_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13045 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13046 | else |
| 13047 | |
| 13048 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13049 | #define size_t unsigned int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13050 | _ACEOF |
| 13051 | |
| 13052 | fi |
| 13053 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13054 | { $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] | 13055 | $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] | 13056 | if ${ac_cv_struct_tm+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13057 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13058 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13060 | /* end confdefs.h. */ |
| 13061 | #include <sys/types.h> |
| 13062 | #include <time.h> |
| 13063 | |
| 13064 | int |
| 13065 | main () |
| 13066 | { |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13067 | struct tm tm; |
| 13068 | int *p = &tm.tm_sec; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13069 | return !p; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13070 | ; |
| 13071 | return 0; |
| 13072 | } |
| 13073 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13074 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13075 | ac_cv_struct_tm=time.h |
| 13076 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13077 | ac_cv_struct_tm=sys/time.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13078 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13080 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13081 | { $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] | 13082 | $as_echo "$ac_cv_struct_tm" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13083 | if test $ac_cv_struct_tm = sys/time.h; then |
| 13084 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13085 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13086 | |
| 13087 | fi |
| 13088 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13089 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 13090 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13091 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13092 | else |
| 13093 | |
| 13094 | cat >>confdefs.h <<_ACEOF |
| 13095 | #define intmax_t int64_t |
| 13096 | _ACEOF |
| 13097 | |
| 13098 | fi |
| 13099 | |
| 13100 | |
Lev Walkin | b40ec41 | 2014-02-24 00:57:18 -0800 | [diff] [blame] | 13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long is longer than 32 bit" >&5 |
| 13102 | $as_echo_n "checking size of long is longer than 32 bit... " >&6; } |
| 13103 | |
| 13104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13105 | /* end confdefs.h. */ |
| 13106 | #include "confdefs.h" |
| 13107 | #include <sys/types.h> |
| 13108 | |
| 13109 | int |
| 13110 | main () |
| 13111 | { |
| 13112 | switch (0) case 0: case (sizeof ($1) >= 8):; |
| 13113 | ; |
| 13114 | return 0; |
| 13115 | } |
| 13116 | _ACEOF |
| 13117 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13118 | WIDE_LONG=yes |
| 13119 | else |
| 13120 | WIDE_LONG=no |
| 13121 | fi |
| 13122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDE_LONG" >&5 |
| 13124 | $as_echo "$WIDE_LONG" >&6; } |
| 13125 | if test x$WIDE_LONG = xyes; then |
| 13126 | TEST_64BIT_TRUE= |
| 13127 | TEST_64BIT_FALSE='#' |
| 13128 | else |
| 13129 | TEST_64BIT_TRUE='#' |
| 13130 | TEST_64BIT_FALSE= |
| 13131 | fi |
| 13132 | |
| 13133 | |
| 13134 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13135 | { $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] | 13136 | $as_echo_n "checking for library containing getopt... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13137 | if ${ac_cv_search_getopt+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13138 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13139 | else |
| 13140 | ac_func_search_save_LIBS=$LIBS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13142 | /* end confdefs.h. */ |
| 13143 | |
| 13144 | /* Override any GCC internal prototype to avoid an error. |
| 13145 | Use char because int might match the return type of a GCC |
| 13146 | builtin and then its argument prototype would still apply. */ |
| 13147 | #ifdef __cplusplus |
| 13148 | extern "C" |
| 13149 | #endif |
| 13150 | char getopt (); |
| 13151 | int |
| 13152 | main () |
| 13153 | { |
| 13154 | return getopt (); |
| 13155 | ; |
| 13156 | return 0; |
| 13157 | } |
| 13158 | _ACEOF |
| 13159 | for ac_lib in '' iberty; do |
| 13160 | if test -z "$ac_lib"; then |
| 13161 | ac_res="none required" |
| 13162 | else |
| 13163 | ac_res=-l$ac_lib |
| 13164 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13165 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13166 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13167 | ac_cv_search_getopt=$ac_res |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13168 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13169 | rm -f core conftest.err conftest.$ac_objext \ |
| 13170 | conftest$ac_exeext |
| 13171 | if ${ac_cv_search_getopt+:} false; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13172 | break |
| 13173 | fi |
| 13174 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13175 | if ${ac_cv_search_getopt+:} false; then : |
| 13176 | |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13177 | else |
| 13178 | ac_cv_search_getopt=no |
| 13179 | fi |
| 13180 | rm conftest.$ac_ext |
| 13181 | LIBS=$ac_func_search_save_LIBS |
| 13182 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13183 | { $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] | 13184 | $as_echo "$ac_cv_search_getopt" >&6; } |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13185 | ac_res=$ac_cv_search_getopt |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13186 | if test "$ac_res" != no; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13187 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13188 | |
| 13189 | fi |
| 13190 | |
| 13191 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13192 | for ac_func in strtoimax strtoll |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13193 | do : |
| 13194 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13195 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13196 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13197 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13198 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13199 | _ACEOF |
| 13200 | |
| 13201 | fi |
| 13202 | done |
| 13203 | |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13204 | for ac_func in mergesort |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13205 | do : |
| 13206 | ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort" |
| 13207 | if test "x$ac_cv_func_mergesort" = xyes; then : |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13208 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13209 | #define HAVE_MERGESORT 1 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13210 | _ACEOF |
| 13211 | |
| 13212 | fi |
| 13213 | done |
| 13214 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13215 | for ac_func in mkstemps |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13216 | do : |
| 13217 | ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" |
| 13218 | if test "x$ac_cv_func_mkstemps" = xyes; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13219 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13220 | #define HAVE_MKSTEMPS 1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13221 | _ACEOF |
| 13222 | |
| 13223 | fi |
| 13224 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13225 | |
| 13226 | |
Lev Walkin | 69b4f12 | 2012-09-04 01:37:14 -0700 | [diff] [blame] | 13227 | ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13228 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13229 | cat >confcache <<\_ACEOF |
| 13230 | # This file is a shell script that caches the results of configure |
| 13231 | # tests run on this system so they can be shared between configure |
| 13232 | # scripts and configure runs, see configure's option --config-cache. |
| 13233 | # It is not useful on other systems. If it contains results you don't |
| 13234 | # want to keep, you may remove or edit it. |
| 13235 | # |
| 13236 | # config.status only pays attention to the cache file if you give it |
| 13237 | # the --recheck option to rerun configure. |
| 13238 | # |
| 13239 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13240 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13241 | # following values. |
| 13242 | |
| 13243 | _ACEOF |
| 13244 | |
| 13245 | # The following way of writing the cache mishandles newlines in values, |
| 13246 | # but we know of no workaround that is simple, portable, and efficient. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13247 | # So, we kill variables containing newlines. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13248 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13249 | # 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] | 13250 | ( |
| 13251 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13252 | eval ac_val=\$$ac_var |
| 13253 | case $ac_val in #( |
| 13254 | *${as_nl}*) |
| 13255 | case $ac_var in #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13256 | *_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] | 13257 | $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] | 13258 | esac |
| 13259 | case $ac_var in #( |
| 13260 | _ | IFS | as_nl) ;; #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13261 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13262 | *) { eval $ac_var=; unset $ac_var;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13263 | esac ;; |
| 13264 | esac |
| 13265 | done |
| 13266 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13267 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13268 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13269 | *${as_nl}ac_space=\ *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13270 | # `set' does not quote correctly, so add quotes: double-quote |
| 13271 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13272 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13273 | "s/'/'\\\\''/g; |
| 13274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13275 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13276 | *) |
| 13277 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13278 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13279 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13280 | esac | |
| 13281 | sort |
| 13282 | ) | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13283 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13284 | /^ac_cv_env_/b end |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13285 | t clear |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13286 | :clear |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13287 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13288 | t end |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13289 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13290 | :end' >>confcache |
| 13291 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13292 | if test -w "$cache_file"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13293 | if test "x$cache_file" != "x/dev/null"; then |
| 13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13295 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13296 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13297 | cat confcache >"$cache_file" |
| 13298 | else |
| 13299 | case $cache_file in #( |
| 13300 | */* | ?:*) |
| 13301 | mv -f confcache "$cache_file"$$ && |
| 13302 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13303 | *) |
| 13304 | mv -f confcache "$cache_file" ;; |
| 13305 | esac |
| 13306 | fi |
| 13307 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13308 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13309 | { $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] | 13310 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13311 | fi |
| 13312 | fi |
| 13313 | rm -f confcache |
| 13314 | |
| 13315 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13316 | # Let make expand exec_prefix. |
| 13317 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13318 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13319 | DEFS=-DHAVE_CONFIG_H |
| 13320 | |
| 13321 | ac_libobjs= |
| 13322 | ac_ltlibobjs= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13323 | U= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13324 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13325 | # 1. Remove the extension, and $U if already installed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13326 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13327 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13328 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13329 | # will be set to the directory where LIBOBJS objects are built. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13330 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13331 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13332 | done |
| 13333 | LIBOBJS=$ac_libobjs |
| 13334 | |
| 13335 | LTLIBOBJS=$ac_ltlibobjs |
| 13336 | |
| 13337 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13338 | if test -n "$EXEEXT"; then |
| 13339 | am__EXEEXT_TRUE= |
| 13340 | am__EXEEXT_FALSE='#' |
| 13341 | else |
| 13342 | am__EXEEXT_TRUE='#' |
| 13343 | am__EXEEXT_FALSE= |
| 13344 | fi |
| 13345 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13346 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13347 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 13348 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13349 | fi |
| 13350 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13351 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 13352 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13353 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13354 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13355 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 13356 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13357 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13358 | |
Lev Walkin | b40ec41 | 2014-02-24 00:57:18 -0800 | [diff] [blame] | 13359 | if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then |
| 13360 | as_fn_error $? "conditional \"TEST_64BIT\" was never defined. |
| 13361 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13362 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13363 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13364 | : "${CONFIG_STATUS=./config.status}" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13365 | ac_write_fail=0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13366 | ac_clean_files_save=$ac_clean_files |
| 13367 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13369 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13370 | as_write_fail=0 |
| 13371 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13372 | #! $SHELL |
| 13373 | # Generated by $as_me. |
| 13374 | # Run this file to recreate the current configuration. |
| 13375 | # Compiler output produced by configure, useful for debugging |
| 13376 | # configure, is in config.log if it exists. |
| 13377 | |
| 13378 | debug=false |
| 13379 | ac_cs_recheck=false |
| 13380 | ac_cs_silent=false |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13381 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13382 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13383 | export SHELL |
| 13384 | _ASEOF |
| 13385 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13386 | ## -------------------- ## |
| 13387 | ## M4sh Initialization. ## |
| 13388 | ## -------------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13389 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13390 | # Be more Bourne compatible |
| 13391 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13392 | 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] | 13393 | emulate sh |
| 13394 | NULLCMD=: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13395 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13396 | # is contrary to our usage. Disable this feature. |
| 13397 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13398 | setopt NO_GLOB_SUBST |
| 13399 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13400 | case `(set -o) 2>/dev/null` in #( |
| 13401 | *posix*) : |
| 13402 | set -o posix ;; #( |
| 13403 | *) : |
| 13404 | ;; |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13405 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13406 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13407 | |
| 13408 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13409 | as_nl=' |
| 13410 | ' |
| 13411 | export as_nl |
| 13412 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13413 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13414 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13415 | 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] | 13416 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13417 | # but without wasting forks for bash or zsh. |
| 13418 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13419 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13420 | as_echo='print -r --' |
| 13421 | as_echo_n='print -rn --' |
| 13422 | 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] | 13423 | as_echo='printf %s\n' |
| 13424 | as_echo_n='printf %s' |
| 13425 | else |
| 13426 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13427 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13428 | as_echo_n='/usr/ucb/echo -n' |
| 13429 | else |
| 13430 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13431 | as_echo_n_body='eval |
| 13432 | arg=$1; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13433 | case $arg in #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13434 | *"$as_nl"*) |
| 13435 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13436 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13437 | esac; |
| 13438 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13439 | ' |
| 13440 | export as_echo_n_body |
| 13441 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13442 | fi |
| 13443 | export as_echo_body |
| 13444 | as_echo='sh -c $as_echo_body as_echo' |
| 13445 | fi |
| 13446 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13447 | # The user is always right. |
| 13448 | if test "${PATH_SEPARATOR+set}" != set; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13449 | PATH_SEPARATOR=: |
| 13450 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13451 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13452 | PATH_SEPARATOR=';' |
| 13453 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13454 | fi |
| 13455 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13456 | |
| 13457 | # IFS |
| 13458 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13459 | # there to prevent editors from complaining about space-tab. |
| 13460 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13461 | # splitting by setting IFS to empty value.) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13462 | IFS=" "" $as_nl" |
| 13463 | |
| 13464 | # 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] | 13465 | as_myself= |
| 13466 | case $0 in #(( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13467 | *[\\/]* ) as_myself=$0 ;; |
| 13468 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13469 | for as_dir in $PATH |
| 13470 | do |
| 13471 | IFS=$as_save_IFS |
| 13472 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13473 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13474 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13475 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13476 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13477 | ;; |
| 13478 | esac |
| 13479 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13480 | # in which case we are not to be found in the path. |
| 13481 | if test "x$as_myself" = x; then |
| 13482 | as_myself=$0 |
| 13483 | fi |
| 13484 | if test ! -f "$as_myself"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13485 | $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] | 13486 | exit 1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13487 | fi |
| 13488 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13489 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13490 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13491 | # suppresses any "Segmentation fault" message there. '((' could |
| 13492 | # trigger a bug in pdksh 5.2.14. |
| 13493 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13494 | do eval test x\${$as_var+set} = xset \ |
| 13495 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13496 | done |
| 13497 | PS1='$ ' |
| 13498 | PS2='> ' |
| 13499 | PS4='+ ' |
| 13500 | |
| 13501 | # NLS nuisances. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13502 | LC_ALL=C |
| 13503 | export LC_ALL |
| 13504 | LANGUAGE=C |
| 13505 | export LANGUAGE |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13506 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13507 | # CDPATH. |
| 13508 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13509 | |
| 13510 | |
| 13511 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13512 | # ---------------------------------------- |
| 13513 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13514 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13515 | # script with STATUS, using 1 if that was 0. |
| 13516 | as_fn_error () |
| 13517 | { |
| 13518 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13519 | if test "$4"; then |
| 13520 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13521 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 13522 | fi |
| 13523 | $as_echo "$as_me: error: $2" >&2 |
| 13524 | as_fn_exit $as_status |
| 13525 | } # as_fn_error |
| 13526 | |
| 13527 | |
| 13528 | # as_fn_set_status STATUS |
| 13529 | # ----------------------- |
| 13530 | # Set $? to STATUS, without forking. |
| 13531 | as_fn_set_status () |
| 13532 | { |
| 13533 | return $1 |
| 13534 | } # as_fn_set_status |
| 13535 | |
| 13536 | # as_fn_exit STATUS |
| 13537 | # ----------------- |
| 13538 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13539 | as_fn_exit () |
| 13540 | { |
| 13541 | set +e |
| 13542 | as_fn_set_status $1 |
| 13543 | exit $1 |
| 13544 | } # as_fn_exit |
| 13545 | |
| 13546 | # as_fn_unset VAR |
| 13547 | # --------------- |
| 13548 | # Portably unset VAR. |
| 13549 | as_fn_unset () |
| 13550 | { |
| 13551 | { eval $1=; unset $1;} |
| 13552 | } |
| 13553 | as_unset=as_fn_unset |
| 13554 | # as_fn_append VAR VALUE |
| 13555 | # ---------------------- |
| 13556 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13557 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13558 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13559 | # implementations. |
| 13560 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13561 | eval 'as_fn_append () |
| 13562 | { |
| 13563 | eval $1+=\$2 |
| 13564 | }' |
| 13565 | else |
| 13566 | as_fn_append () |
| 13567 | { |
| 13568 | eval $1=\$$1\$2 |
| 13569 | } |
| 13570 | fi # as_fn_append |
| 13571 | |
| 13572 | # as_fn_arith ARG... |
| 13573 | # ------------------ |
| 13574 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13575 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13576 | # must be portable across $(()) and expr. |
| 13577 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13578 | eval 'as_fn_arith () |
| 13579 | { |
| 13580 | as_val=$(( $* )) |
| 13581 | }' |
| 13582 | else |
| 13583 | as_fn_arith () |
| 13584 | { |
| 13585 | as_val=`expr "$@" || test $? -eq 1` |
| 13586 | } |
| 13587 | fi # as_fn_arith |
| 13588 | |
| 13589 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13590 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13591 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13592 | as_expr=expr |
| 13593 | else |
| 13594 | as_expr=false |
| 13595 | fi |
| 13596 | |
| 13597 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13598 | as_basename=basename |
| 13599 | else |
| 13600 | as_basename=false |
| 13601 | fi |
| 13602 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13603 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13604 | as_dirname=dirname |
| 13605 | else |
| 13606 | as_dirname=false |
| 13607 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13608 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13609 | as_me=`$as_basename -- "$0" || |
| 13610 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13611 | X"$0" : 'X\(//\)$' \| \ |
| 13612 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13613 | $as_echo X/"$0" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13614 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13615 | s//\1/ |
| 13616 | q |
| 13617 | } |
| 13618 | /^X\/\(\/\/\)$/{ |
| 13619 | s//\1/ |
| 13620 | q |
| 13621 | } |
| 13622 | /^X\/\(\/\).*/{ |
| 13623 | s//\1/ |
| 13624 | q |
| 13625 | } |
| 13626 | s/.*/./; q'` |
| 13627 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13628 | # Avoid depending upon Character Ranges. |
| 13629 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13630 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13631 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13632 | as_cr_digits='0123456789' |
| 13633 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13634 | |
| 13635 | ECHO_C= ECHO_N= ECHO_T= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13636 | case `echo -n x` in #((((( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13637 | -n*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13638 | case `echo 'xy\c'` in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13639 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13640 | xy) ECHO_C='\c';; |
| 13641 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13642 | ECHO_T=' ';; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13643 | esac;; |
| 13644 | *) |
| 13645 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13646 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13647 | |
| 13648 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13649 | if test -d conf$$.dir; then |
| 13650 | rm -f conf$$.dir/conf$$.file |
| 13651 | else |
| 13652 | rm -f conf$$.dir |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13653 | mkdir conf$$.dir 2>/dev/null |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13654 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13655 | if (echo >conf$$.file) 2>/dev/null; then |
| 13656 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13657 | as_ln_s='ln -s' |
| 13658 | # ... but there are two gotchas: |
| 13659 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13660 | # 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] | 13661 | # In both cases, we have to default to `cp -pR'. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13662 | 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] | 13663 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13664 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13665 | as_ln_s=ln |
| 13666 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13667 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13668 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13669 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13670 | as_ln_s='cp -pR' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13671 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13672 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13673 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13674 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13675 | |
| 13676 | # as_fn_mkdir_p |
| 13677 | # ------------- |
| 13678 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13679 | as_fn_mkdir_p () |
| 13680 | { |
| 13681 | |
| 13682 | case $as_dir in #( |
| 13683 | -*) as_dir=./$as_dir;; |
| 13684 | esac |
| 13685 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13686 | as_dirs= |
| 13687 | while :; do |
| 13688 | case $as_dir in #( |
| 13689 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13690 | *) as_qdir=$as_dir;; |
| 13691 | esac |
| 13692 | as_dirs="'$as_qdir' $as_dirs" |
| 13693 | as_dir=`$as_dirname -- "$as_dir" || |
| 13694 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13695 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13696 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13697 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13698 | $as_echo X"$as_dir" | |
| 13699 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13700 | s//\1/ |
| 13701 | q |
| 13702 | } |
| 13703 | /^X\(\/\/\)[^/].*/{ |
| 13704 | s//\1/ |
| 13705 | q |
| 13706 | } |
| 13707 | /^X\(\/\/\)$/{ |
| 13708 | s//\1/ |
| 13709 | q |
| 13710 | } |
| 13711 | /^X\(\/\).*/{ |
| 13712 | s//\1/ |
| 13713 | q |
| 13714 | } |
| 13715 | s/.*/./; q'` |
| 13716 | test -d "$as_dir" && break |
| 13717 | done |
| 13718 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13719 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 13720 | |
| 13721 | |
| 13722 | } # as_fn_mkdir_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13723 | if mkdir -p . 2>/dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13724 | as_mkdir_p='mkdir -p "$as_dir"' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13725 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13726 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13727 | as_mkdir_p=false |
| 13728 | fi |
| 13729 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13730 | |
| 13731 | # as_fn_executable_p FILE |
| 13732 | # ----------------------- |
| 13733 | # Test if FILE is an executable regular file. |
| 13734 | as_fn_executable_p () |
| 13735 | { |
| 13736 | test -f "$1" && test -x "$1" |
| 13737 | } # as_fn_executable_p |
| 13738 | as_test_x='test -x' |
| 13739 | as_executable_p=as_fn_executable_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13740 | |
| 13741 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13742 | 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] | 13743 | |
| 13744 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13745 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13746 | |
| 13747 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13748 | exec 6>&1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13749 | ## ----------------------------------- ## |
| 13750 | ## Main body of $CONFIG_STATUS script. ## |
| 13751 | ## ----------------------------------- ## |
| 13752 | _ASEOF |
| 13753 | 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] | 13754 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13756 | # 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] | 13757 | # report actual input values of CONFIG_FILES etc. instead of their |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13758 | # values after options handling. |
| 13759 | ac_log=" |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 13760 | This file was extended by asn1c $as_me 0.9.24, which was |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13761 | generated by GNU Autoconf 2.69. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13762 | |
| 13763 | CONFIG_FILES = $CONFIG_FILES |
| 13764 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13765 | CONFIG_LINKS = $CONFIG_LINKS |
| 13766 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13767 | $ $0 $@ |
| 13768 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13769 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13770 | " |
| 13771 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13772 | _ACEOF |
| 13773 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13774 | case $ac_config_files in *" |
| 13775 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13776 | esac |
| 13777 | |
| 13778 | case $ac_config_headers in *" |
| 13779 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13780 | esac |
| 13781 | |
| 13782 | |
| 13783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13784 | # Files that config.status was made for. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13785 | config_files="$ac_config_files" |
| 13786 | config_headers="$ac_config_headers" |
| 13787 | config_commands="$ac_config_commands" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13788 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13789 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13790 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13792 | ac_cs_usage="\ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13793 | \`$as_me' instantiates files and other configuration actions |
| 13794 | from templates according to the current configuration. Unless the files |
| 13795 | and actions are specified as TAGs, all are instantiated by default. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13796 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13797 | Usage: $0 [OPTION]... [TAG]... |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13798 | |
| 13799 | -h, --help print this help, then exit |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13800 | -V, --version print version number and configuration settings, then exit |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13801 | --config print configuration, then exit |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13802 | -q, --quiet, --silent |
| 13803 | do not print progress messages |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13804 | -d, --debug don't remove temporary files |
| 13805 | --recheck update $as_me by reconfiguring in the same conditions |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13806 | --file=FILE[:TEMPLATE] |
| 13807 | instantiate the configuration file FILE |
| 13808 | --header=FILE[:TEMPLATE] |
| 13809 | instantiate the configuration header FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13810 | |
| 13811 | Configuration files: |
| 13812 | $config_files |
| 13813 | |
| 13814 | Configuration headers: |
| 13815 | $config_headers |
| 13816 | |
| 13817 | Configuration commands: |
| 13818 | $config_commands |
| 13819 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13820 | Report bugs to <vlm@lionet.info>." |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13821 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13822 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13823 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13824 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13825 | ac_cs_version="\\ |
Lev Walkin | d8ca7ce | 2013-03-16 07:07:26 -0700 | [diff] [blame] | 13826 | asn1c config.status 0.9.24 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13827 | configured by $0, generated by GNU Autoconf 2.69, |
| 13828 | with options \\"\$ac_cs_config\\" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13829 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13830 | Copyright (C) 2012 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13831 | This config.status script is free software; the Free Software Foundation |
| 13832 | gives unlimited permission to copy, distribute and modify it." |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13833 | |
| 13834 | ac_pwd='$ac_pwd' |
| 13835 | srcdir='$srcdir' |
| 13836 | INSTALL='$INSTALL' |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13837 | MKDIR_P='$MKDIR_P' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13838 | AWK='$AWK' |
| 13839 | test -n "\$AWK" || AWK=awk |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13840 | _ACEOF |
| 13841 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13843 | # The default lists apply if the user does not specify any file. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13844 | ac_need_defaults=: |
| 13845 | while test $# != 0 |
| 13846 | do |
| 13847 | case $1 in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13848 | --*=?*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13849 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13850 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13851 | ac_shift=: |
| 13852 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13853 | --*=) |
| 13854 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13855 | ac_optarg= |
| 13856 | ac_shift=: |
| 13857 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13858 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13859 | ac_option=$1 |
| 13860 | ac_optarg=$2 |
| 13861 | ac_shift=shift |
| 13862 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13863 | esac |
| 13864 | |
| 13865 | case $ac_option in |
| 13866 | # Handling of the options. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13867 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13868 | ac_cs_recheck=: ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13869 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13870 | $as_echo "$ac_cs_version"; exit ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13871 | --config | --confi | --conf | --con | --co | --c ) |
| 13872 | $as_echo "$ac_cs_config"; exit ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13873 | --debug | --debu | --deb | --de | --d | -d ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13874 | debug=: ;; |
| 13875 | --file | --fil | --fi | --f ) |
| 13876 | $ac_shift |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13877 | case $ac_optarg in |
| 13878 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13879 | '') as_fn_error $? "missing file argument" ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13880 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13881 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13882 | ac_need_defaults=false;; |
| 13883 | --header | --heade | --head | --hea ) |
| 13884 | $ac_shift |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13885 | case $ac_optarg in |
| 13886 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13887 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13888 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13889 | ac_need_defaults=false;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13890 | --he | --h) |
| 13891 | # Conflict between --help and --header |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13892 | as_fn_error $? "ambiguous option: \`$1' |
| 13893 | Try \`$0 --help' for more information.";; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13894 | --help | --hel | -h ) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13895 | $as_echo "$ac_cs_usage"; exit ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13896 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13897 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13898 | ac_cs_silent=: ;; |
| 13899 | |
| 13900 | # This is an error. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13901 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 13902 | Try \`$0 --help' for more information." ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13903 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13904 | *) as_fn_append ac_config_targets " $1" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13905 | ac_need_defaults=false ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13906 | |
| 13907 | esac |
| 13908 | shift |
| 13909 | done |
| 13910 | |
| 13911 | ac_configure_extra_args= |
| 13912 | |
| 13913 | if $ac_cs_silent; then |
| 13914 | exec 6>/dev/null |
| 13915 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13916 | fi |
| 13917 | |
| 13918 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13919 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13920 | if \$ac_cs_recheck; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13921 | 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] | 13922 | shift |
| 13923 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13924 | CONFIG_SHELL='$SHELL' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13925 | export CONFIG_SHELL |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13926 | exec "\$@" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13927 | fi |
| 13928 | |
| 13929 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13930 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13931 | exec 5>>config.log |
| 13932 | { |
| 13933 | echo |
| 13934 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13935 | ## Running $as_me. ## |
| 13936 | _ASBOX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13937 | $as_echo "$ac_log" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13938 | } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13939 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13940 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13942 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13943 | # INIT-COMMANDS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13944 | # |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13945 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13946 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 13947 | |
| 13948 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 13949 | # if CDPATH is set. |
| 13950 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13951 | |
| 13952 | sed_quote_subst='$sed_quote_subst' |
| 13953 | double_quote_subst='$double_quote_subst' |
| 13954 | delay_variable_subst='$delay_variable_subst' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13955 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 13956 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 13957 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 13958 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 13959 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 13960 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 13961 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 13962 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 13963 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 13964 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 13965 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 13966 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 13967 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 13968 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 13969 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 13970 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 13971 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 13972 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 13973 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 13974 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 13975 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 13976 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 13977 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 13978 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 13979 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 13980 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 13981 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 13982 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 13983 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13984 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13985 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 13986 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 13987 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 13988 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 13989 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 13990 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 13991 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 13992 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 13993 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 13994 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 13995 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 13996 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13997 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 13998 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 13999 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14000 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14001 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 14002 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 14003 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 14004 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 14005 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 14006 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 14007 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 14008 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 14009 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 14010 | 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"`' |
| 14011 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 14012 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 14013 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 14014 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 14015 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 14016 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 14017 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 14018 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 14019 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 14020 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 14021 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 14022 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 14023 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 14024 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 14025 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 14026 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 14027 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 14028 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 14029 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 14030 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 14031 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 14032 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14033 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14034 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 14035 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 14036 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 14037 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 14038 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 14039 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 14040 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 14041 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 14042 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 14043 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 14044 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14045 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 14046 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 14047 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 14048 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 14049 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 14050 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 14051 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 14052 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 14053 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 14054 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 14055 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 14056 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 14057 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 14058 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 14059 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 14060 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 14061 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 14062 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 14063 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 14064 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 14065 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 14066 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 14067 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 14068 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 14069 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 14070 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 14071 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 14072 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14073 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14074 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 14075 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 14076 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 14077 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 14078 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 14079 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 14080 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 14081 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 14082 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 14083 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 14084 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14085 | |
| 14086 | LTCC='$LTCC' |
| 14087 | LTCFLAGS='$LTCFLAGS' |
| 14088 | compiler='$compiler_DEFAULT' |
| 14089 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14090 | # A function that is used when there is no print builtin or printf. |
| 14091 | func_fallback_echo () |
| 14092 | { |
| 14093 | eval 'cat <<_LTECHO_EOF |
| 14094 | \$1 |
| 14095 | _LTECHO_EOF' |
| 14096 | } |
| 14097 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14098 | # Quote evaled strings. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14099 | for var in SHELL \ |
| 14100 | ECHO \ |
| 14101 | SED \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14102 | GREP \ |
| 14103 | EGREP \ |
| 14104 | FGREP \ |
| 14105 | LD \ |
| 14106 | NM \ |
| 14107 | LN_S \ |
| 14108 | lt_SP2NL \ |
| 14109 | lt_NL2SP \ |
| 14110 | reload_flag \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14111 | OBJDUMP \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14112 | deplibs_check_method \ |
| 14113 | file_magic_cmd \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14114 | file_magic_glob \ |
| 14115 | want_nocaseglob \ |
| 14116 | DLLTOOL \ |
| 14117 | sharedlib_from_linklib_cmd \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14118 | AR \ |
| 14119 | AR_FLAGS \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14120 | archiver_list_spec \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14121 | STRIP \ |
| 14122 | RANLIB \ |
| 14123 | CC \ |
| 14124 | CFLAGS \ |
| 14125 | compiler \ |
| 14126 | lt_cv_sys_global_symbol_pipe \ |
| 14127 | lt_cv_sys_global_symbol_to_cdecl \ |
| 14128 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14129 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14130 | nm_file_list_spec \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14131 | lt_prog_compiler_no_builtin_flag \ |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14132 | lt_prog_compiler_pic \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14133 | lt_prog_compiler_wl \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14134 | lt_prog_compiler_static \ |
| 14135 | lt_cv_prog_compiler_c_o \ |
| 14136 | need_locks \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14137 | MANIFEST_TOOL \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14138 | DSYMUTIL \ |
| 14139 | NMEDIT \ |
| 14140 | LIPO \ |
| 14141 | OTOOL \ |
| 14142 | OTOOL64 \ |
| 14143 | shrext_cmds \ |
| 14144 | export_dynamic_flag_spec \ |
| 14145 | whole_archive_flag_spec \ |
| 14146 | compiler_needs_object \ |
| 14147 | with_gnu_ld \ |
| 14148 | allow_undefined_flag \ |
| 14149 | no_undefined_flag \ |
| 14150 | hardcode_libdir_flag_spec \ |
| 14151 | hardcode_libdir_flag_spec_ld \ |
| 14152 | hardcode_libdir_separator \ |
| 14153 | exclude_expsyms \ |
| 14154 | include_expsyms \ |
| 14155 | file_list_spec \ |
| 14156 | variables_saved_for_relink \ |
| 14157 | libname_spec \ |
| 14158 | library_names_spec \ |
| 14159 | soname_spec \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14160 | install_override_mode \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14161 | finish_eval \ |
| 14162 | old_striplib \ |
| 14163 | striplib; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14164 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14165 | *[\\\\\\\`\\"\\\$]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14166 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14167 | ;; |
| 14168 | *) |
| 14169 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14170 | ;; |
| 14171 | esac |
| 14172 | done |
| 14173 | |
| 14174 | # Double-quote double-evaled strings. |
| 14175 | for var in reload_cmds \ |
| 14176 | old_postinstall_cmds \ |
| 14177 | old_postuninstall_cmds \ |
| 14178 | old_archive_cmds \ |
| 14179 | extract_expsyms_cmds \ |
| 14180 | old_archive_from_new_cmds \ |
| 14181 | old_archive_from_expsyms_cmds \ |
| 14182 | archive_cmds \ |
| 14183 | archive_expsym_cmds \ |
| 14184 | module_cmds \ |
| 14185 | module_expsym_cmds \ |
| 14186 | export_symbols_cmds \ |
| 14187 | prelink_cmds \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14188 | postlink_cmds \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14189 | postinstall_cmds \ |
| 14190 | postuninstall_cmds \ |
| 14191 | finish_cmds \ |
| 14192 | sys_lib_search_path_spec \ |
| 14193 | sys_lib_dlsearch_path_spec; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14194 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14195 | *[\\\\\\\`\\"\\\$]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14196 | 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] | 14197 | ;; |
| 14198 | *) |
| 14199 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14200 | ;; |
| 14201 | esac |
| 14202 | done |
| 14203 | |
| 14204 | ac_aux_dir='$ac_aux_dir' |
| 14205 | xsi_shell='$xsi_shell' |
| 14206 | lt_shell_append='$lt_shell_append' |
| 14207 | |
| 14208 | # See if we are running on zsh, and set the options which allow our |
| 14209 | # commands through without removal of \ escapes INIT. |
| 14210 | if test -n "\${ZSH_VERSION+set}" ; then |
| 14211 | setopt NO_GLOB_SUBST |
| 14212 | fi |
| 14213 | |
| 14214 | |
| 14215 | PACKAGE='$PACKAGE' |
| 14216 | VERSION='$VERSION' |
| 14217 | TIMESTAMP='$TIMESTAMP' |
| 14218 | RM='$RM' |
| 14219 | ofile='$ofile' |
| 14220 | |
| 14221 | |
| 14222 | |
| 14223 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14224 | _ACEOF |
| 14225 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14227 | |
| 14228 | # Handling of arguments. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14229 | for ac_config_target in $ac_config_targets |
| 14230 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14231 | case $ac_config_target in |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 14232 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14233 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14234 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14235 | "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;; |
| 14236 | "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 14237 | "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 14238 | "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 14239 | "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14240 | "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 14241 | "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 14242 | "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14243 | "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 14244 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 14245 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 14246 | "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 14247 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 14248 | "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
| 14249 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14250 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14251 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14252 | esac |
| 14253 | done |
| 14254 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14255 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14256 | # If the user did not use the arguments to specify the items to instantiate, |
| 14257 | # then the envvar interface is used. Set only those that are not. |
| 14258 | # We use the long form for the default assignment because of an extremely |
| 14259 | # bizarre bug on SunOS 4.1.3. |
| 14260 | if $ac_need_defaults; then |
| 14261 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14262 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14263 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14264 | fi |
| 14265 | |
| 14266 | # Have a temporary directory for convenience. Make it in the build tree |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14267 | # 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] | 14268 | # creating and moving files from /tmp can sometimes cause problems. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14269 | # Hook for its removal unless debugging. |
| 14270 | # Note that there is a small window in which the directory will not be cleaned: |
| 14271 | # after its creation but before its name has been assigned to `$tmp'. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14272 | $debug || |
| 14273 | { |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14274 | tmp= ac_tmp= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14275 | trap 'exit_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14276 | : "${ac_tmp:=$tmp}" |
| 14277 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14278 | ' 0 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14279 | trap 'as_fn_exit 1' 1 2 13 15 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14280 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14281 | # Create a (secure) tmp directory for tmp files. |
| 14282 | |
| 14283 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14284 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14285 | test -d "$tmp" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14286 | } || |
| 14287 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14288 | tmp=./conf$$-$RANDOM |
| 14289 | (umask 077 && mkdir "$tmp") |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14290 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14291 | ac_tmp=$tmp |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14292 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14293 | # Set up the scripts for CONFIG_FILES section. |
| 14294 | # No need to generate them if there are no CONFIG_FILES. |
| 14295 | # This happens for instance with `./config.status config.h'. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14296 | if test -n "$CONFIG_FILES"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14297 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14298 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14299 | ac_cr=`echo X | tr X '\015'` |
| 14300 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14301 | # But we know of no other shell where ac_cr would be empty at this |
| 14302 | # point, so we can use a bashism as a fallback. |
| 14303 | if test "x$ac_cr" = x; then |
| 14304 | eval ac_cr=\$\'\\r\' |
| 14305 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14306 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14307 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 14308 | ac_cs_awk_cr='\\r' |
| 14309 | else |
| 14310 | ac_cs_awk_cr=$ac_cr |
| 14311 | fi |
| 14312 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14313 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14314 | _ACEOF |
| 14315 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14316 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14317 | { |
| 14318 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14319 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14320 | echo "_ACEOF" |
| 14321 | } >conf$$subs.sh || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14322 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14323 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14324 | ac_delim='%!_!# ' |
| 14325 | for ac_last_try in false false false false false :; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14326 | . ./conf$$subs.sh || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14327 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14328 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14329 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14330 | if test $ac_delim_n = $ac_delim_num; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14331 | break |
| 14332 | elif $ac_last_try; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14333 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14334 | else |
| 14335 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14336 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14337 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14338 | rm -f conf$$subs.sh |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14339 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14341 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14342 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14343 | sed -n ' |
| 14344 | h |
| 14345 | s/^/S["/; s/!.*/"]=/ |
| 14346 | p |
| 14347 | g |
| 14348 | s/^[^!]*!// |
| 14349 | :repl |
| 14350 | t repl |
| 14351 | s/'"$ac_delim"'$// |
| 14352 | t delim |
| 14353 | :nl |
| 14354 | h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14355 | s/\(.\{148\}\)..*/\1/ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14356 | t more1 |
| 14357 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14358 | p |
| 14359 | n |
| 14360 | b repl |
| 14361 | :more1 |
| 14362 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14363 | p |
| 14364 | g |
| 14365 | s/.\{148\}// |
| 14366 | t nl |
| 14367 | :delim |
| 14368 | h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14369 | s/\(.\{148\}\)..*/\1/ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14370 | t more2 |
| 14371 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14372 | p |
| 14373 | b |
| 14374 | :more2 |
| 14375 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14376 | p |
| 14377 | g |
| 14378 | s/.\{148\}// |
| 14379 | t delim |
| 14380 | ' <conf$$subs.awk | sed ' |
| 14381 | /^[^""]/{ |
| 14382 | N |
| 14383 | s/\n// |
| 14384 | } |
| 14385 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14386 | rm -f conf$$subs.awk |
| 14387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14388 | _ACAWK |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14389 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14390 | for (key in S) S_is_set[key] = 1 |
| 14391 | FS = "" |
| 14392 | |
| 14393 | } |
| 14394 | { |
| 14395 | line = $ 0 |
| 14396 | nfields = split(line, field, "@") |
| 14397 | substed = 0 |
| 14398 | len = length(field[1]) |
| 14399 | for (i = 2; i < nfields; i++) { |
| 14400 | key = field[i] |
| 14401 | keylen = length(key) |
| 14402 | if (S_is_set[key]) { |
| 14403 | value = S[key] |
| 14404 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14405 | len += length(value) + length(field[++i]) |
| 14406 | substed = 1 |
| 14407 | } else |
| 14408 | len += 1 + keylen |
| 14409 | } |
| 14410 | |
| 14411 | print line |
| 14412 | } |
| 14413 | |
| 14414 | _ACAWK |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14415 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14417 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14418 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14419 | else |
| 14420 | cat |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14421 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14422 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14423 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14424 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14425 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14426 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14427 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14428 | # (actually we leave an empty line to preserve line numbers). |
| 14429 | if test "x$srcdir" = x.; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14430 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14431 | h |
| 14432 | s/// |
| 14433 | s/^/:/ |
| 14434 | s/[ ]*$/:/ |
| 14435 | s/:\$(srcdir):/:/g |
| 14436 | s/:\${srcdir}:/:/g |
| 14437 | s/:@srcdir@:/:/g |
| 14438 | s/^:*// |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14439 | s/:*$// |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14440 | x |
| 14441 | s/\(=[ ]*\).*/\1/ |
| 14442 | G |
| 14443 | s/\n// |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14444 | s/^[^=]*=[ ]*$// |
| 14445 | }' |
| 14446 | fi |
| 14447 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14448 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14449 | fi # test -n "$CONFIG_FILES" |
| 14450 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14451 | # Set up the scripts for CONFIG_HEADERS section. |
| 14452 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14453 | # This happens for instance with `./config.status Makefile'. |
| 14454 | if test -n "$CONFIG_HEADERS"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14455 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14456 | BEGIN { |
| 14457 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14458 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14459 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14460 | # here-document in config.status, that substitutes the proper values into |
| 14461 | # config.h.in to produce config.h. |
| 14462 | |
| 14463 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14464 | # handling of long lines. |
| 14465 | ac_delim='%!_!# ' |
| 14466 | for ac_last_try in false false :; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14467 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14468 | if test -z "$ac_tt"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14469 | break |
| 14470 | elif $ac_last_try; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14471 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14472 | else |
| 14473 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14474 | fi |
| 14475 | done |
| 14476 | |
| 14477 | # For the awk script, D is an array of macro values keyed by name, |
| 14478 | # likewise P contains macro parameters if any. Preserve backslash |
| 14479 | # newline sequences. |
| 14480 | |
| 14481 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14482 | sed -n ' |
| 14483 | s/.\{148\}/&'"$ac_delim"'/g |
| 14484 | t rset |
| 14485 | :rset |
| 14486 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14487 | t def |
| 14488 | d |
| 14489 | :def |
| 14490 | s/\\$// |
| 14491 | t bsnl |
| 14492 | s/["\\]/\\&/g |
| 14493 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14494 | D["\1"]=" \3"/p |
| 14495 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14496 | d |
| 14497 | :bsnl |
| 14498 | s/["\\]/\\&/g |
| 14499 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14500 | D["\1"]=" \3\\\\\\n"\\/p |
| 14501 | t cont |
| 14502 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14503 | t cont |
| 14504 | d |
| 14505 | :cont |
| 14506 | n |
| 14507 | s/.\{148\}/&'"$ac_delim"'/g |
| 14508 | t clear |
| 14509 | :clear |
| 14510 | s/\\$// |
| 14511 | t bsnlc |
| 14512 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14513 | d |
| 14514 | :bsnlc |
| 14515 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14516 | b cont |
| 14517 | ' <confdefs.h | sed ' |
| 14518 | s/'"$ac_delim"'/"\\\ |
| 14519 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14520 | |
| 14521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14522 | for (key in D) D_is_set[key] = 1 |
| 14523 | FS = "" |
| 14524 | } |
| 14525 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14526 | line = \$ 0 |
| 14527 | split(line, arg, " ") |
| 14528 | if (arg[1] == "#") { |
| 14529 | defundef = arg[2] |
| 14530 | mac1 = arg[3] |
| 14531 | } else { |
| 14532 | defundef = substr(arg[1], 2) |
| 14533 | mac1 = arg[2] |
| 14534 | } |
| 14535 | split(mac1, mac2, "(") #) |
| 14536 | macro = mac2[1] |
| 14537 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14538 | if (D_is_set[macro]) { |
| 14539 | # Preserve the white space surrounding the "#". |
| 14540 | print prefix "define", macro P[macro] D[macro] |
| 14541 | next |
| 14542 | } else { |
| 14543 | # Replace #undef with comments. This is necessary, for example, |
| 14544 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14545 | # on some systems where configure will not decide to define it. |
| 14546 | if (defundef == "undef") { |
| 14547 | print "/*", prefix defundef, macro, "*/" |
| 14548 | next |
| 14549 | } |
| 14550 | } |
| 14551 | } |
| 14552 | { print } |
| 14553 | _ACAWK |
| 14554 | _ACEOF |
| 14555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14556 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14557 | fi # test -n "$CONFIG_HEADERS" |
| 14558 | |
| 14559 | |
| 14560 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 14561 | shift |
| 14562 | for ac_tag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14563 | do |
| 14564 | case $ac_tag in |
| 14565 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14566 | esac |
| 14567 | case $ac_mode$ac_tag in |
| 14568 | :[FHL]*:*);; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14569 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14570 | :[FH]-) ac_tag=-:-;; |
| 14571 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14572 | esac |
| 14573 | ac_save_IFS=$IFS |
| 14574 | IFS=: |
| 14575 | set x $ac_tag |
| 14576 | IFS=$ac_save_IFS |
| 14577 | shift |
| 14578 | ac_file=$1 |
| 14579 | shift |
| 14580 | |
| 14581 | case $ac_mode in |
| 14582 | :L) ac_source=$1;; |
| 14583 | :[FH]) |
| 14584 | ac_file_inputs= |
| 14585 | for ac_f |
| 14586 | do |
| 14587 | case $ac_f in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14588 | -) ac_f="$ac_tmp/stdin";; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14589 | *) # Look for the file first in the build tree, then in the source tree |
| 14590 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14591 | # because $ac_f cannot contain `:'. |
| 14592 | test -f "$ac_f" || |
| 14593 | case $ac_f in |
| 14594 | [\\/$]*) false;; |
| 14595 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14596 | esac || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14597 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14598 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14599 | 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] | 14600 | as_fn_append ac_file_inputs " '$ac_f'" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14601 | done |
| 14602 | |
| 14603 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14604 | # use $as_me), people would be surprised to read: |
| 14605 | # /* config.h. Generated by config.status. */ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14606 | configure_input='Generated from '` |
| 14607 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14608 | `' by configure.' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14609 | if test x"$ac_file" != x-; then |
| 14610 | configure_input="$ac_file. $configure_input" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14612 | $as_echo "$as_me: creating $ac_file" >&6;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14613 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14614 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14615 | case $configure_input in #( |
| 14616 | *\&* | *\|* | *\\* ) |
| 14617 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14618 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14619 | *) ac_sed_conf_input=$configure_input;; |
| 14620 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14621 | |
| 14622 | case $ac_tag in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14623 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14624 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14625 | esac |
| 14626 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14627 | esac |
| 14628 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14629 | ac_dir=`$as_dirname -- "$ac_file" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14630 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14631 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14632 | X"$ac_file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14633 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14634 | $as_echo X"$ac_file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14636 | s//\1/ |
| 14637 | q |
| 14638 | } |
| 14639 | /^X\(\/\/\)[^/].*/{ |
| 14640 | s//\1/ |
| 14641 | q |
| 14642 | } |
| 14643 | /^X\(\/\/\)$/{ |
| 14644 | s//\1/ |
| 14645 | q |
| 14646 | } |
| 14647 | /^X\(\/\).*/{ |
| 14648 | s//\1/ |
| 14649 | q |
| 14650 | } |
| 14651 | s/.*/./; q'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14652 | as_dir="$ac_dir"; as_fn_mkdir_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14653 | ac_builddir=. |
| 14654 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14655 | case "$ac_dir" in |
| 14656 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14657 | *) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14658 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14659 | # A ".." for each directory in $ac_dir_suffix. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14660 | 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] | 14661 | case $ac_top_builddir_sub in |
| 14662 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14663 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14664 | esac ;; |
| 14665 | esac |
| 14666 | ac_abs_top_builddir=$ac_pwd |
| 14667 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14668 | # for backward compatibility: |
| 14669 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14670 | |
| 14671 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14672 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14673 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14674 | ac_top_srcdir=$ac_top_builddir_sub |
| 14675 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14676 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14677 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14678 | ac_top_srcdir=$srcdir |
| 14679 | ac_abs_top_srcdir=$srcdir ;; |
| 14680 | *) # Relative name. |
| 14681 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14682 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14683 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14684 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14685 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14686 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14687 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14688 | case $ac_mode in |
| 14689 | :F) |
| 14690 | # |
| 14691 | # CONFIG_FILE |
| 14692 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14693 | |
| 14694 | case $INSTALL in |
| 14695 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14696 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14697 | esac |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14698 | ac_MKDIR_P=$MKDIR_P |
| 14699 | case $MKDIR_P in |
| 14700 | [\\/$]* | ?:[\\/]* ) ;; |
| 14701 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14702 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14703 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14704 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14705 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14706 | # If the template does not know about datarootdir, expand it. |
| 14707 | # FIXME: This hack should be removed a few years after 2.60. |
| 14708 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14709 | ac_sed_dataroot=' |
| 14710 | /datarootdir/ { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14711 | p |
| 14712 | q |
| 14713 | } |
| 14714 | /@datadir@/p |
| 14715 | /@docdir@/p |
| 14716 | /@infodir@/p |
| 14717 | /@localedir@/p |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14718 | /@mandir@/p' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14719 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14720 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14721 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14722 | { $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] | 14723 | $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] | 14724 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14726 | ac_datarootdir_hack=' |
| 14727 | s&@datadir@&$datadir&g |
| 14728 | s&@docdir@&$docdir&g |
| 14729 | s&@infodir@&$infodir&g |
| 14730 | s&@localedir@&$localedir&g |
| 14731 | s&@mandir@&$mandir&g |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14732 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14733 | esac |
| 14734 | _ACEOF |
| 14735 | |
| 14736 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14737 | # Shell code in configure.ac might set extrasub. |
| 14738 | # FIXME: do we really want to maintain this feature? |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14739 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14740 | ac_sed_extra="$ac_vpsub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14741 | $extrasub |
| 14742 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14744 | :t |
| 14745 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14746 | s|@configure_input@|$ac_sed_conf_input|;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14747 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14748 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14749 | s&@srcdir@&$ac_srcdir&;t t |
| 14750 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14751 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14752 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14753 | s&@builddir@&$ac_builddir&;t t |
| 14754 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14755 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14756 | s&@INSTALL@&$ac_INSTALL&;t t |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14757 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14758 | $ac_datarootdir_hack |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14759 | " |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14760 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 14761 | >$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] | 14762 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14763 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14764 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14765 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14766 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14768 | which seems to be undefined. Please make sure it is defined" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14769 | $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] | 14770 | which seems to be undefined. Please make sure it is defined" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14771 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14772 | rm -f "$ac_tmp/stdin" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14773 | case $ac_file in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14774 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14775 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14776 | esac \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14777 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14778 | ;; |
| 14779 | :H) |
| 14780 | # |
| 14781 | # CONFIG_HEADER |
| 14782 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14783 | if test x"$ac_file" != x-; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14784 | { |
| 14785 | $as_echo "/* $configure_input */" \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14786 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14787 | } >"$ac_tmp/config.h" \ |
| 14788 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14789 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14791 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14792 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14793 | rm -f "$ac_file" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14794 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14795 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14796 | fi |
| 14797 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14798 | $as_echo "/* $configure_input */" \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14799 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14800 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14801 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14802 | # Compute "$ac_file"'s index in $config_headers. |
| 14803 | _am_arg="$ac_file" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14804 | _am_stamp_count=1 |
| 14805 | for _am_header in $config_headers :; do |
| 14806 | case $_am_header in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14807 | $_am_arg | $_am_arg:* ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14808 | break ;; |
| 14809 | * ) |
| 14810 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14811 | esac |
| 14812 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14813 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 14814 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14815 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 14816 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 14817 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 14818 | $as_echo X"$_am_arg" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14819 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14820 | s//\1/ |
| 14821 | q |
| 14822 | } |
| 14823 | /^X\(\/\/\)[^/].*/{ |
| 14824 | s//\1/ |
| 14825 | q |
| 14826 | } |
| 14827 | /^X\(\/\/\)$/{ |
| 14828 | s//\1/ |
| 14829 | q |
| 14830 | } |
| 14831 | /^X\(\/\).*/{ |
| 14832 | s//\1/ |
| 14833 | q |
| 14834 | } |
| 14835 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 14836 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14837 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14838 | :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] | 14839 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14840 | ;; |
| 14841 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14842 | |
| 14843 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14844 | case $ac_file$ac_mode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14845 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 14846 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 14847 | # are listed without --file. Let's play safe and only enable the eval |
| 14848 | # if we detect the quoting. |
| 14849 | case $CONFIG_FILES in |
| 14850 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 14851 | *) set x $CONFIG_FILES ;; |
| 14852 | esac |
| 14853 | shift |
| 14854 | for mf |
| 14855 | do |
| 14856 | # Strip MF so we end up with the name of the file. |
| 14857 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 14858 | # Check whether this is an Automake generated Makefile or not. |
| 14859 | # We used to match only the files named `Makefile.in', but |
| 14860 | # some people rename them; so instead we look at the file content. |
| 14861 | # Grep'ing the first line is not enough: some people post-process |
| 14862 | # each Makefile.in and add a new line on top of each file to say so. |
| 14863 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 14864 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 14865 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 14866 | dirpart=`$as_dirname -- "$mf" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14867 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14868 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 14869 | X"$mf" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14870 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14871 | $as_echo X"$mf" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14873 | s//\1/ |
| 14874 | q |
| 14875 | } |
| 14876 | /^X\(\/\/\)[^/].*/{ |
| 14877 | s//\1/ |
| 14878 | q |
| 14879 | } |
| 14880 | /^X\(\/\/\)$/{ |
| 14881 | s//\1/ |
| 14882 | q |
| 14883 | } |
| 14884 | /^X\(\/\).*/{ |
| 14885 | s//\1/ |
| 14886 | q |
| 14887 | } |
| 14888 | s/.*/./; q'` |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14889 | else |
| 14890 | continue |
| 14891 | fi |
| 14892 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 14893 | # from the Makefile without running `make'. |
| 14894 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 14895 | test -z "$DEPDIR" && continue |
| 14896 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 14897 | test -z "am__include" && continue |
| 14898 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 14899 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 14900 | U=`sed -n 's/^U = //p' < "$mf"` |
| 14901 | # Find all dependency output files, they are included files with |
| 14902 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 14903 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 14904 | # expansion. |
| 14905 | for file in `sed -n " |
| 14906 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 14907 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 14908 | # Make sure the directory exists. |
| 14909 | test -f "$dirpart/$file" && continue |
| 14910 | fdir=`$as_dirname -- "$file" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14911 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14912 | X"$file" : 'X\(//\)[^/]' \| \ |
| 14913 | X"$file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14914 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14915 | $as_echo X"$file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14917 | s//\1/ |
| 14918 | q |
| 14919 | } |
| 14920 | /^X\(\/\/\)[^/].*/{ |
| 14921 | s//\1/ |
| 14922 | q |
| 14923 | } |
| 14924 | /^X\(\/\/\)$/{ |
| 14925 | s//\1/ |
| 14926 | q |
| 14927 | } |
| 14928 | /^X\(\/\).*/{ |
| 14929 | s//\1/ |
| 14930 | q |
| 14931 | } |
| 14932 | s/.*/./; q'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14933 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14934 | # echo "creating $dirpart/$file" |
| 14935 | echo '# dummy' > "$dirpart/$file" |
| 14936 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14937 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14938 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14939 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14940 | "libtool":C) |
| 14941 | |
| 14942 | # See if we are running on zsh, and set the options which allow our |
| 14943 | # commands through without removal of \ escapes. |
| 14944 | if test -n "${ZSH_VERSION+set}" ; then |
| 14945 | setopt NO_GLOB_SUBST |
| 14946 | fi |
| 14947 | |
| 14948 | cfgfile="${ofile}T" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14949 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 14950 | $RM "$cfgfile" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14951 | |
| 14952 | cat <<_LT_EOF >> "$cfgfile" |
| 14953 | #! $SHELL |
| 14954 | |
| 14955 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 14956 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 14957 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14958 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14959 | # |
| 14960 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14961 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 14962 | # Inc. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14963 | # Written by Gordon Matzigkeit, 1996 |
| 14964 | # |
| 14965 | # This file is part of GNU Libtool. |
| 14966 | # |
| 14967 | # GNU Libtool is free software; you can redistribute it and/or |
| 14968 | # modify it under the terms of the GNU General Public License as |
| 14969 | # published by the Free Software Foundation; either version 2 of |
| 14970 | # the License, or (at your option) any later version. |
| 14971 | # |
| 14972 | # As a special exception to the GNU General Public License, |
| 14973 | # if you distribute this file as part of a program or library that |
| 14974 | # is built using GNU Libtool, you may include this file under the |
| 14975 | # same distribution terms that you use for the rest of that program. |
| 14976 | # |
| 14977 | # GNU Libtool is distributed in the hope that it will be useful, |
| 14978 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14979 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14980 | # GNU General Public License for more details. |
| 14981 | # |
| 14982 | # You should have received a copy of the GNU General Public License |
| 14983 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 14984 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 14985 | # obtained by writing to the Free Software Foundation, Inc., |
| 14986 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 14987 | |
| 14988 | |
| 14989 | # The names of the tagged configurations supported by this script. |
| 14990 | available_tags="" |
| 14991 | |
| 14992 | # ### BEGIN LIBTOOL CONFIG |
| 14993 | |
| 14994 | # Which release of libtool.m4 was used? |
| 14995 | macro_version=$macro_version |
| 14996 | macro_revision=$macro_revision |
| 14997 | |
| 14998 | # Whether or not to build shared libraries. |
| 14999 | build_libtool_libs=$enable_shared |
| 15000 | |
| 15001 | # Whether or not to build static libraries. |
| 15002 | build_old_libs=$enable_static |
| 15003 | |
| 15004 | # What type of objects to build. |
| 15005 | pic_mode=$pic_mode |
| 15006 | |
| 15007 | # Whether or not to optimize for fast installation. |
| 15008 | fast_install=$enable_fast_install |
| 15009 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15010 | # Shell to use when invoking shell scripts. |
| 15011 | SHELL=$lt_SHELL |
| 15012 | |
| 15013 | # An echo program that protects backslashes. |
| 15014 | ECHO=$lt_ECHO |
| 15015 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15016 | # The host system. |
| 15017 | host_alias=$host_alias |
| 15018 | host=$host |
| 15019 | host_os=$host_os |
| 15020 | |
| 15021 | # The build system. |
| 15022 | build_alias=$build_alias |
| 15023 | build=$build |
| 15024 | build_os=$build_os |
| 15025 | |
| 15026 | # A sed program that does not truncate output. |
| 15027 | SED=$lt_SED |
| 15028 | |
| 15029 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 15030 | Xsed="\$SED -e 1s/^X//" |
| 15031 | |
| 15032 | # A grep program that handles long lines. |
| 15033 | GREP=$lt_GREP |
| 15034 | |
| 15035 | # An ERE matcher. |
| 15036 | EGREP=$lt_EGREP |
| 15037 | |
| 15038 | # A literal string matcher. |
| 15039 | FGREP=$lt_FGREP |
| 15040 | |
| 15041 | # A BSD- or MS-compatible name lister. |
| 15042 | NM=$lt_NM |
| 15043 | |
| 15044 | # Whether we need soft or hard links. |
| 15045 | LN_S=$lt_LN_S |
| 15046 | |
| 15047 | # What is the maximum length of a command? |
| 15048 | max_cmd_len=$max_cmd_len |
| 15049 | |
| 15050 | # Object file suffix (normally "o"). |
| 15051 | objext=$ac_objext |
| 15052 | |
| 15053 | # Executable file suffix (normally ""). |
| 15054 | exeext=$exeext |
| 15055 | |
| 15056 | # whether the shell understands "unset". |
| 15057 | lt_unset=$lt_unset |
| 15058 | |
| 15059 | # turn spaces into newlines. |
| 15060 | SP2NL=$lt_lt_SP2NL |
| 15061 | |
| 15062 | # turn newlines into spaces. |
| 15063 | NL2SP=$lt_lt_NL2SP |
| 15064 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15065 | # convert \$build file names to \$host format. |
| 15066 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 15067 | |
| 15068 | # convert \$build files to toolchain format. |
| 15069 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 15070 | |
| 15071 | # An object symbol dumper. |
| 15072 | OBJDUMP=$lt_OBJDUMP |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15073 | |
| 15074 | # Method to check whether dependent libraries are shared objects. |
| 15075 | deplibs_check_method=$lt_deplibs_check_method |
| 15076 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15077 | # Command to use when deplibs_check_method = "file_magic". |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15078 | file_magic_cmd=$lt_file_magic_cmd |
| 15079 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15080 | # How to find potential files when deplibs_check_method = "file_magic". |
| 15081 | file_magic_glob=$lt_file_magic_glob |
| 15082 | |
| 15083 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 15084 | want_nocaseglob=$lt_want_nocaseglob |
| 15085 | |
| 15086 | # DLL creation program. |
| 15087 | DLLTOOL=$lt_DLLTOOL |
| 15088 | |
| 15089 | # Command to associate shared and link libraries. |
| 15090 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 15091 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15092 | # The archiver. |
| 15093 | AR=$lt_AR |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15094 | |
| 15095 | # Flags to create an archive. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15096 | AR_FLAGS=$lt_AR_FLAGS |
| 15097 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15098 | # How to feed a file listing to the archiver. |
| 15099 | archiver_list_spec=$lt_archiver_list_spec |
| 15100 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15101 | # A symbol stripping program. |
| 15102 | STRIP=$lt_STRIP |
| 15103 | |
| 15104 | # Commands used to install an old-style archive. |
| 15105 | RANLIB=$lt_RANLIB |
| 15106 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15107 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15108 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15109 | # Whether to use a lock for old archive extraction. |
| 15110 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 15111 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15112 | # A C compiler. |
| 15113 | LTCC=$lt_CC |
| 15114 | |
| 15115 | # LTCC compiler flags. |
| 15116 | LTCFLAGS=$lt_CFLAGS |
| 15117 | |
| 15118 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15119 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15120 | |
| 15121 | # Transform the output of nm in a proper C declaration. |
| 15122 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15123 | |
| 15124 | # Transform the output of nm in a C name address pair. |
| 15125 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15126 | |
| 15127 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 15128 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 15129 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15130 | # Specify filename containing input files for \$NM. |
| 15131 | nm_file_list_spec=$lt_nm_file_list_spec |
| 15132 | |
| 15133 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 15134 | lt_sysroot=$lt_sysroot |
| 15135 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15136 | # The name of the directory that contains temporary libtool files. |
| 15137 | objdir=$objdir |
| 15138 | |
| 15139 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 15140 | MAGIC_CMD=$MAGIC_CMD |
| 15141 | |
| 15142 | # Must we lock files when doing compilation? |
| 15143 | need_locks=$lt_need_locks |
| 15144 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15145 | # Manifest tool. |
| 15146 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 15147 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15148 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 15149 | DSYMUTIL=$lt_DSYMUTIL |
| 15150 | |
| 15151 | # Tool to change global to local symbols on Mac OS X. |
| 15152 | NMEDIT=$lt_NMEDIT |
| 15153 | |
| 15154 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 15155 | LIPO=$lt_LIPO |
| 15156 | |
| 15157 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 15158 | OTOOL=$lt_OTOOL |
| 15159 | |
| 15160 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 15161 | OTOOL64=$lt_OTOOL64 |
| 15162 | |
| 15163 | # Old archive suffix (normally "a"). |
| 15164 | libext=$libext |
| 15165 | |
| 15166 | # Shared library suffix (normally ".so"). |
| 15167 | shrext_cmds=$lt_shrext_cmds |
| 15168 | |
| 15169 | # The commands to extract the exported symbol list from a shared archive. |
| 15170 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15171 | |
| 15172 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15173 | # restored at link time. |
| 15174 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 15175 | |
| 15176 | # Do we need the "lib" prefix for modules? |
| 15177 | need_lib_prefix=$need_lib_prefix |
| 15178 | |
| 15179 | # Do we need a version for libraries? |
| 15180 | need_version=$need_version |
| 15181 | |
| 15182 | # Library versioning type. |
| 15183 | version_type=$version_type |
| 15184 | |
| 15185 | # Shared library runtime path variable. |
| 15186 | runpath_var=$runpath_var |
| 15187 | |
| 15188 | # Shared library path variable. |
| 15189 | shlibpath_var=$shlibpath_var |
| 15190 | |
| 15191 | # Is shlibpath searched before the hard-coded library search path? |
| 15192 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15193 | |
| 15194 | # Format of library name prefix. |
| 15195 | libname_spec=$lt_libname_spec |
| 15196 | |
| 15197 | # List of archive names. First name is the real one, the rest are links. |
| 15198 | # The last name is the one that the linker finds with -lNAME |
| 15199 | library_names_spec=$lt_library_names_spec |
| 15200 | |
| 15201 | # The coded name of the library, if different from the real name. |
| 15202 | soname_spec=$lt_soname_spec |
| 15203 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15204 | # Permission mode override for installation of shared libraries. |
| 15205 | install_override_mode=$lt_install_override_mode |
| 15206 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15207 | # Command to use after installation of a shared archive. |
| 15208 | postinstall_cmds=$lt_postinstall_cmds |
| 15209 | |
| 15210 | # Command to use after uninstallation of a shared archive. |
| 15211 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15212 | |
| 15213 | # Commands used to finish a libtool library installation in a directory. |
| 15214 | finish_cmds=$lt_finish_cmds |
| 15215 | |
| 15216 | # As "finish_cmds", except a single script fragment to be evaled but |
| 15217 | # not shown. |
| 15218 | finish_eval=$lt_finish_eval |
| 15219 | |
| 15220 | # Whether we should hardcode library paths into libraries. |
| 15221 | hardcode_into_libs=$hardcode_into_libs |
| 15222 | |
| 15223 | # Compile-time system search path for libraries. |
| 15224 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15225 | |
| 15226 | # Run-time system search path for libraries. |
| 15227 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15228 | |
| 15229 | # Whether dlopen is supported. |
| 15230 | dlopen_support=$enable_dlopen |
| 15231 | |
| 15232 | # Whether dlopen of programs is supported. |
| 15233 | dlopen_self=$enable_dlopen_self |
| 15234 | |
| 15235 | # Whether dlopen of statically linked programs is supported. |
| 15236 | dlopen_self_static=$enable_dlopen_self_static |
| 15237 | |
| 15238 | # Commands to strip libraries. |
| 15239 | old_striplib=$lt_old_striplib |
| 15240 | striplib=$lt_striplib |
| 15241 | |
| 15242 | |
| 15243 | # The linker used to build libraries. |
| 15244 | LD=$lt_LD |
| 15245 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15246 | # How to create reloadable object files. |
| 15247 | reload_flag=$lt_reload_flag |
| 15248 | reload_cmds=$lt_reload_cmds |
| 15249 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15250 | # Commands used to build an old-style archive. |
| 15251 | old_archive_cmds=$lt_old_archive_cmds |
| 15252 | |
| 15253 | # A language specific compiler. |
| 15254 | CC=$lt_compiler |
| 15255 | |
| 15256 | # Is the compiler the GNU compiler? |
| 15257 | with_gcc=$GCC |
| 15258 | |
| 15259 | # Compiler flag to turn off builtin functions. |
| 15260 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 15261 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 15262 | # Additional compiler flags for building library objects. |
| 15263 | pic_flag=$lt_lt_prog_compiler_pic |
| 15264 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15265 | # How to pass a linker flag through the compiler. |
| 15266 | wl=$lt_lt_prog_compiler_wl |
| 15267 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15268 | # Compiler flag to prevent dynamic linking. |
| 15269 | link_static_flag=$lt_lt_prog_compiler_static |
| 15270 | |
| 15271 | # Does compiler simultaneously support -c and -o options? |
| 15272 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 15273 | |
| 15274 | # Whether or not to add -lc for building shared libraries. |
| 15275 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15276 | |
| 15277 | # Whether or not to disallow shared libs when runtime libs are static. |
| 15278 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 15279 | |
| 15280 | # Compiler flag to allow reflexive dlopens. |
| 15281 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15282 | |
| 15283 | # Compiler flag to generate shared objects directly from archives. |
| 15284 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15285 | |
| 15286 | # Whether the compiler copes with passing no objects directly. |
| 15287 | compiler_needs_object=$lt_compiler_needs_object |
| 15288 | |
| 15289 | # Create an old-style archive from a shared archive. |
| 15290 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15291 | |
| 15292 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15293 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15294 | |
| 15295 | # Commands used to build a shared archive. |
| 15296 | archive_cmds=$lt_archive_cmds |
| 15297 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15298 | |
| 15299 | # Commands used to build a loadable module if different from building |
| 15300 | # a shared archive. |
| 15301 | module_cmds=$lt_module_cmds |
| 15302 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15303 | |
| 15304 | # Whether we are building with GNU ld or not. |
| 15305 | with_gnu_ld=$lt_with_gnu_ld |
| 15306 | |
| 15307 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15308 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15309 | |
| 15310 | # Flag that enforces no undefined symbols. |
| 15311 | no_undefined_flag=$lt_no_undefined_flag |
| 15312 | |
| 15313 | # Flag to hardcode \$libdir into a binary during linking. |
| 15314 | # This must work even if \$libdir does not exist |
| 15315 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15316 | |
| 15317 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 15318 | # during linking. This must work even if \$libdir does not exist. |
| 15319 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15320 | |
| 15321 | # Whether we need a single "-rpath" flag with a separated argument. |
| 15322 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15323 | |
| 15324 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15325 | # DIR into the resulting binary. |
| 15326 | hardcode_direct=$hardcode_direct |
| 15327 | |
| 15328 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15329 | # DIR into the resulting binary and the resulting library dependency is |
| 15330 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 15331 | # library is relocated. |
| 15332 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 15333 | |
| 15334 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 15335 | # into the resulting binary. |
| 15336 | hardcode_minus_L=$hardcode_minus_L |
| 15337 | |
| 15338 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 15339 | # into the resulting binary. |
| 15340 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15341 | |
| 15342 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 15343 | # into the library and all subsequent libraries and executables linked |
| 15344 | # against it. |
| 15345 | hardcode_automatic=$hardcode_automatic |
| 15346 | |
| 15347 | # Set to yes if linker adds runtime paths of dependent libraries |
| 15348 | # to runtime path list. |
| 15349 | inherit_rpath=$inherit_rpath |
| 15350 | |
| 15351 | # Whether libtool must link a program against all its dependency libraries. |
| 15352 | link_all_deplibs=$link_all_deplibs |
| 15353 | |
| 15354 | # Set to "yes" if exported symbols are required. |
| 15355 | always_export_symbols=$always_export_symbols |
| 15356 | |
| 15357 | # The commands to list exported symbols. |
| 15358 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15359 | |
| 15360 | # Symbols that should not be listed in the preloaded symbols. |
| 15361 | exclude_expsyms=$lt_exclude_expsyms |
| 15362 | |
| 15363 | # Symbols that must always be exported. |
| 15364 | include_expsyms=$lt_include_expsyms |
| 15365 | |
| 15366 | # Commands necessary for linking programs (against libraries) with templates. |
| 15367 | prelink_cmds=$lt_prelink_cmds |
| 15368 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15369 | # Commands necessary for finishing linking programs. |
| 15370 | postlink_cmds=$lt_postlink_cmds |
| 15371 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15372 | # Specify filename containing input files. |
| 15373 | file_list_spec=$lt_file_list_spec |
| 15374 | |
| 15375 | # How to hardcode a shared library path into an executable. |
| 15376 | hardcode_action=$hardcode_action |
| 15377 | |
| 15378 | # ### END LIBTOOL CONFIG |
| 15379 | |
| 15380 | _LT_EOF |
| 15381 | |
| 15382 | case $host_os in |
| 15383 | aix3*) |
| 15384 | cat <<\_LT_EOF >> "$cfgfile" |
| 15385 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15386 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15387 | # vanish in a puff of smoke. |
| 15388 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15389 | COLLECT_NAMES= |
| 15390 | export COLLECT_NAMES |
| 15391 | fi |
| 15392 | _LT_EOF |
| 15393 | ;; |
| 15394 | esac |
| 15395 | |
| 15396 | |
| 15397 | ltmain="$ac_aux_dir/ltmain.sh" |
| 15398 | |
| 15399 | |
| 15400 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15401 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15402 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15403 | # is reportedly fixed, but why not run on old versions too? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15404 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 15405 | || (rm -f "$cfgfile"; exit 1) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15406 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15407 | if test x"$xsi_shell" = xyes; then |
| 15408 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 15409 | func_dirname ()\ |
| 15410 | {\ |
| 15411 | \ case ${1} in\ |
| 15412 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 15413 | \ * ) func_dirname_result="${3}" ;;\ |
| 15414 | \ esac\ |
| 15415 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15416 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15417 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15418 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15419 | |
| 15420 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15421 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 15422 | func_basename ()\ |
| 15423 | {\ |
| 15424 | \ func_basename_result="${1##*/}"\ |
| 15425 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15426 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15427 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15428 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15429 | |
| 15430 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15431 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 15432 | func_dirname_and_basename ()\ |
| 15433 | {\ |
| 15434 | \ case ${1} in\ |
| 15435 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 15436 | \ * ) func_dirname_result="${3}" ;;\ |
| 15437 | \ esac\ |
| 15438 | \ func_basename_result="${1##*/}"\ |
| 15439 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15440 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15441 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15442 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15443 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15444 | |
| 15445 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 15446 | func_stripname ()\ |
| 15447 | {\ |
| 15448 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 15449 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 15450 | \ func_stripname_result=${3}\ |
| 15451 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 15452 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 15453 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15454 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15455 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15456 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15457 | |
| 15458 | |
| 15459 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 15460 | func_split_long_opt ()\ |
| 15461 | {\ |
| 15462 | \ func_split_long_opt_name=${1%%=*}\ |
| 15463 | \ func_split_long_opt_arg=${1#*=}\ |
| 15464 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15465 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15466 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15467 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15468 | |
| 15469 | |
| 15470 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 15471 | func_split_short_opt ()\ |
| 15472 | {\ |
| 15473 | \ func_split_short_opt_arg=${1#??}\ |
| 15474 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 15475 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15476 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15477 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15478 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15479 | |
| 15480 | |
| 15481 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 15482 | func_lo2o ()\ |
| 15483 | {\ |
| 15484 | \ case ${1} in\ |
| 15485 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 15486 | \ *) func_lo2o_result=${1} ;;\ |
| 15487 | \ esac\ |
| 15488 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15489 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15490 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15491 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15492 | |
| 15493 | |
| 15494 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 15495 | func_xform ()\ |
| 15496 | {\ |
| 15497 | func_xform_result=${1%.*}.lo\ |
| 15498 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15499 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15500 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15501 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15502 | |
| 15503 | |
| 15504 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 15505 | func_arith ()\ |
| 15506 | {\ |
| 15507 | func_arith_result=$(( $* ))\ |
| 15508 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15509 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15510 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15511 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15512 | |
| 15513 | |
| 15514 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 15515 | func_len ()\ |
| 15516 | {\ |
| 15517 | func_len_result=${#1}\ |
| 15518 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15519 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15520 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15521 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15522 | |
| 15523 | fi |
| 15524 | |
| 15525 | if test x"$lt_shell_append" = xyes; then |
| 15526 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 15527 | func_append ()\ |
| 15528 | {\ |
| 15529 | eval "${1}+=\\${2}"\ |
| 15530 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15531 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15532 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15533 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15534 | |
| 15535 | |
| 15536 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 15537 | func_append_quoted ()\ |
| 15538 | {\ |
| 15539 | \ func_quote_for_eval "${2}"\ |
| 15540 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 15541 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15542 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15543 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15544 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15545 | |
| 15546 | |
| 15547 | # Save a `func_append' function call where possible by direct use of '+=' |
| 15548 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 15549 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15550 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15551 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15552 | else |
| 15553 | # Save a `func_append' function call even when '+=' is not available |
| 15554 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 15555 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15556 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15557 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15558 | fi |
| 15559 | |
| 15560 | if test x"$_lt_function_replace_fail" = x":"; then |
| 15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 15562 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 15563 | fi |
| 15564 | |
| 15565 | |
| 15566 | mv -f "$cfgfile" "$ofile" || |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15567 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 15568 | chmod +x "$ofile" |
| 15569 | |
| 15570 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15571 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15572 | esac |
| 15573 | done # for ac_tag |
| 15574 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15575 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15576 | as_fn_exit 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15577 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15578 | ac_clean_files=$ac_clean_files_save |
| 15579 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15580 | test $ac_write_fail = 0 || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15581 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15582 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15583 | |
| 15584 | # configure is writing to config.log, and then calls config.status. |
| 15585 | # config.status does its own redirection, appending to config.log. |
| 15586 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15587 | # by configure, so config.status won't be able to write to it; its |
| 15588 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15589 | # effectively closing config.log, so it can be properly (re)opened and |
| 15590 | # appended to by config.status. When coming back to configure, we |
| 15591 | # need to make the FD available again. |
| 15592 | if test "$no_create" != yes; then |
| 15593 | ac_cs_success=: |
| 15594 | ac_config_status_args= |
| 15595 | test "$silent" = yes && |
| 15596 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15597 | exec 5>/dev/null |
| 15598 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15599 | exec 5>>config.log |
| 15600 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15601 | # would make configure fail if this is the last instruction. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15602 | $ac_cs_success || as_fn_exit 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15603 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15604 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15605 | { $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] | 15606 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15607 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15608 | |
| 15609 | |