Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for ndn-cpp 0.5. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | as_myself= |
| 91 | case $0 in #(( |
| 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
| 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
| 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | |
| 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
| 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
| 131 | |
| 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 199 | if (eval "$as_required") 2>/dev/null; then : |
| 200 | as_have_required=yes |
| 201 | else |
| 202 | as_have_required=no |
| 203 | fi |
| 204 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 205 | |
| 206 | else |
| 207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 208 | as_found=false |
| 209 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 210 | do |
| 211 | IFS=$as_save_IFS |
| 212 | test -z "$as_dir" && as_dir=. |
| 213 | as_found=: |
| 214 | case $as_dir in #( |
| 215 | /*) |
| 216 | for as_base in sh bash ksh sh5; do |
| 217 | # Try only shells that exist, to save several forks. |
| 218 | as_shell=$as_dir/$as_base |
| 219 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 220 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 221 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 222 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 223 | break 2 |
| 224 | fi |
| 225 | fi |
| 226 | done;; |
| 227 | esac |
| 228 | as_found=false |
| 229 | done |
| 230 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 232 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 233 | fi; } |
| 234 | IFS=$as_save_IFS |
| 235 | |
| 236 | |
| 237 | if test "x$CONFIG_SHELL" != x; then : |
| 238 | export CONFIG_SHELL |
| 239 | # We cannot yet assume a decent shell, so we have to provide a |
| 240 | # neutralization value for shells without unset; and this also |
| 241 | # works around shells that cannot unset nonexistent variables. |
| 242 | # Preserve -v and -x to the replacement shell. |
| 243 | BASH_ENV=/dev/null |
| 244 | ENV=/dev/null |
| 245 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 246 | case $- in # (((( |
| 247 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 248 | *v* ) as_opts=-v ;; |
| 249 | *x* ) as_opts=-x ;; |
| 250 | * ) as_opts= ;; |
| 251 | esac |
| 252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 253 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 254 | # out after a failed `exec'. |
| 255 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 256 | exit 255 |
| 257 | fi |
| 258 | |
| 259 | if test x$as_have_required = xno; then : |
| 260 | $as_echo "$0: This script requires a shell more modern than all" |
| 261 | $as_echo "$0: the shells that I found on your system." |
| 262 | if test x${ZSH_VERSION+set} = xset ; then |
| 263 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 264 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 265 | else |
| 266 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 267 | $0: including any error possibly output before this |
| 268 | $0: message. Then install a modern shell, or manually run |
| 269 | $0: the script under such a shell if you do have one." |
| 270 | fi |
| 271 | exit 1 |
| 272 | fi |
| 273 | fi |
| 274 | fi |
| 275 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 276 | export SHELL |
| 277 | # Unset more variables known to interfere with behavior of common tools. |
| 278 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 279 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 280 | |
| 281 | ## --------------------- ## |
| 282 | ## M4sh Shell Functions. ## |
| 283 | ## --------------------- ## |
| 284 | # as_fn_unset VAR |
| 285 | # --------------- |
| 286 | # Portably unset VAR. |
| 287 | as_fn_unset () |
| 288 | { |
| 289 | { eval $1=; unset $1;} |
| 290 | } |
| 291 | as_unset=as_fn_unset |
| 292 | |
| 293 | # as_fn_set_status STATUS |
| 294 | # ----------------------- |
| 295 | # Set $? to STATUS, without forking. |
| 296 | as_fn_set_status () |
| 297 | { |
| 298 | return $1 |
| 299 | } # as_fn_set_status |
| 300 | |
| 301 | # as_fn_exit STATUS |
| 302 | # ----------------- |
| 303 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 304 | as_fn_exit () |
| 305 | { |
| 306 | set +e |
| 307 | as_fn_set_status $1 |
| 308 | exit $1 |
| 309 | } # as_fn_exit |
| 310 | |
| 311 | # as_fn_mkdir_p |
| 312 | # ------------- |
| 313 | # Create "$as_dir" as a directory, including parents if necessary. |
| 314 | as_fn_mkdir_p () |
| 315 | { |
| 316 | |
| 317 | case $as_dir in #( |
| 318 | -*) as_dir=./$as_dir;; |
| 319 | esac |
| 320 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 321 | as_dirs= |
| 322 | while :; do |
| 323 | case $as_dir in #( |
| 324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 325 | *) as_qdir=$as_dir;; |
| 326 | esac |
| 327 | as_dirs="'$as_qdir' $as_dirs" |
| 328 | as_dir=`$as_dirname -- "$as_dir" || |
| 329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 330 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 331 | X"$as_dir" : 'X\(//\)$' \| \ |
| 332 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 333 | $as_echo X"$as_dir" | |
| 334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 335 | s//\1/ |
| 336 | q |
| 337 | } |
| 338 | /^X\(\/\/\)[^/].*/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)$/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\).*/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | s/.*/./; q'` |
| 351 | test -d "$as_dir" && break |
| 352 | done |
| 353 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 354 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 355 | |
| 356 | |
| 357 | } # as_fn_mkdir_p |
| 358 | |
| 359 | # as_fn_executable_p FILE |
| 360 | # ----------------------- |
| 361 | # Test if FILE is an executable regular file. |
| 362 | as_fn_executable_p () |
| 363 | { |
| 364 | test -f "$1" && test -x "$1" |
| 365 | } # as_fn_executable_p |
| 366 | # as_fn_append VAR VALUE |
| 367 | # ---------------------- |
| 368 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 369 | # advantage of any shell optimizations that allow amortized linear growth over |
| 370 | # repeated appends, instead of the typical quadratic growth present in naive |
| 371 | # implementations. |
| 372 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 373 | eval 'as_fn_append () |
| 374 | { |
| 375 | eval $1+=\$2 |
| 376 | }' |
| 377 | else |
| 378 | as_fn_append () |
| 379 | { |
| 380 | eval $1=\$$1\$2 |
| 381 | } |
| 382 | fi # as_fn_append |
| 383 | |
| 384 | # as_fn_arith ARG... |
| 385 | # ------------------ |
| 386 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 387 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 388 | # must be portable across $(()) and expr. |
| 389 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 390 | eval 'as_fn_arith () |
| 391 | { |
| 392 | as_val=$(( $* )) |
| 393 | }' |
| 394 | else |
| 395 | as_fn_arith () |
| 396 | { |
| 397 | as_val=`expr "$@" || test $? -eq 1` |
| 398 | } |
| 399 | fi # as_fn_arith |
| 400 | |
| 401 | |
| 402 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 403 | # ---------------------------------------- |
| 404 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 405 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 406 | # script with STATUS, using 1 if that was 0. |
| 407 | as_fn_error () |
| 408 | { |
| 409 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 410 | if test "$4"; then |
| 411 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 412 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 413 | fi |
| 414 | $as_echo "$as_me: error: $2" >&2 |
| 415 | as_fn_exit $as_status |
| 416 | } # as_fn_error |
| 417 | |
| 418 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 419 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 420 | as_expr=expr |
| 421 | else |
| 422 | as_expr=false |
| 423 | fi |
| 424 | |
| 425 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 426 | as_basename=basename |
| 427 | else |
| 428 | as_basename=false |
| 429 | fi |
| 430 | |
| 431 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 432 | as_dirname=dirname |
| 433 | else |
| 434 | as_dirname=false |
| 435 | fi |
| 436 | |
| 437 | as_me=`$as_basename -- "$0" || |
| 438 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 439 | X"$0" : 'X\(//\)$' \| \ |
| 440 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 441 | $as_echo X/"$0" | |
| 442 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 443 | s//\1/ |
| 444 | q |
| 445 | } |
| 446 | /^X\/\(\/\/\)$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\).*/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | s/.*/./; q'` |
| 455 | |
| 456 | # Avoid depending upon Character Ranges. |
| 457 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 458 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 459 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 460 | as_cr_digits='0123456789' |
| 461 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 462 | |
| 463 | |
| 464 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 465 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 466 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 467 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 468 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 469 | sed -n ' |
| 470 | p |
| 471 | /[$]LINENO/= |
| 472 | ' <$as_myself | |
| 473 | sed ' |
| 474 | s/[$]LINENO.*/&-/ |
| 475 | t lineno |
| 476 | b |
| 477 | :lineno |
| 478 | N |
| 479 | :loop |
| 480 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 481 | t loop |
| 482 | s/-\n.*// |
| 483 | ' >$as_me.lineno && |
| 484 | chmod +x "$as_me.lineno" || |
| 485 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 486 | |
| 487 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 488 | # already done that, so ensure we don't try to do so again and fall |
| 489 | # in an infinite loop. This has already happened in practice. |
| 490 | _as_can_reexec=no; export _as_can_reexec |
| 491 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 492 | # (the dirname of $[0] is not the place where we might find the |
| 493 | # original and so on. Autoconf is especially sensitive to this). |
| 494 | . "./$as_me.lineno" |
| 495 | # Exit status is that of the last command. |
| 496 | exit |
| 497 | } |
| 498 | |
| 499 | ECHO_C= ECHO_N= ECHO_T= |
| 500 | case `echo -n x` in #((((( |
| 501 | -n*) |
| 502 | case `echo 'xy\c'` in |
| 503 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 504 | xy) ECHO_C='\c';; |
| 505 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 506 | ECHO_T=' ';; |
| 507 | esac;; |
| 508 | *) |
| 509 | ECHO_N='-n';; |
| 510 | esac |
| 511 | |
| 512 | rm -f conf$$ conf$$.exe conf$$.file |
| 513 | if test -d conf$$.dir; then |
| 514 | rm -f conf$$.dir/conf$$.file |
| 515 | else |
| 516 | rm -f conf$$.dir |
| 517 | mkdir conf$$.dir 2>/dev/null |
| 518 | fi |
| 519 | if (echo >conf$$.file) 2>/dev/null; then |
| 520 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 521 | as_ln_s='ln -s' |
| 522 | # ... but there are two gotchas: |
| 523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 525 | # In both cases, we have to default to `cp -pR'. |
| 526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 527 | as_ln_s='cp -pR' |
| 528 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 529 | as_ln_s=ln |
| 530 | else |
| 531 | as_ln_s='cp -pR' |
| 532 | fi |
| 533 | else |
| 534 | as_ln_s='cp -pR' |
| 535 | fi |
| 536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 537 | rmdir conf$$.dir 2>/dev/null |
| 538 | |
| 539 | if mkdir -p . 2>/dev/null; then |
| 540 | as_mkdir_p='mkdir -p "$as_dir"' |
| 541 | else |
| 542 | test -d ./-p && rmdir ./-p |
| 543 | as_mkdir_p=false |
| 544 | fi |
| 545 | |
| 546 | as_test_x='test -x' |
| 547 | as_executable_p=as_fn_executable_p |
| 548 | |
| 549 | # Sed expression to map a string onto a valid CPP name. |
| 550 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 551 | |
| 552 | # Sed expression to map a string onto a valid variable name. |
| 553 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 554 | |
| 555 | |
| 556 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 557 | exec 6>&1 |
| 558 | |
| 559 | # Name of the host. |
| 560 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 561 | # so uname gets run too. |
| 562 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 563 | |
| 564 | # |
| 565 | # Initializations. |
| 566 | # |
| 567 | ac_default_prefix=/usr/local |
| 568 | ac_clean_files= |
| 569 | ac_config_libobj_dir=. |
| 570 | LIBOBJS= |
| 571 | cross_compiling=no |
| 572 | subdirs= |
| 573 | MFLAGS= |
| 574 | MAKEFLAGS= |
| 575 | |
| 576 | # Identity of this package. |
| 577 | PACKAGE_NAME='ndn-cpp' |
| 578 | PACKAGE_TARNAME='ndn-cpp' |
| 579 | PACKAGE_VERSION='0.5' |
| 580 | PACKAGE_STRING='ndn-cpp 0.5' |
| 581 | PACKAGE_BUGREPORT='' |
| 582 | PACKAGE_URL='https://github.com/named-data/ndn-cpp' |
| 583 | |
| 584 | ac_subst_vars='am__EXEEXT_FALSE |
| 585 | am__EXEEXT_TRUE |
| 586 | LTLIBOBJS |
| 587 | LIBOBJS |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame^] | 588 | HAVE_CXX11 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 589 | am__fastdepCXX_FALSE |
| 590 | am__fastdepCXX_TRUE |
| 591 | CXXDEPMODE |
| 592 | am__nodep |
| 593 | AMDEPBACKSLASH |
| 594 | AMDEP_FALSE |
| 595 | AMDEP_TRUE |
| 596 | am__quote |
| 597 | am__include |
| 598 | DEPDIR |
| 599 | OBJEXT |
| 600 | EXEEXT |
| 601 | ac_ct_CXX |
| 602 | CPPFLAGS |
| 603 | LDFLAGS |
| 604 | CXXFLAGS |
| 605 | CXX |
| 606 | AM_BACKSLASH |
| 607 | AM_DEFAULT_VERBOSITY |
| 608 | AM_DEFAULT_V |
| 609 | AM_V |
| 610 | am__untar |
| 611 | am__tar |
| 612 | AMTAR |
| 613 | am__leading_dot |
| 614 | SET_MAKE |
| 615 | AWK |
| 616 | mkdir_p |
| 617 | MKDIR_P |
| 618 | INSTALL_STRIP_PROGRAM |
| 619 | STRIP |
| 620 | install_sh |
| 621 | MAKEINFO |
| 622 | AUTOHEADER |
| 623 | AUTOMAKE |
| 624 | AUTOCONF |
| 625 | ACLOCAL |
| 626 | VERSION |
| 627 | PACKAGE |
| 628 | CYGPATH_W |
| 629 | am__isrc |
| 630 | INSTALL_DATA |
| 631 | INSTALL_SCRIPT |
| 632 | INSTALL_PROGRAM |
| 633 | target_alias |
| 634 | host_alias |
| 635 | build_alias |
| 636 | LIBS |
| 637 | ECHO_T |
| 638 | ECHO_N |
| 639 | ECHO_C |
| 640 | DEFS |
| 641 | mandir |
| 642 | localedir |
| 643 | libdir |
| 644 | psdir |
| 645 | pdfdir |
| 646 | dvidir |
| 647 | htmldir |
| 648 | infodir |
| 649 | docdir |
| 650 | oldincludedir |
| 651 | includedir |
| 652 | localstatedir |
| 653 | sharedstatedir |
| 654 | sysconfdir |
| 655 | datadir |
| 656 | datarootdir |
| 657 | libexecdir |
| 658 | sbindir |
| 659 | bindir |
| 660 | program_transform_name |
| 661 | prefix |
| 662 | exec_prefix |
| 663 | PACKAGE_URL |
| 664 | PACKAGE_BUGREPORT |
| 665 | PACKAGE_STRING |
| 666 | PACKAGE_VERSION |
| 667 | PACKAGE_TARNAME |
| 668 | PACKAGE_NAME |
| 669 | PATH_SEPARATOR |
| 670 | SHELL' |
| 671 | ac_subst_files='' |
| 672 | ac_user_opts=' |
| 673 | enable_option_checking |
| 674 | enable_silent_rules |
| 675 | enable_dependency_tracking |
| 676 | ' |
| 677 | ac_precious_vars='build_alias |
| 678 | host_alias |
| 679 | target_alias |
| 680 | CXX |
| 681 | CXXFLAGS |
| 682 | LDFLAGS |
| 683 | LIBS |
| 684 | CPPFLAGS |
| 685 | CCC' |
| 686 | |
| 687 | |
| 688 | # Initialize some variables set by options. |
| 689 | ac_init_help= |
| 690 | ac_init_version=false |
| 691 | ac_unrecognized_opts= |
| 692 | ac_unrecognized_sep= |
| 693 | # The variables have the same names as the options, with |
| 694 | # dashes changed to underlines. |
| 695 | cache_file=/dev/null |
| 696 | exec_prefix=NONE |
| 697 | no_create= |
| 698 | no_recursion= |
| 699 | prefix=NONE |
| 700 | program_prefix=NONE |
| 701 | program_suffix=NONE |
| 702 | program_transform_name=s,x,x, |
| 703 | silent= |
| 704 | site= |
| 705 | srcdir= |
| 706 | verbose= |
| 707 | x_includes=NONE |
| 708 | x_libraries=NONE |
| 709 | |
| 710 | # Installation directory options. |
| 711 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 712 | # and all the variables that are supposed to be based on exec_prefix |
| 713 | # by default will actually change. |
| 714 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 715 | # (The list follows the same order as the GNU Coding Standards.) |
| 716 | bindir='${exec_prefix}/bin' |
| 717 | sbindir='${exec_prefix}/sbin' |
| 718 | libexecdir='${exec_prefix}/libexec' |
| 719 | datarootdir='${prefix}/share' |
| 720 | datadir='${datarootdir}' |
| 721 | sysconfdir='${prefix}/etc' |
| 722 | sharedstatedir='${prefix}/com' |
| 723 | localstatedir='${prefix}/var' |
| 724 | includedir='${prefix}/include' |
| 725 | oldincludedir='/usr/include' |
| 726 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 727 | infodir='${datarootdir}/info' |
| 728 | htmldir='${docdir}' |
| 729 | dvidir='${docdir}' |
| 730 | pdfdir='${docdir}' |
| 731 | psdir='${docdir}' |
| 732 | libdir='${exec_prefix}/lib' |
| 733 | localedir='${datarootdir}/locale' |
| 734 | mandir='${datarootdir}/man' |
| 735 | |
| 736 | ac_prev= |
| 737 | ac_dashdash= |
| 738 | for ac_option |
| 739 | do |
| 740 | # If the previous option needs an argument, assign it. |
| 741 | if test -n "$ac_prev"; then |
| 742 | eval $ac_prev=\$ac_option |
| 743 | ac_prev= |
| 744 | continue |
| 745 | fi |
| 746 | |
| 747 | case $ac_option in |
| 748 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 749 | *=) ac_optarg= ;; |
| 750 | *) ac_optarg=yes ;; |
| 751 | esac |
| 752 | |
| 753 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 754 | |
| 755 | case $ac_dashdash$ac_option in |
| 756 | --) |
| 757 | ac_dashdash=yes ;; |
| 758 | |
| 759 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 760 | ac_prev=bindir ;; |
| 761 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 762 | bindir=$ac_optarg ;; |
| 763 | |
| 764 | -build | --build | --buil | --bui | --bu) |
| 765 | ac_prev=build_alias ;; |
| 766 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 767 | build_alias=$ac_optarg ;; |
| 768 | |
| 769 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 770 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 771 | ac_prev=cache_file ;; |
| 772 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 773 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 774 | cache_file=$ac_optarg ;; |
| 775 | |
| 776 | --config-cache | -C) |
| 777 | cache_file=config.cache ;; |
| 778 | |
| 779 | -datadir | --datadir | --datadi | --datad) |
| 780 | ac_prev=datadir ;; |
| 781 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 782 | datadir=$ac_optarg ;; |
| 783 | |
| 784 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 785 | | --dataroo | --dataro | --datar) |
| 786 | ac_prev=datarootdir ;; |
| 787 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 788 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 789 | datarootdir=$ac_optarg ;; |
| 790 | |
| 791 | -disable-* | --disable-*) |
| 792 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 793 | # Reject names that are not valid shell variable names. |
| 794 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 795 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 796 | ac_useropt_orig=$ac_useropt |
| 797 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 798 | case $ac_user_opts in |
| 799 | *" |
| 800 | "enable_$ac_useropt" |
| 801 | "*) ;; |
| 802 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 803 | ac_unrecognized_sep=', ';; |
| 804 | esac |
| 805 | eval enable_$ac_useropt=no ;; |
| 806 | |
| 807 | -docdir | --docdir | --docdi | --doc | --do) |
| 808 | ac_prev=docdir ;; |
| 809 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 810 | docdir=$ac_optarg ;; |
| 811 | |
| 812 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 813 | ac_prev=dvidir ;; |
| 814 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 815 | dvidir=$ac_optarg ;; |
| 816 | |
| 817 | -enable-* | --enable-*) |
| 818 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 819 | # Reject names that are not valid shell variable names. |
| 820 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 821 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 822 | ac_useropt_orig=$ac_useropt |
| 823 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 824 | case $ac_user_opts in |
| 825 | *" |
| 826 | "enable_$ac_useropt" |
| 827 | "*) ;; |
| 828 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 829 | ac_unrecognized_sep=', ';; |
| 830 | esac |
| 831 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 832 | |
| 833 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 834 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 835 | | --exec | --exe | --ex) |
| 836 | ac_prev=exec_prefix ;; |
| 837 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 838 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 839 | | --exec=* | --exe=* | --ex=*) |
| 840 | exec_prefix=$ac_optarg ;; |
| 841 | |
| 842 | -gas | --gas | --ga | --g) |
| 843 | # Obsolete; use --with-gas. |
| 844 | with_gas=yes ;; |
| 845 | |
| 846 | -help | --help | --hel | --he | -h) |
| 847 | ac_init_help=long ;; |
| 848 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 849 | ac_init_help=recursive ;; |
| 850 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 851 | ac_init_help=short ;; |
| 852 | |
| 853 | -host | --host | --hos | --ho) |
| 854 | ac_prev=host_alias ;; |
| 855 | -host=* | --host=* | --hos=* | --ho=*) |
| 856 | host_alias=$ac_optarg ;; |
| 857 | |
| 858 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 859 | ac_prev=htmldir ;; |
| 860 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 861 | | --ht=*) |
| 862 | htmldir=$ac_optarg ;; |
| 863 | |
| 864 | -includedir | --includedir | --includedi | --included | --include \ |
| 865 | | --includ | --inclu | --incl | --inc) |
| 866 | ac_prev=includedir ;; |
| 867 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 868 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 869 | includedir=$ac_optarg ;; |
| 870 | |
| 871 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 872 | ac_prev=infodir ;; |
| 873 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 874 | infodir=$ac_optarg ;; |
| 875 | |
| 876 | -libdir | --libdir | --libdi | --libd) |
| 877 | ac_prev=libdir ;; |
| 878 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 879 | libdir=$ac_optarg ;; |
| 880 | |
| 881 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 882 | | --libexe | --libex | --libe) |
| 883 | ac_prev=libexecdir ;; |
| 884 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 885 | | --libexe=* | --libex=* | --libe=*) |
| 886 | libexecdir=$ac_optarg ;; |
| 887 | |
| 888 | -localedir | --localedir | --localedi | --localed | --locale) |
| 889 | ac_prev=localedir ;; |
| 890 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 891 | localedir=$ac_optarg ;; |
| 892 | |
| 893 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 894 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 895 | ac_prev=localstatedir ;; |
| 896 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 897 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 898 | localstatedir=$ac_optarg ;; |
| 899 | |
| 900 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 901 | ac_prev=mandir ;; |
| 902 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 903 | mandir=$ac_optarg ;; |
| 904 | |
| 905 | -nfp | --nfp | --nf) |
| 906 | # Obsolete; use --without-fp. |
| 907 | with_fp=no ;; |
| 908 | |
| 909 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 910 | | --no-cr | --no-c | -n) |
| 911 | no_create=yes ;; |
| 912 | |
| 913 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 914 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 915 | no_recursion=yes ;; |
| 916 | |
| 917 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 918 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 919 | | --oldin | --oldi | --old | --ol | --o) |
| 920 | ac_prev=oldincludedir ;; |
| 921 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 922 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 923 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 924 | oldincludedir=$ac_optarg ;; |
| 925 | |
| 926 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 927 | ac_prev=prefix ;; |
| 928 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 929 | prefix=$ac_optarg ;; |
| 930 | |
| 931 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 932 | | --program-pre | --program-pr | --program-p) |
| 933 | ac_prev=program_prefix ;; |
| 934 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 935 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 936 | program_prefix=$ac_optarg ;; |
| 937 | |
| 938 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 939 | | --program-suf | --program-su | --program-s) |
| 940 | ac_prev=program_suffix ;; |
| 941 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 942 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 943 | program_suffix=$ac_optarg ;; |
| 944 | |
| 945 | -program-transform-name | --program-transform-name \ |
| 946 | | --program-transform-nam | --program-transform-na \ |
| 947 | | --program-transform-n | --program-transform- \ |
| 948 | | --program-transform | --program-transfor \ |
| 949 | | --program-transfo | --program-transf \ |
| 950 | | --program-trans | --program-tran \ |
| 951 | | --progr-tra | --program-tr | --program-t) |
| 952 | ac_prev=program_transform_name ;; |
| 953 | -program-transform-name=* | --program-transform-name=* \ |
| 954 | | --program-transform-nam=* | --program-transform-na=* \ |
| 955 | | --program-transform-n=* | --program-transform-=* \ |
| 956 | | --program-transform=* | --program-transfor=* \ |
| 957 | | --program-transfo=* | --program-transf=* \ |
| 958 | | --program-trans=* | --program-tran=* \ |
| 959 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 960 | program_transform_name=$ac_optarg ;; |
| 961 | |
| 962 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 963 | ac_prev=pdfdir ;; |
| 964 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 965 | pdfdir=$ac_optarg ;; |
| 966 | |
| 967 | -psdir | --psdir | --psdi | --psd | --ps) |
| 968 | ac_prev=psdir ;; |
| 969 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 970 | psdir=$ac_optarg ;; |
| 971 | |
| 972 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 973 | | -silent | --silent | --silen | --sile | --sil) |
| 974 | silent=yes ;; |
| 975 | |
| 976 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 977 | ac_prev=sbindir ;; |
| 978 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 979 | | --sbi=* | --sb=*) |
| 980 | sbindir=$ac_optarg ;; |
| 981 | |
| 982 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 983 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 984 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 985 | | --sha | --sh) |
| 986 | ac_prev=sharedstatedir ;; |
| 987 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 988 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 989 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 990 | | --sha=* | --sh=*) |
| 991 | sharedstatedir=$ac_optarg ;; |
| 992 | |
| 993 | -site | --site | --sit) |
| 994 | ac_prev=site ;; |
| 995 | -site=* | --site=* | --sit=*) |
| 996 | site=$ac_optarg ;; |
| 997 | |
| 998 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 999 | ac_prev=srcdir ;; |
| 1000 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1001 | srcdir=$ac_optarg ;; |
| 1002 | |
| 1003 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1004 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1005 | ac_prev=sysconfdir ;; |
| 1006 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1007 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1008 | sysconfdir=$ac_optarg ;; |
| 1009 | |
| 1010 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1011 | ac_prev=target_alias ;; |
| 1012 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1013 | target_alias=$ac_optarg ;; |
| 1014 | |
| 1015 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1016 | verbose=yes ;; |
| 1017 | |
| 1018 | -version | --version | --versio | --versi | --vers | -V) |
| 1019 | ac_init_version=: ;; |
| 1020 | |
| 1021 | -with-* | --with-*) |
| 1022 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1023 | # Reject names that are not valid shell variable names. |
| 1024 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1025 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1026 | ac_useropt_orig=$ac_useropt |
| 1027 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1028 | case $ac_user_opts in |
| 1029 | *" |
| 1030 | "with_$ac_useropt" |
| 1031 | "*) ;; |
| 1032 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1033 | ac_unrecognized_sep=', ';; |
| 1034 | esac |
| 1035 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1036 | |
| 1037 | -without-* | --without-*) |
| 1038 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1039 | # Reject names that are not valid shell variable names. |
| 1040 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1041 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1042 | ac_useropt_orig=$ac_useropt |
| 1043 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1044 | case $ac_user_opts in |
| 1045 | *" |
| 1046 | "with_$ac_useropt" |
| 1047 | "*) ;; |
| 1048 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1049 | ac_unrecognized_sep=', ';; |
| 1050 | esac |
| 1051 | eval with_$ac_useropt=no ;; |
| 1052 | |
| 1053 | --x) |
| 1054 | # Obsolete; use --with-x. |
| 1055 | with_x=yes ;; |
| 1056 | |
| 1057 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1058 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1059 | ac_prev=x_includes ;; |
| 1060 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1061 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1062 | x_includes=$ac_optarg ;; |
| 1063 | |
| 1064 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1065 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1066 | ac_prev=x_libraries ;; |
| 1067 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1068 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1069 | x_libraries=$ac_optarg ;; |
| 1070 | |
| 1071 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1072 | Try \`$0 --help' for more information" |
| 1073 | ;; |
| 1074 | |
| 1075 | *=*) |
| 1076 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1077 | # Reject names that are not valid shell variable names. |
| 1078 | case $ac_envvar in #( |
| 1079 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1080 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1081 | esac |
| 1082 | eval $ac_envvar=\$ac_optarg |
| 1083 | export $ac_envvar ;; |
| 1084 | |
| 1085 | *) |
| 1086 | # FIXME: should be removed in autoconf 3.0. |
| 1087 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1088 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1089 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1090 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1091 | ;; |
| 1092 | |
| 1093 | esac |
| 1094 | done |
| 1095 | |
| 1096 | if test -n "$ac_prev"; then |
| 1097 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1098 | as_fn_error $? "missing argument to $ac_option" |
| 1099 | fi |
| 1100 | |
| 1101 | if test -n "$ac_unrecognized_opts"; then |
| 1102 | case $enable_option_checking in |
| 1103 | no) ;; |
| 1104 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1105 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1106 | esac |
| 1107 | fi |
| 1108 | |
| 1109 | # Check all directory arguments for consistency. |
| 1110 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1111 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1112 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1113 | libdir localedir mandir |
| 1114 | do |
| 1115 | eval ac_val=\$$ac_var |
| 1116 | # Remove trailing slashes. |
| 1117 | case $ac_val in |
| 1118 | */ ) |
| 1119 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1120 | eval $ac_var=\$ac_val;; |
| 1121 | esac |
| 1122 | # Be sure to have absolute directory names. |
| 1123 | case $ac_val in |
| 1124 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1125 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1126 | esac |
| 1127 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1128 | done |
| 1129 | |
| 1130 | # There might be people who depend on the old broken behavior: `$host' |
| 1131 | # used to hold the argument of --host etc. |
| 1132 | # FIXME: To remove some day. |
| 1133 | build=$build_alias |
| 1134 | host=$host_alias |
| 1135 | target=$target_alias |
| 1136 | |
| 1137 | # FIXME: To remove some day. |
| 1138 | if test "x$host_alias" != x; then |
| 1139 | if test "x$build_alias" = x; then |
| 1140 | cross_compiling=maybe |
| 1141 | elif test "x$build_alias" != "x$host_alias"; then |
| 1142 | cross_compiling=yes |
| 1143 | fi |
| 1144 | fi |
| 1145 | |
| 1146 | ac_tool_prefix= |
| 1147 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1148 | |
| 1149 | test "$silent" = yes && exec 6>/dev/null |
| 1150 | |
| 1151 | |
| 1152 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1153 | ac_ls_di=`ls -di .` && |
| 1154 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1155 | as_fn_error $? "working directory cannot be determined" |
| 1156 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1157 | as_fn_error $? "pwd does not report name of working directory" |
| 1158 | |
| 1159 | |
| 1160 | # Find the source files, if location was not specified. |
| 1161 | if test -z "$srcdir"; then |
| 1162 | ac_srcdir_defaulted=yes |
| 1163 | # Try the directory containing this script, then the parent directory. |
| 1164 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1165 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1166 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1167 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1168 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1169 | $as_echo X"$as_myself" | |
| 1170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1171 | s//\1/ |
| 1172 | q |
| 1173 | } |
| 1174 | /^X\(\/\/\)[^/].*/{ |
| 1175 | s//\1/ |
| 1176 | q |
| 1177 | } |
| 1178 | /^X\(\/\/\)$/{ |
| 1179 | s//\1/ |
| 1180 | q |
| 1181 | } |
| 1182 | /^X\(\/\).*/{ |
| 1183 | s//\1/ |
| 1184 | q |
| 1185 | } |
| 1186 | s/.*/./; q'` |
| 1187 | srcdir=$ac_confdir |
| 1188 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1189 | srcdir=.. |
| 1190 | fi |
| 1191 | else |
| 1192 | ac_srcdir_defaulted=no |
| 1193 | fi |
| 1194 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1195 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1196 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1197 | fi |
| 1198 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1199 | ac_abs_confdir=`( |
| 1200 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1201 | pwd)` |
| 1202 | # When building in place, set srcdir=. |
| 1203 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1204 | srcdir=. |
| 1205 | fi |
| 1206 | # Remove unnecessary trailing slashes from srcdir. |
| 1207 | # Double slashes in file names in object file debugging info |
| 1208 | # mess up M-x gdb in Emacs. |
| 1209 | case $srcdir in |
| 1210 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1211 | esac |
| 1212 | for ac_var in $ac_precious_vars; do |
| 1213 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1214 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1215 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1216 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1217 | done |
| 1218 | |
| 1219 | # |
| 1220 | # Report the --help message. |
| 1221 | # |
| 1222 | if test "$ac_init_help" = "long"; then |
| 1223 | # Omit some internal or obsolete options to make the list less imposing. |
| 1224 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1225 | cat <<_ACEOF |
| 1226 | \`configure' configures ndn-cpp 0.5 to adapt to many kinds of systems. |
| 1227 | |
| 1228 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1229 | |
| 1230 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1231 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1232 | |
| 1233 | Defaults for the options are specified in brackets. |
| 1234 | |
| 1235 | Configuration: |
| 1236 | -h, --help display this help and exit |
| 1237 | --help=short display options specific to this package |
| 1238 | --help=recursive display the short help of all the included packages |
| 1239 | -V, --version display version information and exit |
| 1240 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1241 | --cache-file=FILE cache test results in FILE [disabled] |
| 1242 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1243 | -n, --no-create do not create output files |
| 1244 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1245 | |
| 1246 | Installation directories: |
| 1247 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1248 | [$ac_default_prefix] |
| 1249 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1250 | [PREFIX] |
| 1251 | |
| 1252 | By default, \`make install' will install all the files in |
| 1253 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1254 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1255 | for instance \`--prefix=\$HOME'. |
| 1256 | |
| 1257 | For better control, use the options below. |
| 1258 | |
| 1259 | Fine tuning of the installation directories: |
| 1260 | --bindir=DIR user executables [EPREFIX/bin] |
| 1261 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1262 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1263 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1264 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1265 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1266 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1267 | --includedir=DIR C header files [PREFIX/include] |
| 1268 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1269 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1270 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1271 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1272 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1273 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1274 | --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp] |
| 1275 | --htmldir=DIR html documentation [DOCDIR] |
| 1276 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1277 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1278 | --psdir=DIR ps documentation [DOCDIR] |
| 1279 | _ACEOF |
| 1280 | |
| 1281 | cat <<\_ACEOF |
| 1282 | |
| 1283 | Program names: |
| 1284 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1285 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1286 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1287 | _ACEOF |
| 1288 | fi |
| 1289 | |
| 1290 | if test -n "$ac_init_help"; then |
| 1291 | case $ac_init_help in |
| 1292 | short | recursive ) echo "Configuration of ndn-cpp 0.5:";; |
| 1293 | esac |
| 1294 | cat <<\_ACEOF |
| 1295 | |
| 1296 | Optional Features: |
| 1297 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1300 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1301 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1302 | --enable-dependency-tracking |
| 1303 | do not reject slow dependency extractors |
| 1304 | --disable-dependency-tracking |
| 1305 | speeds up one-time build |
| 1306 | |
| 1307 | Some influential environment variables: |
| 1308 | CXX C++ compiler command |
| 1309 | CXXFLAGS C++ compiler flags |
| 1310 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1311 | nonstandard directory <lib dir> |
| 1312 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1313 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1314 | you have headers in a nonstandard directory <include dir> |
| 1315 | |
| 1316 | Use these variables to override the choices made by `configure' or to help |
| 1317 | it to find libraries and programs with nonstandard names/locations. |
| 1318 | |
| 1319 | Report bugs to the package provider. |
| 1320 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>. |
| 1321 | _ACEOF |
| 1322 | ac_status=$? |
| 1323 | fi |
| 1324 | |
| 1325 | if test "$ac_init_help" = "recursive"; then |
| 1326 | # If there are subdirs, report their specific --help. |
| 1327 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1328 | test -d "$ac_dir" || |
| 1329 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1330 | continue |
| 1331 | ac_builddir=. |
| 1332 | |
| 1333 | case "$ac_dir" in |
| 1334 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1335 | *) |
| 1336 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1337 | # A ".." for each directory in $ac_dir_suffix. |
| 1338 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1339 | case $ac_top_builddir_sub in |
| 1340 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1341 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1342 | esac ;; |
| 1343 | esac |
| 1344 | ac_abs_top_builddir=$ac_pwd |
| 1345 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1346 | # for backward compatibility: |
| 1347 | ac_top_builddir=$ac_top_build_prefix |
| 1348 | |
| 1349 | case $srcdir in |
| 1350 | .) # We are building in place. |
| 1351 | ac_srcdir=. |
| 1352 | ac_top_srcdir=$ac_top_builddir_sub |
| 1353 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1354 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1355 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1356 | ac_top_srcdir=$srcdir |
| 1357 | ac_abs_top_srcdir=$srcdir ;; |
| 1358 | *) # Relative name. |
| 1359 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1360 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1361 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1362 | esac |
| 1363 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1364 | |
| 1365 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1366 | # Check for guested configure. |
| 1367 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1368 | echo && |
| 1369 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1370 | elif test -f "$ac_srcdir/configure"; then |
| 1371 | echo && |
| 1372 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1373 | else |
| 1374 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1375 | fi || ac_status=$? |
| 1376 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1377 | done |
| 1378 | fi |
| 1379 | |
| 1380 | test -n "$ac_init_help" && exit $ac_status |
| 1381 | if $ac_init_version; then |
| 1382 | cat <<\_ACEOF |
| 1383 | ndn-cpp configure 0.5 |
| 1384 | generated by GNU Autoconf 2.69 |
| 1385 | |
| 1386 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1387 | This configure script is free software; the Free Software Foundation |
| 1388 | gives unlimited permission to copy, distribute and modify it. |
| 1389 | _ACEOF |
| 1390 | exit |
| 1391 | fi |
| 1392 | |
| 1393 | ## ------------------------ ## |
| 1394 | ## Autoconf initialization. ## |
| 1395 | ## ------------------------ ## |
| 1396 | |
| 1397 | # ac_fn_cxx_try_compile LINENO |
| 1398 | # ---------------------------- |
| 1399 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1400 | ac_fn_cxx_try_compile () |
| 1401 | { |
| 1402 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1403 | rm -f conftest.$ac_objext |
| 1404 | if { { ac_try="$ac_compile" |
| 1405 | case "(($ac_try" in |
| 1406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1407 | *) ac_try_echo=$ac_try;; |
| 1408 | esac |
| 1409 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1410 | $as_echo "$ac_try_echo"; } >&5 |
| 1411 | (eval "$ac_compile") 2>conftest.err |
| 1412 | ac_status=$? |
| 1413 | if test -s conftest.err; then |
| 1414 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1415 | cat conftest.er1 >&5 |
| 1416 | mv -f conftest.er1 conftest.err |
| 1417 | fi |
| 1418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1419 | test $ac_status = 0; } && { |
| 1420 | test -z "$ac_cxx_werror_flag" || |
| 1421 | test ! -s conftest.err |
| 1422 | } && test -s conftest.$ac_objext; then : |
| 1423 | ac_retval=0 |
| 1424 | else |
| 1425 | $as_echo "$as_me: failed program was:" >&5 |
| 1426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1427 | |
| 1428 | ac_retval=1 |
| 1429 | fi |
| 1430 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1431 | as_fn_set_status $ac_retval |
| 1432 | |
| 1433 | } # ac_fn_cxx_try_compile |
| 1434 | cat >config.log <<_ACEOF |
| 1435 | This file contains any messages produced by compilers while |
| 1436 | running configure, to aid debugging if configure makes a mistake. |
| 1437 | |
| 1438 | It was created by ndn-cpp $as_me 0.5, which was |
| 1439 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1440 | |
| 1441 | $ $0 $@ |
| 1442 | |
| 1443 | _ACEOF |
| 1444 | exec 5>>config.log |
| 1445 | { |
| 1446 | cat <<_ASUNAME |
| 1447 | ## --------- ## |
| 1448 | ## Platform. ## |
| 1449 | ## --------- ## |
| 1450 | |
| 1451 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1452 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1453 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1454 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1455 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1456 | |
| 1457 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1458 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1459 | |
| 1460 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1461 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1462 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1463 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1464 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1465 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1466 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1467 | |
| 1468 | _ASUNAME |
| 1469 | |
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1471 | for as_dir in $PATH |
| 1472 | do |
| 1473 | IFS=$as_save_IFS |
| 1474 | test -z "$as_dir" && as_dir=. |
| 1475 | $as_echo "PATH: $as_dir" |
| 1476 | done |
| 1477 | IFS=$as_save_IFS |
| 1478 | |
| 1479 | } >&5 |
| 1480 | |
| 1481 | cat >&5 <<_ACEOF |
| 1482 | |
| 1483 | |
| 1484 | ## ----------- ## |
| 1485 | ## Core tests. ## |
| 1486 | ## ----------- ## |
| 1487 | |
| 1488 | _ACEOF |
| 1489 | |
| 1490 | |
| 1491 | # Keep a trace of the command line. |
| 1492 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1493 | # Strip out --silent because we don't want to record it for future runs. |
| 1494 | # Also quote any args containing shell meta-characters. |
| 1495 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1496 | ac_configure_args= |
| 1497 | ac_configure_args0= |
| 1498 | ac_configure_args1= |
| 1499 | ac_must_keep_next=false |
| 1500 | for ac_pass in 1 2 |
| 1501 | do |
| 1502 | for ac_arg |
| 1503 | do |
| 1504 | case $ac_arg in |
| 1505 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1507 | | -silent | --silent | --silen | --sile | --sil) |
| 1508 | continue ;; |
| 1509 | *\'*) |
| 1510 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1511 | esac |
| 1512 | case $ac_pass in |
| 1513 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1514 | 2) |
| 1515 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1516 | if test $ac_must_keep_next = true; then |
| 1517 | ac_must_keep_next=false # Got value, back to normal. |
| 1518 | else |
| 1519 | case $ac_arg in |
| 1520 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1521 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1522 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1523 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1524 | case "$ac_configure_args0 " in |
| 1525 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1526 | esac |
| 1527 | ;; |
| 1528 | -* ) ac_must_keep_next=true ;; |
| 1529 | esac |
| 1530 | fi |
| 1531 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1532 | ;; |
| 1533 | esac |
| 1534 | done |
| 1535 | done |
| 1536 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1537 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1538 | |
| 1539 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1540 | # config.log. We remove comments because anyway the quotes in there |
| 1541 | # would cause problems or look ugly. |
| 1542 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1543 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1544 | trap 'exit_status=$? |
| 1545 | # Save into config.log some information that might help in debugging. |
| 1546 | { |
| 1547 | echo |
| 1548 | |
| 1549 | $as_echo "## ---------------- ## |
| 1550 | ## Cache variables. ## |
| 1551 | ## ---------------- ##" |
| 1552 | echo |
| 1553 | # The following way of writing the cache mishandles newlines in values, |
| 1554 | ( |
| 1555 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1556 | eval ac_val=\$$ac_var |
| 1557 | case $ac_val in #( |
| 1558 | *${as_nl}*) |
| 1559 | case $ac_var in #( |
| 1560 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1561 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1562 | esac |
| 1563 | case $ac_var in #( |
| 1564 | _ | IFS | as_nl) ;; #( |
| 1565 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1566 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1567 | esac ;; |
| 1568 | esac |
| 1569 | done |
| 1570 | (set) 2>&1 | |
| 1571 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1572 | *${as_nl}ac_space=\ *) |
| 1573 | sed -n \ |
| 1574 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1575 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1576 | ;; #( |
| 1577 | *) |
| 1578 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1579 | ;; |
| 1580 | esac | |
| 1581 | sort |
| 1582 | ) |
| 1583 | echo |
| 1584 | |
| 1585 | $as_echo "## ----------------- ## |
| 1586 | ## Output variables. ## |
| 1587 | ## ----------------- ##" |
| 1588 | echo |
| 1589 | for ac_var in $ac_subst_vars |
| 1590 | do |
| 1591 | eval ac_val=\$$ac_var |
| 1592 | case $ac_val in |
| 1593 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1594 | esac |
| 1595 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1596 | done | sort |
| 1597 | echo |
| 1598 | |
| 1599 | if test -n "$ac_subst_files"; then |
| 1600 | $as_echo "## ------------------- ## |
| 1601 | ## File substitutions. ## |
| 1602 | ## ------------------- ##" |
| 1603 | echo |
| 1604 | for ac_var in $ac_subst_files |
| 1605 | do |
| 1606 | eval ac_val=\$$ac_var |
| 1607 | case $ac_val in |
| 1608 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1609 | esac |
| 1610 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1611 | done | sort |
| 1612 | echo |
| 1613 | fi |
| 1614 | |
| 1615 | if test -s confdefs.h; then |
| 1616 | $as_echo "## ----------- ## |
| 1617 | ## confdefs.h. ## |
| 1618 | ## ----------- ##" |
| 1619 | echo |
| 1620 | cat confdefs.h |
| 1621 | echo |
| 1622 | fi |
| 1623 | test "$ac_signal" != 0 && |
| 1624 | $as_echo "$as_me: caught signal $ac_signal" |
| 1625 | $as_echo "$as_me: exit $exit_status" |
| 1626 | } >&5 |
| 1627 | rm -f core *.core core.conftest.* && |
| 1628 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1629 | exit $exit_status |
| 1630 | ' 0 |
| 1631 | for ac_signal in 1 2 13 15; do |
| 1632 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1633 | done |
| 1634 | ac_signal=0 |
| 1635 | |
| 1636 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1637 | rm -f -r conftest* confdefs.h |
| 1638 | |
| 1639 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1640 | |
| 1641 | # Predefined preprocessor variables. |
| 1642 | |
| 1643 | cat >>confdefs.h <<_ACEOF |
| 1644 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1645 | _ACEOF |
| 1646 | |
| 1647 | cat >>confdefs.h <<_ACEOF |
| 1648 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1649 | _ACEOF |
| 1650 | |
| 1651 | cat >>confdefs.h <<_ACEOF |
| 1652 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | cat >>confdefs.h <<_ACEOF |
| 1656 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1657 | _ACEOF |
| 1658 | |
| 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1661 | _ACEOF |
| 1662 | |
| 1663 | cat >>confdefs.h <<_ACEOF |
| 1664 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1665 | _ACEOF |
| 1666 | |
| 1667 | |
| 1668 | # Let the site file select an alternate cache file if it wants to. |
| 1669 | # Prefer an explicitly selected file to automatically selected ones. |
| 1670 | ac_site_file1=NONE |
| 1671 | ac_site_file2=NONE |
| 1672 | if test -n "$CONFIG_SITE"; then |
| 1673 | # We do not want a PATH search for config.site. |
| 1674 | case $CONFIG_SITE in #(( |
| 1675 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1676 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1677 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1678 | esac |
| 1679 | elif test "x$prefix" != xNONE; then |
| 1680 | ac_site_file1=$prefix/share/config.site |
| 1681 | ac_site_file2=$prefix/etc/config.site |
| 1682 | else |
| 1683 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1684 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1685 | fi |
| 1686 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1687 | do |
| 1688 | test "x$ac_site_file" = xNONE && continue |
| 1689 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1691 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1692 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1693 | . "$ac_site_file" \ |
| 1694 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1695 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1696 | as_fn_error $? "failed to load site script $ac_site_file |
| 1697 | See \`config.log' for more details" "$LINENO" 5; } |
| 1698 | fi |
| 1699 | done |
| 1700 | |
| 1701 | if test -r "$cache_file"; then |
| 1702 | # Some versions of bash will fail to source /dev/null (special files |
| 1703 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1704 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1706 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1707 | case $cache_file in |
| 1708 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1709 | *) . "./$cache_file";; |
| 1710 | esac |
| 1711 | fi |
| 1712 | else |
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1714 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1715 | >$cache_file |
| 1716 | fi |
| 1717 | |
| 1718 | # Check that the precious variables saved in the cache have kept the same |
| 1719 | # value. |
| 1720 | ac_cache_corrupted=false |
| 1721 | for ac_var in $ac_precious_vars; do |
| 1722 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1723 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1724 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1725 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1726 | case $ac_old_set,$ac_new_set in |
| 1727 | set,) |
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1729 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1730 | ac_cache_corrupted=: ;; |
| 1731 | ,set) |
| 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1733 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1734 | ac_cache_corrupted=: ;; |
| 1735 | ,);; |
| 1736 | *) |
| 1737 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1738 | # differences in whitespace do not lead to failure. |
| 1739 | ac_old_val_w=`echo x $ac_old_val` |
| 1740 | ac_new_val_w=`echo x $ac_new_val` |
| 1741 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1743 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1744 | ac_cache_corrupted=: |
| 1745 | else |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1747 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1748 | eval $ac_var=\$ac_old_val |
| 1749 | fi |
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1751 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1753 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1754 | fi;; |
| 1755 | esac |
| 1756 | # Pass precious variables to config.status. |
| 1757 | if test "$ac_new_set" = set; then |
| 1758 | case $ac_new_val in |
| 1759 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1760 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1761 | esac |
| 1762 | case " $ac_configure_args " in |
| 1763 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1764 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 1765 | esac |
| 1766 | fi |
| 1767 | done |
| 1768 | if $ac_cache_corrupted; then |
| 1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1770 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1772 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1773 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 1774 | fi |
| 1775 | ## -------------------- ## |
| 1776 | ## Main body of script. ## |
| 1777 | ## -------------------- ## |
| 1778 | |
| 1779 | ac_ext=c |
| 1780 | ac_cpp='$CPP $CPPFLAGS' |
| 1781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | am__api_version='1.13' |
| 1788 | |
| 1789 | ac_aux_dir= |
| 1790 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1791 | if test -f "$ac_dir/install-sh"; then |
| 1792 | ac_aux_dir=$ac_dir |
| 1793 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1794 | break |
| 1795 | elif test -f "$ac_dir/install.sh"; then |
| 1796 | ac_aux_dir=$ac_dir |
| 1797 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1798 | break |
| 1799 | elif test -f "$ac_dir/shtool"; then |
| 1800 | ac_aux_dir=$ac_dir |
| 1801 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1802 | break |
| 1803 | fi |
| 1804 | done |
| 1805 | if test -z "$ac_aux_dir"; then |
| 1806 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 1807 | fi |
| 1808 | |
| 1809 | # These three variables are undocumented and unsupported, |
| 1810 | # and are intended to be withdrawn in a future Autoconf release. |
| 1811 | # They can cause serious problems if a builder's source tree is in a directory |
| 1812 | # whose full name contains unusual characters. |
| 1813 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1814 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1815 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1816 | |
| 1817 | |
| 1818 | # Find a good install program. We prefer a C program (faster), |
| 1819 | # so one script is as good as another. But avoid the broken or |
| 1820 | # incompatible versions: |
| 1821 | # SysV /etc/install, /usr/sbin/install |
| 1822 | # SunOS /usr/etc/install |
| 1823 | # IRIX /sbin/install |
| 1824 | # AIX /bin/install |
| 1825 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1826 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1827 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1828 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1829 | # OS/2's system install, which has a completely different semantic |
| 1830 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1831 | # Reject install programs that cannot install multiple files. |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 1833 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 1834 | if test -z "$INSTALL"; then |
| 1835 | if ${ac_cv_path_install+:} false; then : |
| 1836 | $as_echo_n "(cached) " >&6 |
| 1837 | else |
| 1838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1839 | for as_dir in $PATH |
| 1840 | do |
| 1841 | IFS=$as_save_IFS |
| 1842 | test -z "$as_dir" && as_dir=. |
| 1843 | # Account for people who put trailing slashes in PATH elements. |
| 1844 | case $as_dir/ in #(( |
| 1845 | ./ | .// | /[cC]/* | \ |
| 1846 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1847 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 1848 | /usr/ucb/* ) ;; |
| 1849 | *) |
| 1850 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1851 | # Don't use installbsd from OSF since it installs stuff as root |
| 1852 | # by default. |
| 1853 | for ac_prog in ginstall scoinst install; do |
| 1854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1855 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1856 | if test $ac_prog = install && |
| 1857 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1858 | # AIX install. It has an incompatible calling convention. |
| 1859 | : |
| 1860 | elif test $ac_prog = install && |
| 1861 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1862 | # program-specific install script used by HP pwplus--don't use. |
| 1863 | : |
| 1864 | else |
| 1865 | rm -rf conftest.one conftest.two conftest.dir |
| 1866 | echo one > conftest.one |
| 1867 | echo two > conftest.two |
| 1868 | mkdir conftest.dir |
| 1869 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 1870 | test -s conftest.one && test -s conftest.two && |
| 1871 | test -s conftest.dir/conftest.one && |
| 1872 | test -s conftest.dir/conftest.two |
| 1873 | then |
| 1874 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1875 | break 3 |
| 1876 | fi |
| 1877 | fi |
| 1878 | fi |
| 1879 | done |
| 1880 | done |
| 1881 | ;; |
| 1882 | esac |
| 1883 | |
| 1884 | done |
| 1885 | IFS=$as_save_IFS |
| 1886 | |
| 1887 | rm -rf conftest.one conftest.two conftest.dir |
| 1888 | |
| 1889 | fi |
| 1890 | if test "${ac_cv_path_install+set}" = set; then |
| 1891 | INSTALL=$ac_cv_path_install |
| 1892 | else |
| 1893 | # As a last resort, use the slow shell script. Don't cache a |
| 1894 | # value for INSTALL within a source directory, because that will |
| 1895 | # break other packages using the cache if that directory is |
| 1896 | # removed, or if the value is a relative name. |
| 1897 | INSTALL=$ac_install_sh |
| 1898 | fi |
| 1899 | fi |
| 1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 1901 | $as_echo "$INSTALL" >&6; } |
| 1902 | |
| 1903 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1904 | # It thinks the first close brace ends the variable substitution. |
| 1905 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1906 | |
| 1907 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1908 | |
| 1909 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1910 | |
| 1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 1912 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 1913 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 1914 | # name. Accept space and tab only in the latter. |
| 1915 | am_lf=' |
| 1916 | ' |
| 1917 | case `pwd` in |
| 1918 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 1919 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 1920 | esac |
| 1921 | case $srcdir in |
| 1922 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 1923 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 1924 | esac |
| 1925 | |
| 1926 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 1927 | # arguments. Must try -L first in case configure is actually a |
| 1928 | # symlink; some systems play weird games with the mod time of symlinks |
| 1929 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1930 | # directory). |
| 1931 | if ( |
| 1932 | am_has_slept=no |
| 1933 | for am_try in 1 2; do |
| 1934 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 1935 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 1936 | if test "$*" = "X"; then |
| 1937 | # -L didn't work. |
| 1938 | set X `ls -t "$srcdir/configure" conftest.file` |
| 1939 | fi |
| 1940 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1941 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1942 | |
| 1943 | # If neither matched, then we have a broken ls. This can happen |
| 1944 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1945 | # broken ls alias from the environment. This has actually |
| 1946 | # happened. Such a system could not be considered "sane". |
| 1947 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 1948 | alias in your environment" "$LINENO" 5 |
| 1949 | fi |
| 1950 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 1951 | break |
| 1952 | fi |
| 1953 | # Just in case. |
| 1954 | sleep 1 |
| 1955 | am_has_slept=yes |
| 1956 | done |
| 1957 | test "$2" = conftest.file |
| 1958 | ) |
| 1959 | then |
| 1960 | # Ok. |
| 1961 | : |
| 1962 | else |
| 1963 | as_fn_error $? "newly created file is older than distributed files! |
| 1964 | Check your system clock" "$LINENO" 5 |
| 1965 | fi |
| 1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 1967 | $as_echo "yes" >&6; } |
| 1968 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 1969 | # generated files are strictly newer. |
| 1970 | am_sleep_pid= |
| 1971 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 1972 | ( sleep 1 ) & |
| 1973 | am_sleep_pid=$! |
| 1974 | fi |
| 1975 | |
| 1976 | rm -f conftest.file |
| 1977 | |
| 1978 | test "$program_prefix" != NONE && |
| 1979 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 1980 | # Use a double $ so make ignores it. |
| 1981 | test "$program_suffix" != NONE && |
| 1982 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 1983 | # Double any \ or $. |
| 1984 | # By default was `s,x,x', remove it if useless. |
| 1985 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 1986 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 1987 | |
| 1988 | # expand $ac_aux_dir to an absolute path |
| 1989 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1990 | |
| 1991 | if test x"${MISSING+set}" != xset; then |
| 1992 | case $am_aux_dir in |
| 1993 | *\ * | *\ *) |
| 1994 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 1995 | *) |
| 1996 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 1997 | esac |
| 1998 | fi |
| 1999 | # Use eval to expand $SHELL |
| 2000 | if eval "$MISSING --is-lightweight"; then |
| 2001 | am_missing_run="$MISSING " |
| 2002 | else |
| 2003 | am_missing_run= |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2005 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2006 | fi |
| 2007 | |
| 2008 | if test x"${install_sh}" != xset; then |
| 2009 | case $am_aux_dir in |
| 2010 | *\ * | *\ *) |
| 2011 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2012 | *) |
| 2013 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2014 | esac |
| 2015 | fi |
| 2016 | |
| 2017 | # Installed binaries are usually stripped using 'strip' when the user |
| 2018 | # run "make install-strip". However 'strip' might not be the right |
| 2019 | # tool to use in cross-compilation environments, therefore Automake |
| 2020 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2021 | if test "$cross_compiling" != no; then |
| 2022 | if test -n "$ac_tool_prefix"; then |
| 2023 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2024 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2026 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2027 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2028 | $as_echo_n "(cached) " >&6 |
| 2029 | else |
| 2030 | if test -n "$STRIP"; then |
| 2031 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2032 | else |
| 2033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2034 | for as_dir in $PATH |
| 2035 | do |
| 2036 | IFS=$as_save_IFS |
| 2037 | test -z "$as_dir" && as_dir=. |
| 2038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2040 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2042 | break 2 |
| 2043 | fi |
| 2044 | done |
| 2045 | done |
| 2046 | IFS=$as_save_IFS |
| 2047 | |
| 2048 | fi |
| 2049 | fi |
| 2050 | STRIP=$ac_cv_prog_STRIP |
| 2051 | if test -n "$STRIP"; then |
| 2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2053 | $as_echo "$STRIP" >&6; } |
| 2054 | else |
| 2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2056 | $as_echo "no" >&6; } |
| 2057 | fi |
| 2058 | |
| 2059 | |
| 2060 | fi |
| 2061 | if test -z "$ac_cv_prog_STRIP"; then |
| 2062 | ac_ct_STRIP=$STRIP |
| 2063 | # Extract the first word of "strip", so it can be a program name with args. |
| 2064 | set dummy strip; ac_word=$2 |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2066 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2067 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2068 | $as_echo_n "(cached) " >&6 |
| 2069 | else |
| 2070 | if test -n "$ac_ct_STRIP"; then |
| 2071 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2072 | else |
| 2073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2074 | for as_dir in $PATH |
| 2075 | do |
| 2076 | IFS=$as_save_IFS |
| 2077 | test -z "$as_dir" && as_dir=. |
| 2078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2080 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2082 | break 2 |
| 2083 | fi |
| 2084 | done |
| 2085 | done |
| 2086 | IFS=$as_save_IFS |
| 2087 | |
| 2088 | fi |
| 2089 | fi |
| 2090 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2091 | if test -n "$ac_ct_STRIP"; then |
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2093 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2094 | else |
| 2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2096 | $as_echo "no" >&6; } |
| 2097 | fi |
| 2098 | |
| 2099 | if test "x$ac_ct_STRIP" = x; then |
| 2100 | STRIP=":" |
| 2101 | else |
| 2102 | case $cross_compiling:$ac_tool_warned in |
| 2103 | yes:) |
| 2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2105 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2106 | ac_tool_warned=yes ;; |
| 2107 | esac |
| 2108 | STRIP=$ac_ct_STRIP |
| 2109 | fi |
| 2110 | else |
| 2111 | STRIP="$ac_cv_prog_STRIP" |
| 2112 | fi |
| 2113 | |
| 2114 | fi |
| 2115 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2116 | |
| 2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2118 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2119 | if test -z "$MKDIR_P"; then |
| 2120 | if ${ac_cv_path_mkdir+:} false; then : |
| 2121 | $as_echo_n "(cached) " >&6 |
| 2122 | else |
| 2123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2124 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2125 | do |
| 2126 | IFS=$as_save_IFS |
| 2127 | test -z "$as_dir" && as_dir=. |
| 2128 | for ac_prog in mkdir gmkdir; do |
| 2129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2130 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2131 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2132 | 'mkdir (GNU coreutils) '* | \ |
| 2133 | 'mkdir (coreutils) '* | \ |
| 2134 | 'mkdir (fileutils) '4.1*) |
| 2135 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2136 | break 3;; |
| 2137 | esac |
| 2138 | done |
| 2139 | done |
| 2140 | done |
| 2141 | IFS=$as_save_IFS |
| 2142 | |
| 2143 | fi |
| 2144 | |
| 2145 | test -d ./--version && rmdir ./--version |
| 2146 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2147 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2148 | else |
| 2149 | # As a last resort, use the slow shell script. Don't cache a |
| 2150 | # value for MKDIR_P within a source directory, because that will |
| 2151 | # break other packages using the cache if that directory is |
| 2152 | # removed, or if the value is a relative name. |
| 2153 | MKDIR_P="$ac_install_sh -d" |
| 2154 | fi |
| 2155 | fi |
| 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2157 | $as_echo "$MKDIR_P" >&6; } |
| 2158 | |
| 2159 | for ac_prog in gawk mawk nawk awk |
| 2160 | do |
| 2161 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2162 | set dummy $ac_prog; ac_word=$2 |
| 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2164 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2165 | if ${ac_cv_prog_AWK+:} false; then : |
| 2166 | $as_echo_n "(cached) " >&6 |
| 2167 | else |
| 2168 | if test -n "$AWK"; then |
| 2169 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2170 | else |
| 2171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2172 | for as_dir in $PATH |
| 2173 | do |
| 2174 | IFS=$as_save_IFS |
| 2175 | test -z "$as_dir" && as_dir=. |
| 2176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2178 | ac_cv_prog_AWK="$ac_prog" |
| 2179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2180 | break 2 |
| 2181 | fi |
| 2182 | done |
| 2183 | done |
| 2184 | IFS=$as_save_IFS |
| 2185 | |
| 2186 | fi |
| 2187 | fi |
| 2188 | AWK=$ac_cv_prog_AWK |
| 2189 | if test -n "$AWK"; then |
| 2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2191 | $as_echo "$AWK" >&6; } |
| 2192 | else |
| 2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2194 | $as_echo "no" >&6; } |
| 2195 | fi |
| 2196 | |
| 2197 | |
| 2198 | test -n "$AWK" && break |
| 2199 | done |
| 2200 | |
| 2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2202 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2203 | set x ${MAKE-make} |
| 2204 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2205 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 2206 | $as_echo_n "(cached) " >&6 |
| 2207 | else |
| 2208 | cat >conftest.make <<\_ACEOF |
| 2209 | SHELL = /bin/sh |
| 2210 | all: |
| 2211 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2212 | _ACEOF |
| 2213 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2214 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2215 | *@@@%%%=?*=@@@%%%*) |
| 2216 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2217 | *) |
| 2218 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2219 | esac |
| 2220 | rm -f conftest.make |
| 2221 | fi |
| 2222 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2224 | $as_echo "yes" >&6; } |
| 2225 | SET_MAKE= |
| 2226 | else |
| 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2228 | $as_echo "no" >&6; } |
| 2229 | SET_MAKE="MAKE=${MAKE-make}" |
| 2230 | fi |
| 2231 | |
| 2232 | rm -rf .tst 2>/dev/null |
| 2233 | mkdir .tst 2>/dev/null |
| 2234 | if test -d .tst; then |
| 2235 | am__leading_dot=. |
| 2236 | else |
| 2237 | am__leading_dot=_ |
| 2238 | fi |
| 2239 | rmdir .tst 2>/dev/null |
| 2240 | |
| 2241 | # Check whether --enable-silent-rules was given. |
| 2242 | if test "${enable_silent_rules+set}" = set; then : |
| 2243 | enableval=$enable_silent_rules; |
| 2244 | fi |
| 2245 | |
| 2246 | case $enable_silent_rules in # ((( |
| 2247 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2248 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2249 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2250 | esac |
| 2251 | am_make=${MAKE-make} |
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2253 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2254 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2255 | $as_echo_n "(cached) " >&6 |
| 2256 | else |
| 2257 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2258 | BAR0=false |
| 2259 | BAR1=true |
| 2260 | V=1 |
| 2261 | am__doit: |
| 2262 | @$(TRUE) |
| 2263 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2264 | am_cv_make_support_nested_variables=yes |
| 2265 | else |
| 2266 | am_cv_make_support_nested_variables=no |
| 2267 | fi |
| 2268 | fi |
| 2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2270 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2271 | if test $am_cv_make_support_nested_variables = yes; then |
| 2272 | AM_V='$(V)' |
| 2273 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2274 | else |
| 2275 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2276 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2277 | fi |
| 2278 | AM_BACKSLASH='\' |
| 2279 | |
| 2280 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2281 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2282 | # is not polluted with repeated "-I." |
| 2283 | am__isrc=' -I$(srcdir)' |
| 2284 | # test to see if srcdir already configured |
| 2285 | if test -f $srcdir/config.status; then |
| 2286 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2287 | fi |
| 2288 | fi |
| 2289 | |
| 2290 | # test whether we have cygpath |
| 2291 | if test -z "$CYGPATH_W"; then |
| 2292 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2293 | CYGPATH_W='cygpath -w' |
| 2294 | else |
| 2295 | CYGPATH_W=echo |
| 2296 | fi |
| 2297 | fi |
| 2298 | |
| 2299 | |
| 2300 | # Define the identity of the package. |
| 2301 | PACKAGE='ndn-cpp' |
| 2302 | VERSION='0.5' |
| 2303 | |
| 2304 | |
| 2305 | # Some tools Automake needs. |
| 2306 | |
| 2307 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2308 | |
| 2309 | |
| 2310 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2311 | |
| 2312 | |
| 2313 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2314 | |
| 2315 | |
| 2316 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2317 | |
| 2318 | |
| 2319 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2320 | |
| 2321 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2322 | # dies out for good. For more background, see: |
| 2323 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2324 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2325 | mkdir_p='$(MKDIR_P)' |
| 2326 | |
| 2327 | # We need awk for the "check" target. The system "awk" is bad on |
| 2328 | # some platforms. |
| 2329 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2330 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2331 | AMTAR='$${TAR-tar}' |
| 2332 | |
| 2333 | |
| 2334 | # We'll loop over all known methods to create a tar archive until one works. |
| 2335 | _am_tools='gnutar pax cpio none' |
| 2336 | |
| 2337 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2338 | |
| 2339 | |
| 2340 | |
| 2341 | |
| 2342 | |
| 2343 | |
| 2344 | |
| 2345 | ac_config_headers="$ac_config_headers config.h" |
| 2346 | |
| 2347 | ac_ext=cpp |
| 2348 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2349 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2350 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2351 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2352 | if test -z "$CXX"; then |
| 2353 | if test -n "$CCC"; then |
| 2354 | CXX=$CCC |
| 2355 | else |
| 2356 | if test -n "$ac_tool_prefix"; then |
| 2357 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2358 | do |
| 2359 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2360 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2362 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2363 | if ${ac_cv_prog_CXX+:} false; then : |
| 2364 | $as_echo_n "(cached) " >&6 |
| 2365 | else |
| 2366 | if test -n "$CXX"; then |
| 2367 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2368 | else |
| 2369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2370 | for as_dir in $PATH |
| 2371 | do |
| 2372 | IFS=$as_save_IFS |
| 2373 | test -z "$as_dir" && as_dir=. |
| 2374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2376 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2378 | break 2 |
| 2379 | fi |
| 2380 | done |
| 2381 | done |
| 2382 | IFS=$as_save_IFS |
| 2383 | |
| 2384 | fi |
| 2385 | fi |
| 2386 | CXX=$ac_cv_prog_CXX |
| 2387 | if test -n "$CXX"; then |
| 2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 2389 | $as_echo "$CXX" >&6; } |
| 2390 | else |
| 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2392 | $as_echo "no" >&6; } |
| 2393 | fi |
| 2394 | |
| 2395 | |
| 2396 | test -n "$CXX" && break |
| 2397 | done |
| 2398 | fi |
| 2399 | if test -z "$CXX"; then |
| 2400 | ac_ct_CXX=$CXX |
| 2401 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2402 | do |
| 2403 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2404 | set dummy $ac_prog; ac_word=$2 |
| 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2406 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2407 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 2408 | $as_echo_n "(cached) " >&6 |
| 2409 | else |
| 2410 | if test -n "$ac_ct_CXX"; then |
| 2411 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2412 | else |
| 2413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2414 | for as_dir in $PATH |
| 2415 | do |
| 2416 | IFS=$as_save_IFS |
| 2417 | test -z "$as_dir" && as_dir=. |
| 2418 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2420 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2422 | break 2 |
| 2423 | fi |
| 2424 | done |
| 2425 | done |
| 2426 | IFS=$as_save_IFS |
| 2427 | |
| 2428 | fi |
| 2429 | fi |
| 2430 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2431 | if test -n "$ac_ct_CXX"; then |
| 2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 2433 | $as_echo "$ac_ct_CXX" >&6; } |
| 2434 | else |
| 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2436 | $as_echo "no" >&6; } |
| 2437 | fi |
| 2438 | |
| 2439 | |
| 2440 | test -n "$ac_ct_CXX" && break |
| 2441 | done |
| 2442 | |
| 2443 | if test "x$ac_ct_CXX" = x; then |
| 2444 | CXX="g++" |
| 2445 | else |
| 2446 | case $cross_compiling:$ac_tool_warned in |
| 2447 | yes:) |
| 2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2449 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2450 | ac_tool_warned=yes ;; |
| 2451 | esac |
| 2452 | CXX=$ac_ct_CXX |
| 2453 | fi |
| 2454 | fi |
| 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | # Provide some information about the compiler. |
| 2459 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 2460 | set X $ac_compile |
| 2461 | ac_compiler=$2 |
| 2462 | for ac_option in --version -v -V -qversion; do |
| 2463 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2464 | case "(($ac_try" in |
| 2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2466 | *) ac_try_echo=$ac_try;; |
| 2467 | esac |
| 2468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2469 | $as_echo "$ac_try_echo"; } >&5 |
| 2470 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2471 | ac_status=$? |
| 2472 | if test -s conftest.err; then |
| 2473 | sed '10a\ |
| 2474 | ... rest of stderr output deleted ... |
| 2475 | 10q' conftest.err >conftest.er1 |
| 2476 | cat conftest.er1 >&5 |
| 2477 | fi |
| 2478 | rm -f conftest.er1 conftest.err |
| 2479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2480 | test $ac_status = 0; } |
| 2481 | done |
| 2482 | |
| 2483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2484 | /* end confdefs.h. */ |
| 2485 | |
| 2486 | int |
| 2487 | main () |
| 2488 | { |
| 2489 | |
| 2490 | ; |
| 2491 | return 0; |
| 2492 | } |
| 2493 | _ACEOF |
| 2494 | ac_clean_files_save=$ac_clean_files |
| 2495 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2496 | # Try to create an executable without -o first, disregard a.out. |
| 2497 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2498 | # of exeext. |
| 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
| 2500 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 2501 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2502 | |
| 2503 | # The possible output files: |
| 2504 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2505 | |
| 2506 | ac_rmfiles= |
| 2507 | for ac_file in $ac_files |
| 2508 | do |
| 2509 | case $ac_file in |
| 2510 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2511 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2512 | esac |
| 2513 | done |
| 2514 | rm -f $ac_rmfiles |
| 2515 | |
| 2516 | if { { ac_try="$ac_link_default" |
| 2517 | case "(($ac_try" in |
| 2518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2519 | *) ac_try_echo=$ac_try;; |
| 2520 | esac |
| 2521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2522 | $as_echo "$ac_try_echo"; } >&5 |
| 2523 | (eval "$ac_link_default") 2>&5 |
| 2524 | ac_status=$? |
| 2525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2526 | test $ac_status = 0; }; then : |
| 2527 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2528 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2529 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2530 | # so that the user can short-circuit this test for compilers unknown to |
| 2531 | # Autoconf. |
| 2532 | for ac_file in $ac_files '' |
| 2533 | do |
| 2534 | test -f "$ac_file" || continue |
| 2535 | case $ac_file in |
| 2536 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2537 | ;; |
| 2538 | [ab].out ) |
| 2539 | # We found the default executable, but exeext='' is most |
| 2540 | # certainly right. |
| 2541 | break;; |
| 2542 | *.* ) |
| 2543 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2544 | then :; else |
| 2545 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2546 | fi |
| 2547 | # We set ac_cv_exeext here because the later test for it is not |
| 2548 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2549 | # argument, so we may need to know it at that point already. |
| 2550 | # Even if this section looks crufty: it has the advantage of |
| 2551 | # actually working. |
| 2552 | break;; |
| 2553 | * ) |
| 2554 | break;; |
| 2555 | esac |
| 2556 | done |
| 2557 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2558 | |
| 2559 | else |
| 2560 | ac_file='' |
| 2561 | fi |
| 2562 | if test -z "$ac_file"; then : |
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2564 | $as_echo "no" >&6; } |
| 2565 | $as_echo "$as_me: failed program was:" >&5 |
| 2566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2567 | |
| 2568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2570 | as_fn_error 77 "C++ compiler cannot create executables |
| 2571 | See \`config.log' for more details" "$LINENO" 5; } |
| 2572 | else |
| 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2574 | $as_echo "yes" >&6; } |
| 2575 | fi |
| 2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
| 2577 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2579 | $as_echo "$ac_file" >&6; } |
| 2580 | ac_exeext=$ac_cv_exeext |
| 2581 | |
| 2582 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2583 | ac_clean_files=$ac_clean_files_save |
| 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2585 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2586 | if { { ac_try="$ac_link" |
| 2587 | case "(($ac_try" in |
| 2588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2589 | *) ac_try_echo=$ac_try;; |
| 2590 | esac |
| 2591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2592 | $as_echo "$ac_try_echo"; } >&5 |
| 2593 | (eval "$ac_link") 2>&5 |
| 2594 | ac_status=$? |
| 2595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2596 | test $ac_status = 0; }; then : |
| 2597 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2598 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2599 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2600 | # `rm'. |
| 2601 | for ac_file in conftest.exe conftest conftest.*; do |
| 2602 | test -f "$ac_file" || continue |
| 2603 | case $ac_file in |
| 2604 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2605 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2606 | break;; |
| 2607 | * ) break;; |
| 2608 | esac |
| 2609 | done |
| 2610 | else |
| 2611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2613 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2614 | See \`config.log' for more details" "$LINENO" 5; } |
| 2615 | fi |
| 2616 | rm -f conftest conftest$ac_cv_exeext |
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2618 | $as_echo "$ac_cv_exeext" >&6; } |
| 2619 | |
| 2620 | rm -f conftest.$ac_ext |
| 2621 | EXEEXT=$ac_cv_exeext |
| 2622 | ac_exeext=$EXEEXT |
| 2623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2624 | /* end confdefs.h. */ |
| 2625 | #include <stdio.h> |
| 2626 | int |
| 2627 | main () |
| 2628 | { |
| 2629 | FILE *f = fopen ("conftest.out", "w"); |
| 2630 | return ferror (f) || fclose (f) != 0; |
| 2631 | |
| 2632 | ; |
| 2633 | return 0; |
| 2634 | } |
| 2635 | _ACEOF |
| 2636 | ac_clean_files="$ac_clean_files conftest.out" |
| 2637 | # Check that the compiler produces executables we can run. If not, either |
| 2638 | # the compiler is broken, or we cross compile. |
| 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2640 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2641 | if test "$cross_compiling" != yes; then |
| 2642 | { { ac_try="$ac_link" |
| 2643 | case "(($ac_try" in |
| 2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2645 | *) ac_try_echo=$ac_try;; |
| 2646 | esac |
| 2647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2648 | $as_echo "$ac_try_echo"; } >&5 |
| 2649 | (eval "$ac_link") 2>&5 |
| 2650 | ac_status=$? |
| 2651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2652 | test $ac_status = 0; } |
| 2653 | if { ac_try='./conftest$ac_cv_exeext' |
| 2654 | { { case "(($ac_try" in |
| 2655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2656 | *) ac_try_echo=$ac_try;; |
| 2657 | esac |
| 2658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2659 | $as_echo "$ac_try_echo"; } >&5 |
| 2660 | (eval "$ac_try") 2>&5 |
| 2661 | ac_status=$? |
| 2662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2663 | test $ac_status = 0; }; }; then |
| 2664 | cross_compiling=no |
| 2665 | else |
| 2666 | if test "$cross_compiling" = maybe; then |
| 2667 | cross_compiling=yes |
| 2668 | else |
| 2669 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2670 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2671 | as_fn_error $? "cannot run C++ compiled programs. |
| 2672 | If you meant to cross compile, use \`--host'. |
| 2673 | See \`config.log' for more details" "$LINENO" 5; } |
| 2674 | fi |
| 2675 | fi |
| 2676 | fi |
| 2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2678 | $as_echo "$cross_compiling" >&6; } |
| 2679 | |
| 2680 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2681 | ac_clean_files=$ac_clean_files_save |
| 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2683 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2684 | if ${ac_cv_objext+:} false; then : |
| 2685 | $as_echo_n "(cached) " >&6 |
| 2686 | else |
| 2687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2688 | /* end confdefs.h. */ |
| 2689 | |
| 2690 | int |
| 2691 | main () |
| 2692 | { |
| 2693 | |
| 2694 | ; |
| 2695 | return 0; |
| 2696 | } |
| 2697 | _ACEOF |
| 2698 | rm -f conftest.o conftest.obj |
| 2699 | if { { ac_try="$ac_compile" |
| 2700 | case "(($ac_try" in |
| 2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2702 | *) ac_try_echo=$ac_try;; |
| 2703 | esac |
| 2704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2705 | $as_echo "$ac_try_echo"; } >&5 |
| 2706 | (eval "$ac_compile") 2>&5 |
| 2707 | ac_status=$? |
| 2708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2709 | test $ac_status = 0; }; then : |
| 2710 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2711 | test -f "$ac_file" || continue; |
| 2712 | case $ac_file in |
| 2713 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2714 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2715 | break;; |
| 2716 | esac |
| 2717 | done |
| 2718 | else |
| 2719 | $as_echo "$as_me: failed program was:" >&5 |
| 2720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2721 | |
| 2722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2724 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2725 | See \`config.log' for more details" "$LINENO" 5; } |
| 2726 | fi |
| 2727 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2728 | fi |
| 2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2730 | $as_echo "$ac_cv_objext" >&6; } |
| 2731 | OBJEXT=$ac_cv_objext |
| 2732 | ac_objext=$OBJEXT |
| 2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 2734 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 2735 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 2736 | $as_echo_n "(cached) " >&6 |
| 2737 | else |
| 2738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2739 | /* end confdefs.h. */ |
| 2740 | |
| 2741 | int |
| 2742 | main () |
| 2743 | { |
| 2744 | #ifndef __GNUC__ |
| 2745 | choke me |
| 2746 | #endif |
| 2747 | |
| 2748 | ; |
| 2749 | return 0; |
| 2750 | } |
| 2751 | _ACEOF |
| 2752 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2753 | ac_compiler_gnu=yes |
| 2754 | else |
| 2755 | ac_compiler_gnu=no |
| 2756 | fi |
| 2757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2758 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2759 | |
| 2760 | fi |
| 2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2762 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 2763 | if test $ac_compiler_gnu = yes; then |
| 2764 | GXX=yes |
| 2765 | else |
| 2766 | GXX= |
| 2767 | fi |
| 2768 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2769 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 2771 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 2772 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 2773 | $as_echo_n "(cached) " >&6 |
| 2774 | else |
| 2775 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2776 | ac_cxx_werror_flag=yes |
| 2777 | ac_cv_prog_cxx_g=no |
| 2778 | CXXFLAGS="-g" |
| 2779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2780 | /* end confdefs.h. */ |
| 2781 | |
| 2782 | int |
| 2783 | main () |
| 2784 | { |
| 2785 | |
| 2786 | ; |
| 2787 | return 0; |
| 2788 | } |
| 2789 | _ACEOF |
| 2790 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2791 | ac_cv_prog_cxx_g=yes |
| 2792 | else |
| 2793 | CXXFLAGS="" |
| 2794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2795 | /* end confdefs.h. */ |
| 2796 | |
| 2797 | int |
| 2798 | main () |
| 2799 | { |
| 2800 | |
| 2801 | ; |
| 2802 | return 0; |
| 2803 | } |
| 2804 | _ACEOF |
| 2805 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2806 | |
| 2807 | else |
| 2808 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 2809 | CXXFLAGS="-g" |
| 2810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2811 | /* end confdefs.h. */ |
| 2812 | |
| 2813 | int |
| 2814 | main () |
| 2815 | { |
| 2816 | |
| 2817 | ; |
| 2818 | return 0; |
| 2819 | } |
| 2820 | _ACEOF |
| 2821 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2822 | ac_cv_prog_cxx_g=yes |
| 2823 | fi |
| 2824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2825 | fi |
| 2826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2827 | fi |
| 2828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2829 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 2830 | fi |
| 2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 2832 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 2833 | if test "$ac_test_CXXFLAGS" = set; then |
| 2834 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2835 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2836 | if test "$GXX" = yes; then |
| 2837 | CXXFLAGS="-g -O2" |
| 2838 | else |
| 2839 | CXXFLAGS="-g" |
| 2840 | fi |
| 2841 | else |
| 2842 | if test "$GXX" = yes; then |
| 2843 | CXXFLAGS="-O2" |
| 2844 | else |
| 2845 | CXXFLAGS= |
| 2846 | fi |
| 2847 | fi |
| 2848 | ac_ext=c |
| 2849 | ac_cpp='$CPP $CPPFLAGS' |
| 2850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2853 | DEPDIR="${am__leading_dot}deps" |
| 2854 | |
| 2855 | ac_config_commands="$ac_config_commands depfiles" |
| 2856 | |
| 2857 | |
| 2858 | am_make=${MAKE-make} |
| 2859 | cat > confinc << 'END' |
| 2860 | am__doit: |
| 2861 | @echo this is the am__doit target |
| 2862 | .PHONY: am__doit |
| 2863 | END |
| 2864 | # If we don't find an include directive, just comment out the code. |
| 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 2866 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 2867 | am__include="#" |
| 2868 | am__quote= |
| 2869 | _am_result=none |
| 2870 | # First try GNU make style include. |
| 2871 | echo "include confinc" > confmf |
| 2872 | # Ignore all kinds of additional output from 'make'. |
| 2873 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2874 | *the\ am__doit\ target*) |
| 2875 | am__include=include |
| 2876 | am__quote= |
| 2877 | _am_result=GNU |
| 2878 | ;; |
| 2879 | esac |
| 2880 | # Now try BSD make style include. |
| 2881 | if test "$am__include" = "#"; then |
| 2882 | echo '.include "confinc"' > confmf |
| 2883 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2884 | *the\ am__doit\ target*) |
| 2885 | am__include=.include |
| 2886 | am__quote="\"" |
| 2887 | _am_result=BSD |
| 2888 | ;; |
| 2889 | esac |
| 2890 | fi |
| 2891 | |
| 2892 | |
| 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 2894 | $as_echo "$_am_result" >&6; } |
| 2895 | rm -f confinc confmf |
| 2896 | |
| 2897 | # Check whether --enable-dependency-tracking was given. |
| 2898 | if test "${enable_dependency_tracking+set}" = set; then : |
| 2899 | enableval=$enable_dependency_tracking; |
| 2900 | fi |
| 2901 | |
| 2902 | if test "x$enable_dependency_tracking" != xno; then |
| 2903 | am_depcomp="$ac_aux_dir/depcomp" |
| 2904 | AMDEPBACKSLASH='\' |
| 2905 | am__nodep='_no' |
| 2906 | fi |
| 2907 | if test "x$enable_dependency_tracking" != xno; then |
| 2908 | AMDEP_TRUE= |
| 2909 | AMDEP_FALSE='#' |
| 2910 | else |
| 2911 | AMDEP_TRUE='#' |
| 2912 | AMDEP_FALSE= |
| 2913 | fi |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | depcc="$CXX" am_compiler_list= |
| 2918 | |
| 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 2920 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 2921 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 2922 | $as_echo_n "(cached) " >&6 |
| 2923 | else |
| 2924 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2925 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2926 | # making bogus files that we don't know about and never remove. For |
| 2927 | # instance it was reported that on HP-UX the gcc test will end up |
| 2928 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 2929 | # in D". |
| 2930 | rm -rf conftest.dir |
| 2931 | mkdir conftest.dir |
| 2932 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2933 | # using a relative directory. |
| 2934 | cp "$am_depcomp" conftest.dir |
| 2935 | cd conftest.dir |
| 2936 | # We will build objects and dependencies in a subdirectory because |
| 2937 | # it helps to detect inapplicable dependency modes. For instance |
| 2938 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2939 | # side effect of compilation, but ICC will put the dependencies in |
| 2940 | # the current directory while Tru64 will put them in the object |
| 2941 | # directory. |
| 2942 | mkdir sub |
| 2943 | |
| 2944 | am_cv_CXX_dependencies_compiler_type=none |
| 2945 | if test "$am_compiler_list" = ""; then |
| 2946 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2947 | fi |
| 2948 | am__universal=false |
| 2949 | case " $depcc " in #( |
| 2950 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 2951 | esac |
| 2952 | |
| 2953 | for depmode in $am_compiler_list; do |
| 2954 | # Setup a source with many dependencies, because some compilers |
| 2955 | # like to wrap large dependency lists on column 80 (with \), and |
| 2956 | # we should not choose a depcomp mode which is confused by this. |
| 2957 | # |
| 2958 | # We need to recreate these files for each test, as the compiler may |
| 2959 | # overwrite some of them when testing with obscure command lines. |
| 2960 | # This happens at least with the AIX C compiler. |
| 2961 | : > sub/conftest.c |
| 2962 | for i in 1 2 3 4 5 6; do |
| 2963 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 2964 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 2965 | # Solaris 10 /bin/sh. |
| 2966 | echo '/* dummy */' > sub/conftst$i.h |
| 2967 | done |
| 2968 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 2969 | |
| 2970 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 2971 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2972 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 2973 | # versions had trouble with output in subdirs. |
| 2974 | am__obj=sub/conftest.${OBJEXT-o} |
| 2975 | am__minus_obj="-o $am__obj" |
| 2976 | case $depmode in |
| 2977 | gcc) |
| 2978 | # This depmode causes a compiler race in universal mode. |
| 2979 | test "$am__universal" = false || continue |
| 2980 | ;; |
| 2981 | nosideeffect) |
| 2982 | # After this tag, mechanisms are not by side-effect, so they'll |
| 2983 | # only be used when explicitly requested. |
| 2984 | if test "x$enable_dependency_tracking" = xyes; then |
| 2985 | continue |
| 2986 | else |
| 2987 | break |
| 2988 | fi |
| 2989 | ;; |
| 2990 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 2991 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 2992 | # not run yet. These depmodes are late enough in the game, and |
| 2993 | # so weak that their functioning should not be impacted. |
| 2994 | am__obj=conftest.${OBJEXT-o} |
| 2995 | am__minus_obj= |
| 2996 | ;; |
| 2997 | none) break ;; |
| 2998 | esac |
| 2999 | if depmode=$depmode \ |
| 3000 | source=sub/conftest.c object=$am__obj \ |
| 3001 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3002 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3003 | >/dev/null 2>conftest.err && |
| 3004 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3005 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3006 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3007 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3008 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3009 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3010 | # that says an option was ignored or not supported. |
| 3011 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3012 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3013 | # The diagnosis changed in icc 8.0: |
| 3014 | # icc: Command line remark: option '-MP' not supported |
| 3015 | if (grep 'ignoring option' conftest.err || |
| 3016 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3017 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3018 | break |
| 3019 | fi |
| 3020 | fi |
| 3021 | done |
| 3022 | |
| 3023 | cd .. |
| 3024 | rm -rf conftest.dir |
| 3025 | else |
| 3026 | am_cv_CXX_dependencies_compiler_type=none |
| 3027 | fi |
| 3028 | |
| 3029 | fi |
| 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3031 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 3032 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3033 | |
| 3034 | if |
| 3035 | test "x$enable_dependency_tracking" != xno \ |
| 3036 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3037 | am__fastdepCXX_TRUE= |
| 3038 | am__fastdepCXX_FALSE='#' |
| 3039 | else |
| 3040 | am__fastdepCXX_TRUE='#' |
| 3041 | am__fastdepCXX_FALSE= |
| 3042 | fi |
| 3043 | |
| 3044 | |
| 3045 | ac_ext=cpp |
| 3046 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3050 | |
| 3051 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame^] | 3052 | ax_cxx_compile_cxx11_required=falsednl |
| 3053 | ac_ext=cpp |
| 3054 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3055 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3056 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3057 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3058 | ac_success=no |
| 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 3060 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 3061 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 3062 | $as_echo_n "(cached) " >&6 |
| 3063 | else |
| 3064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3065 | /* end confdefs.h. */ |
| 3066 | |
| 3067 | template <typename T> |
| 3068 | struct check |
| 3069 | { |
| 3070 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 3071 | }; |
| 3072 | |
| 3073 | typedef check<check<bool>> right_angle_brackets; |
| 3074 | |
| 3075 | int a; |
| 3076 | decltype(a) b; |
| 3077 | |
| 3078 | typedef check<int> check_type; |
| 3079 | check_type c; |
| 3080 | check_type&& cr = static_cast<check_type&&>(c); |
| 3081 | |
| 3082 | auto d = a; |
| 3083 | |
| 3084 | _ACEOF |
| 3085 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3086 | ax_cv_cxx_compile_cxx11=yes |
| 3087 | else |
| 3088 | ax_cv_cxx_compile_cxx11=no |
| 3089 | fi |
| 3090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3091 | fi |
| 3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 3093 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 3094 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 3095 | ac_success=yes |
| 3096 | fi |
| 3097 | |
| 3098 | if test x$ac_success = xno; then |
| 3099 | for switch in -std=gnu++11 -std=gnu++0x; do |
| 3100 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 3102 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 3103 | if eval \${$cachevar+:} false; then : |
| 3104 | $as_echo_n "(cached) " >&6 |
| 3105 | else |
| 3106 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 3107 | CXXFLAGS="$CXXFLAGS $switch" |
| 3108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3109 | /* end confdefs.h. */ |
| 3110 | |
| 3111 | template <typename T> |
| 3112 | struct check |
| 3113 | { |
| 3114 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 3115 | }; |
| 3116 | |
| 3117 | typedef check<check<bool>> right_angle_brackets; |
| 3118 | |
| 3119 | int a; |
| 3120 | decltype(a) b; |
| 3121 | |
| 3122 | typedef check<int> check_type; |
| 3123 | check_type c; |
| 3124 | check_type&& cr = static_cast<check_type&&>(c); |
| 3125 | |
| 3126 | auto d = a; |
| 3127 | |
| 3128 | _ACEOF |
| 3129 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3130 | eval $cachevar=yes |
| 3131 | else |
| 3132 | eval $cachevar=no |
| 3133 | fi |
| 3134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3135 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 3136 | fi |
| 3137 | eval ac_res=\$$cachevar |
| 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3139 | $as_echo "$ac_res" >&6; } |
| 3140 | if eval test x\$$cachevar = xyes; then |
| 3141 | CXXFLAGS="$CXXFLAGS $switch" |
| 3142 | ac_success=yes |
| 3143 | break |
| 3144 | fi |
| 3145 | done |
| 3146 | fi |
| 3147 | |
| 3148 | if test x$ac_success = xno; then |
| 3149 | for switch in -std=c++11 -std=c++0x; do |
| 3150 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 3152 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 3153 | if eval \${$cachevar+:} false; then : |
| 3154 | $as_echo_n "(cached) " >&6 |
| 3155 | else |
| 3156 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 3157 | CXXFLAGS="$CXXFLAGS $switch" |
| 3158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3159 | /* end confdefs.h. */ |
| 3160 | |
| 3161 | template <typename T> |
| 3162 | struct check |
| 3163 | { |
| 3164 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 3165 | }; |
| 3166 | |
| 3167 | typedef check<check<bool>> right_angle_brackets; |
| 3168 | |
| 3169 | int a; |
| 3170 | decltype(a) b; |
| 3171 | |
| 3172 | typedef check<int> check_type; |
| 3173 | check_type c; |
| 3174 | check_type&& cr = static_cast<check_type&&>(c); |
| 3175 | |
| 3176 | auto d = a; |
| 3177 | |
| 3178 | _ACEOF |
| 3179 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3180 | eval $cachevar=yes |
| 3181 | else |
| 3182 | eval $cachevar=no |
| 3183 | fi |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3185 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 3186 | fi |
| 3187 | eval ac_res=\$$cachevar |
| 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3189 | $as_echo "$ac_res" >&6; } |
| 3190 | if eval test x\$$cachevar = xyes; then |
| 3191 | CXXFLAGS="$CXXFLAGS $switch" |
| 3192 | ac_success=yes |
| 3193 | break |
| 3194 | fi |
| 3195 | done |
| 3196 | fi |
| 3197 | ac_ext=cpp |
| 3198 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3202 | |
| 3203 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 3204 | if test x$ac_success = xno; then |
| 3205 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 3206 | fi |
| 3207 | else |
| 3208 | if test x$ac_success = xno; then |
| 3209 | HAVE_CXX11=0 |
| 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 3211 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 3212 | else |
| 3213 | HAVE_CXX11=1 |
| 3214 | |
| 3215 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 3216 | |
| 3217 | fi |
| 3218 | |
| 3219 | |
| 3220 | fi |
| 3221 | |
| 3222 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5 |
| 3224 | $as_echo_n "checking for std::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3226 | /* end confdefs.h. */ |
| 3227 | #include <memory> |
| 3228 | std::shared_ptr<int> have_shared_ptr; |
| 3229 | int |
| 3230 | main () |
| 3231 | { |
| 3232 | |
| 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | |
| 3237 | _ACEOF |
| 3238 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3239 | |
| 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3241 | $as_echo "yes" >&6; } |
| 3242 | |
| 3243 | cat >>confdefs.h <<_ACEOF |
| 3244 | #define HAVE_STD_SHARED_PTR 1 |
| 3245 | _ACEOF |
| 3246 | |
| 3247 | |
| 3248 | else |
| 3249 | |
| 3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3251 | $as_echo "no" >&6; } |
| 3252 | |
| 3253 | cat >>confdefs.h <<_ACEOF |
| 3254 | #define HAVE_STD_SHARED_PTR 0 |
| 3255 | _ACEOF |
| 3256 | |
| 3257 | |
| 3258 | fi |
| 3259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3261 | /* end confdefs.h. */ |
| 3262 | #include <boost/shared_ptr.hpp> |
| 3263 | boost::shared_ptr<int> have_shared_ptr; |
| 3264 | int |
| 3265 | main () |
| 3266 | { |
| 3267 | |
| 3268 | ; |
| 3269 | return 0; |
| 3270 | } |
| 3271 | |
| 3272 | _ACEOF |
| 3273 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3274 | |
| 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3276 | $as_echo "yes" >&6; } |
| 3277 | |
| 3278 | cat >>confdefs.h <<_ACEOF |
| 3279 | #define HAVE_BOOST_SHARED_PTR 1 |
| 3280 | _ACEOF |
| 3281 | |
| 3282 | |
| 3283 | else |
| 3284 | |
| 3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3286 | $as_echo "no" >&6; } |
| 3287 | |
| 3288 | cat >>confdefs.h <<_ACEOF |
| 3289 | #define HAVE_BOOST_SHARED_PTR 0 |
| 3290 | _ACEOF |
| 3291 | |
| 3292 | |
| 3293 | fi |
| 3294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3295 | |
| 3296 | ac_config_files="$ac_config_files Makefile" |
| 3297 | |
| 3298 | cat >confcache <<\_ACEOF |
| 3299 | # This file is a shell script that caches the results of configure |
| 3300 | # tests run on this system so they can be shared between configure |
| 3301 | # scripts and configure runs, see configure's option --config-cache. |
| 3302 | # It is not useful on other systems. If it contains results you don't |
| 3303 | # want to keep, you may remove or edit it. |
| 3304 | # |
| 3305 | # config.status only pays attention to the cache file if you give it |
| 3306 | # the --recheck option to rerun configure. |
| 3307 | # |
| 3308 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 3309 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 3310 | # following values. |
| 3311 | |
| 3312 | _ACEOF |
| 3313 | |
| 3314 | # The following way of writing the cache mishandles newlines in values, |
| 3315 | # but we know of no workaround that is simple, portable, and efficient. |
| 3316 | # So, we kill variables containing newlines. |
| 3317 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 3318 | # and sets the high bit in the cache file unless we assign to the vars. |
| 3319 | ( |
| 3320 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 3321 | eval ac_val=\$$ac_var |
| 3322 | case $ac_val in #( |
| 3323 | *${as_nl}*) |
| 3324 | case $ac_var in #( |
| 3325 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3326 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3327 | esac |
| 3328 | case $ac_var in #( |
| 3329 | _ | IFS | as_nl) ;; #( |
| 3330 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3331 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 3332 | esac ;; |
| 3333 | esac |
| 3334 | done |
| 3335 | |
| 3336 | (set) 2>&1 | |
| 3337 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 3338 | *${as_nl}ac_space=\ *) |
| 3339 | # `set' does not quote correctly, so add quotes: double-quote |
| 3340 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 3341 | sed -n \ |
| 3342 | "s/'/'\\\\''/g; |
| 3343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 3344 | ;; #( |
| 3345 | *) |
| 3346 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 3347 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3348 | ;; |
| 3349 | esac | |
| 3350 | sort |
| 3351 | ) | |
| 3352 | sed ' |
| 3353 | /^ac_cv_env_/b end |
| 3354 | t clear |
| 3355 | :clear |
| 3356 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 3357 | t end |
| 3358 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 3359 | :end' >>confcache |
| 3360 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 3361 | if test -w "$cache_file"; then |
| 3362 | if test "x$cache_file" != "x/dev/null"; then |
| 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 3364 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 3365 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 3366 | cat confcache >"$cache_file" |
| 3367 | else |
| 3368 | case $cache_file in #( |
| 3369 | */* | ?:*) |
| 3370 | mv -f confcache "$cache_file"$$ && |
| 3371 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 3372 | *) |
| 3373 | mv -f confcache "$cache_file" ;; |
| 3374 | esac |
| 3375 | fi |
| 3376 | fi |
| 3377 | else |
| 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 3379 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 3380 | fi |
| 3381 | fi |
| 3382 | rm -f confcache |
| 3383 | |
| 3384 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 3385 | # Let make expand exec_prefix. |
| 3386 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 3387 | |
| 3388 | DEFS=-DHAVE_CONFIG_H |
| 3389 | |
| 3390 | ac_libobjs= |
| 3391 | ac_ltlibobjs= |
| 3392 | U= |
| 3393 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 3394 | # 1. Remove the extension, and $U if already installed. |
| 3395 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 3396 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 3397 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 3398 | # will be set to the directory where LIBOBJS objects are built. |
| 3399 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 3400 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 3401 | done |
| 3402 | LIBOBJS=$ac_libobjs |
| 3403 | |
| 3404 | LTLIBOBJS=$ac_ltlibobjs |
| 3405 | |
| 3406 | |
| 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 3408 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 3409 | if test -n "$am_sleep_pid"; then |
| 3410 | # Hide warnings about reused PIDs. |
| 3411 | wait $am_sleep_pid 2>/dev/null |
| 3412 | fi |
| 3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 3414 | $as_echo "done" >&6; } |
| 3415 | if test -n "$EXEEXT"; then |
| 3416 | am__EXEEXT_TRUE= |
| 3417 | am__EXEEXT_FALSE='#' |
| 3418 | else |
| 3419 | am__EXEEXT_TRUE='#' |
| 3420 | am__EXEEXT_FALSE= |
| 3421 | fi |
| 3422 | |
| 3423 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 3424 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 3425 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 3426 | fi |
| 3427 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 3428 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 3429 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 3430 | fi |
| 3431 | |
| 3432 | : "${CONFIG_STATUS=./config.status}" |
| 3433 | ac_write_fail=0 |
| 3434 | ac_clean_files_save=$ac_clean_files |
| 3435 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 3437 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 3438 | as_write_fail=0 |
| 3439 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 3440 | #! $SHELL |
| 3441 | # Generated by $as_me. |
| 3442 | # Run this file to recreate the current configuration. |
| 3443 | # Compiler output produced by configure, useful for debugging |
| 3444 | # configure, is in config.log if it exists. |
| 3445 | |
| 3446 | debug=false |
| 3447 | ac_cs_recheck=false |
| 3448 | ac_cs_silent=false |
| 3449 | |
| 3450 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 3451 | export SHELL |
| 3452 | _ASEOF |
| 3453 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 3454 | ## -------------------- ## |
| 3455 | ## M4sh Initialization. ## |
| 3456 | ## -------------------- ## |
| 3457 | |
| 3458 | # Be more Bourne compatible |
| 3459 | DUALCASE=1; export DUALCASE # for MKS sh |
| 3460 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 3461 | emulate sh |
| 3462 | NULLCMD=: |
| 3463 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 3464 | # is contrary to our usage. Disable this feature. |
| 3465 | alias -g '${1+"$@"}'='"$@"' |
| 3466 | setopt NO_GLOB_SUBST |
| 3467 | else |
| 3468 | case `(set -o) 2>/dev/null` in #( |
| 3469 | *posix*) : |
| 3470 | set -o posix ;; #( |
| 3471 | *) : |
| 3472 | ;; |
| 3473 | esac |
| 3474 | fi |
| 3475 | |
| 3476 | |
| 3477 | as_nl=' |
| 3478 | ' |
| 3479 | export as_nl |
| 3480 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 3481 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 3482 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 3483 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 3484 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 3485 | # but without wasting forks for bash or zsh. |
| 3486 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 3487 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 3488 | as_echo='print -r --' |
| 3489 | as_echo_n='print -rn --' |
| 3490 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 3491 | as_echo='printf %s\n' |
| 3492 | as_echo_n='printf %s' |
| 3493 | else |
| 3494 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 3495 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 3496 | as_echo_n='/usr/ucb/echo -n' |
| 3497 | else |
| 3498 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 3499 | as_echo_n_body='eval |
| 3500 | arg=$1; |
| 3501 | case $arg in #( |
| 3502 | *"$as_nl"*) |
| 3503 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 3504 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 3505 | esac; |
| 3506 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 3507 | ' |
| 3508 | export as_echo_n_body |
| 3509 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 3510 | fi |
| 3511 | export as_echo_body |
| 3512 | as_echo='sh -c $as_echo_body as_echo' |
| 3513 | fi |
| 3514 | |
| 3515 | # The user is always right. |
| 3516 | if test "${PATH_SEPARATOR+set}" != set; then |
| 3517 | PATH_SEPARATOR=: |
| 3518 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 3519 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 3520 | PATH_SEPARATOR=';' |
| 3521 | } |
| 3522 | fi |
| 3523 | |
| 3524 | |
| 3525 | # IFS |
| 3526 | # We need space, tab and new line, in precisely that order. Quoting is |
| 3527 | # there to prevent editors from complaining about space-tab. |
| 3528 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 3529 | # splitting by setting IFS to empty value.) |
| 3530 | IFS=" "" $as_nl" |
| 3531 | |
| 3532 | # Find who we are. Look in the path if we contain no directory separator. |
| 3533 | as_myself= |
| 3534 | case $0 in #(( |
| 3535 | *[\\/]* ) as_myself=$0 ;; |
| 3536 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3537 | for as_dir in $PATH |
| 3538 | do |
| 3539 | IFS=$as_save_IFS |
| 3540 | test -z "$as_dir" && as_dir=. |
| 3541 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 3542 | done |
| 3543 | IFS=$as_save_IFS |
| 3544 | |
| 3545 | ;; |
| 3546 | esac |
| 3547 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 3548 | # in which case we are not to be found in the path. |
| 3549 | if test "x$as_myself" = x; then |
| 3550 | as_myself=$0 |
| 3551 | fi |
| 3552 | if test ! -f "$as_myself"; then |
| 3553 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 3554 | exit 1 |
| 3555 | fi |
| 3556 | |
| 3557 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 3558 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 3559 | # suppresses any "Segmentation fault" message there. '((' could |
| 3560 | # trigger a bug in pdksh 5.2.14. |
| 3561 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 3562 | do eval test x\${$as_var+set} = xset \ |
| 3563 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 3564 | done |
| 3565 | PS1='$ ' |
| 3566 | PS2='> ' |
| 3567 | PS4='+ ' |
| 3568 | |
| 3569 | # NLS nuisances. |
| 3570 | LC_ALL=C |
| 3571 | export LC_ALL |
| 3572 | LANGUAGE=C |
| 3573 | export LANGUAGE |
| 3574 | |
| 3575 | # CDPATH. |
| 3576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 3577 | |
| 3578 | |
| 3579 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 3580 | # ---------------------------------------- |
| 3581 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 3582 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 3583 | # script with STATUS, using 1 if that was 0. |
| 3584 | as_fn_error () |
| 3585 | { |
| 3586 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 3587 | if test "$4"; then |
| 3588 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3589 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 3590 | fi |
| 3591 | $as_echo "$as_me: error: $2" >&2 |
| 3592 | as_fn_exit $as_status |
| 3593 | } # as_fn_error |
| 3594 | |
| 3595 | |
| 3596 | # as_fn_set_status STATUS |
| 3597 | # ----------------------- |
| 3598 | # Set $? to STATUS, without forking. |
| 3599 | as_fn_set_status () |
| 3600 | { |
| 3601 | return $1 |
| 3602 | } # as_fn_set_status |
| 3603 | |
| 3604 | # as_fn_exit STATUS |
| 3605 | # ----------------- |
| 3606 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 3607 | as_fn_exit () |
| 3608 | { |
| 3609 | set +e |
| 3610 | as_fn_set_status $1 |
| 3611 | exit $1 |
| 3612 | } # as_fn_exit |
| 3613 | |
| 3614 | # as_fn_unset VAR |
| 3615 | # --------------- |
| 3616 | # Portably unset VAR. |
| 3617 | as_fn_unset () |
| 3618 | { |
| 3619 | { eval $1=; unset $1;} |
| 3620 | } |
| 3621 | as_unset=as_fn_unset |
| 3622 | # as_fn_append VAR VALUE |
| 3623 | # ---------------------- |
| 3624 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 3625 | # advantage of any shell optimizations that allow amortized linear growth over |
| 3626 | # repeated appends, instead of the typical quadratic growth present in naive |
| 3627 | # implementations. |
| 3628 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 3629 | eval 'as_fn_append () |
| 3630 | { |
| 3631 | eval $1+=\$2 |
| 3632 | }' |
| 3633 | else |
| 3634 | as_fn_append () |
| 3635 | { |
| 3636 | eval $1=\$$1\$2 |
| 3637 | } |
| 3638 | fi # as_fn_append |
| 3639 | |
| 3640 | # as_fn_arith ARG... |
| 3641 | # ------------------ |
| 3642 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 3643 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 3644 | # must be portable across $(()) and expr. |
| 3645 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 3646 | eval 'as_fn_arith () |
| 3647 | { |
| 3648 | as_val=$(( $* )) |
| 3649 | }' |
| 3650 | else |
| 3651 | as_fn_arith () |
| 3652 | { |
| 3653 | as_val=`expr "$@" || test $? -eq 1` |
| 3654 | } |
| 3655 | fi # as_fn_arith |
| 3656 | |
| 3657 | |
| 3658 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 3659 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 3660 | as_expr=expr |
| 3661 | else |
| 3662 | as_expr=false |
| 3663 | fi |
| 3664 | |
| 3665 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 3666 | as_basename=basename |
| 3667 | else |
| 3668 | as_basename=false |
| 3669 | fi |
| 3670 | |
| 3671 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 3672 | as_dirname=dirname |
| 3673 | else |
| 3674 | as_dirname=false |
| 3675 | fi |
| 3676 | |
| 3677 | as_me=`$as_basename -- "$0" || |
| 3678 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 3679 | X"$0" : 'X\(//\)$' \| \ |
| 3680 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 3681 | $as_echo X/"$0" | |
| 3682 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 3683 | s//\1/ |
| 3684 | q |
| 3685 | } |
| 3686 | /^X\/\(\/\/\)$/{ |
| 3687 | s//\1/ |
| 3688 | q |
| 3689 | } |
| 3690 | /^X\/\(\/\).*/{ |
| 3691 | s//\1/ |
| 3692 | q |
| 3693 | } |
| 3694 | s/.*/./; q'` |
| 3695 | |
| 3696 | # Avoid depending upon Character Ranges. |
| 3697 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 3698 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 3699 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 3700 | as_cr_digits='0123456789' |
| 3701 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 3702 | |
| 3703 | ECHO_C= ECHO_N= ECHO_T= |
| 3704 | case `echo -n x` in #((((( |
| 3705 | -n*) |
| 3706 | case `echo 'xy\c'` in |
| 3707 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 3708 | xy) ECHO_C='\c';; |
| 3709 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 3710 | ECHO_T=' ';; |
| 3711 | esac;; |
| 3712 | *) |
| 3713 | ECHO_N='-n';; |
| 3714 | esac |
| 3715 | |
| 3716 | rm -f conf$$ conf$$.exe conf$$.file |
| 3717 | if test -d conf$$.dir; then |
| 3718 | rm -f conf$$.dir/conf$$.file |
| 3719 | else |
| 3720 | rm -f conf$$.dir |
| 3721 | mkdir conf$$.dir 2>/dev/null |
| 3722 | fi |
| 3723 | if (echo >conf$$.file) 2>/dev/null; then |
| 3724 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 3725 | as_ln_s='ln -s' |
| 3726 | # ... but there are two gotchas: |
| 3727 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 3728 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 3729 | # In both cases, we have to default to `cp -pR'. |
| 3730 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 3731 | as_ln_s='cp -pR' |
| 3732 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 3733 | as_ln_s=ln |
| 3734 | else |
| 3735 | as_ln_s='cp -pR' |
| 3736 | fi |
| 3737 | else |
| 3738 | as_ln_s='cp -pR' |
| 3739 | fi |
| 3740 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 3741 | rmdir conf$$.dir 2>/dev/null |
| 3742 | |
| 3743 | |
| 3744 | # as_fn_mkdir_p |
| 3745 | # ------------- |
| 3746 | # Create "$as_dir" as a directory, including parents if necessary. |
| 3747 | as_fn_mkdir_p () |
| 3748 | { |
| 3749 | |
| 3750 | case $as_dir in #( |
| 3751 | -*) as_dir=./$as_dir;; |
| 3752 | esac |
| 3753 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 3754 | as_dirs= |
| 3755 | while :; do |
| 3756 | case $as_dir in #( |
| 3757 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 3758 | *) as_qdir=$as_dir;; |
| 3759 | esac |
| 3760 | as_dirs="'$as_qdir' $as_dirs" |
| 3761 | as_dir=`$as_dirname -- "$as_dir" || |
| 3762 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3763 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3764 | X"$as_dir" : 'X\(//\)$' \| \ |
| 3765 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 3766 | $as_echo X"$as_dir" | |
| 3767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3768 | s//\1/ |
| 3769 | q |
| 3770 | } |
| 3771 | /^X\(\/\/\)[^/].*/{ |
| 3772 | s//\1/ |
| 3773 | q |
| 3774 | } |
| 3775 | /^X\(\/\/\)$/{ |
| 3776 | s//\1/ |
| 3777 | q |
| 3778 | } |
| 3779 | /^X\(\/\).*/{ |
| 3780 | s//\1/ |
| 3781 | q |
| 3782 | } |
| 3783 | s/.*/./; q'` |
| 3784 | test -d "$as_dir" && break |
| 3785 | done |
| 3786 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 3787 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 3788 | |
| 3789 | |
| 3790 | } # as_fn_mkdir_p |
| 3791 | if mkdir -p . 2>/dev/null; then |
| 3792 | as_mkdir_p='mkdir -p "$as_dir"' |
| 3793 | else |
| 3794 | test -d ./-p && rmdir ./-p |
| 3795 | as_mkdir_p=false |
| 3796 | fi |
| 3797 | |
| 3798 | |
| 3799 | # as_fn_executable_p FILE |
| 3800 | # ----------------------- |
| 3801 | # Test if FILE is an executable regular file. |
| 3802 | as_fn_executable_p () |
| 3803 | { |
| 3804 | test -f "$1" && test -x "$1" |
| 3805 | } # as_fn_executable_p |
| 3806 | as_test_x='test -x' |
| 3807 | as_executable_p=as_fn_executable_p |
| 3808 | |
| 3809 | # Sed expression to map a string onto a valid CPP name. |
| 3810 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 3811 | |
| 3812 | # Sed expression to map a string onto a valid variable name. |
| 3813 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 3814 | |
| 3815 | |
| 3816 | exec 6>&1 |
| 3817 | ## ----------------------------------- ## |
| 3818 | ## Main body of $CONFIG_STATUS script. ## |
| 3819 | ## ----------------------------------- ## |
| 3820 | _ASEOF |
| 3821 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 3822 | |
| 3823 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3824 | # Save the log message, to keep $0 and so on meaningful, and to |
| 3825 | # report actual input values of CONFIG_FILES etc. instead of their |
| 3826 | # values after options handling. |
| 3827 | ac_log=" |
| 3828 | This file was extended by ndn-cpp $as_me 0.5, which was |
| 3829 | generated by GNU Autoconf 2.69. Invocation command line was |
| 3830 | |
| 3831 | CONFIG_FILES = $CONFIG_FILES |
| 3832 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 3833 | CONFIG_LINKS = $CONFIG_LINKS |
| 3834 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 3835 | $ $0 $@ |
| 3836 | |
| 3837 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3838 | " |
| 3839 | |
| 3840 | _ACEOF |
| 3841 | |
| 3842 | case $ac_config_files in *" |
| 3843 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 3844 | esac |
| 3845 | |
| 3846 | case $ac_config_headers in *" |
| 3847 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 3848 | esac |
| 3849 | |
| 3850 | |
| 3851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3852 | # Files that config.status was made for. |
| 3853 | config_files="$ac_config_files" |
| 3854 | config_headers="$ac_config_headers" |
| 3855 | config_commands="$ac_config_commands" |
| 3856 | |
| 3857 | _ACEOF |
| 3858 | |
| 3859 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3860 | ac_cs_usage="\ |
| 3861 | \`$as_me' instantiates files and other configuration actions |
| 3862 | from templates according to the current configuration. Unless the files |
| 3863 | and actions are specified as TAGs, all are instantiated by default. |
| 3864 | |
| 3865 | Usage: $0 [OPTION]... [TAG]... |
| 3866 | |
| 3867 | -h, --help print this help, then exit |
| 3868 | -V, --version print version number and configuration settings, then exit |
| 3869 | --config print configuration, then exit |
| 3870 | -q, --quiet, --silent |
| 3871 | do not print progress messages |
| 3872 | -d, --debug don't remove temporary files |
| 3873 | --recheck update $as_me by reconfiguring in the same conditions |
| 3874 | --file=FILE[:TEMPLATE] |
| 3875 | instantiate the configuration file FILE |
| 3876 | --header=FILE[:TEMPLATE] |
| 3877 | instantiate the configuration header FILE |
| 3878 | |
| 3879 | Configuration files: |
| 3880 | $config_files |
| 3881 | |
| 3882 | Configuration headers: |
| 3883 | $config_headers |
| 3884 | |
| 3885 | Configuration commands: |
| 3886 | $config_commands |
| 3887 | |
| 3888 | Report bugs to the package provider. |
| 3889 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>." |
| 3890 | |
| 3891 | _ACEOF |
| 3892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3893 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 3894 | ac_cs_version="\\ |
| 3895 | ndn-cpp config.status 0.5 |
| 3896 | configured by $0, generated by GNU Autoconf 2.69, |
| 3897 | with options \\"\$ac_cs_config\\" |
| 3898 | |
| 3899 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 3900 | This config.status script is free software; the Free Software Foundation |
| 3901 | gives unlimited permission to copy, distribute and modify it." |
| 3902 | |
| 3903 | ac_pwd='$ac_pwd' |
| 3904 | srcdir='$srcdir' |
| 3905 | INSTALL='$INSTALL' |
| 3906 | MKDIR_P='$MKDIR_P' |
| 3907 | AWK='$AWK' |
| 3908 | test -n "\$AWK" || AWK=awk |
| 3909 | _ACEOF |
| 3910 | |
| 3911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3912 | # The default lists apply if the user does not specify any file. |
| 3913 | ac_need_defaults=: |
| 3914 | while test $# != 0 |
| 3915 | do |
| 3916 | case $1 in |
| 3917 | --*=?*) |
| 3918 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3919 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 3920 | ac_shift=: |
| 3921 | ;; |
| 3922 | --*=) |
| 3923 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3924 | ac_optarg= |
| 3925 | ac_shift=: |
| 3926 | ;; |
| 3927 | *) |
| 3928 | ac_option=$1 |
| 3929 | ac_optarg=$2 |
| 3930 | ac_shift=shift |
| 3931 | ;; |
| 3932 | esac |
| 3933 | |
| 3934 | case $ac_option in |
| 3935 | # Handling of the options. |
| 3936 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3937 | ac_cs_recheck=: ;; |
| 3938 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 3939 | $as_echo "$ac_cs_version"; exit ;; |
| 3940 | --config | --confi | --conf | --con | --co | --c ) |
| 3941 | $as_echo "$ac_cs_config"; exit ;; |
| 3942 | --debug | --debu | --deb | --de | --d | -d ) |
| 3943 | debug=: ;; |
| 3944 | --file | --fil | --fi | --f ) |
| 3945 | $ac_shift |
| 3946 | case $ac_optarg in |
| 3947 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3948 | '') as_fn_error $? "missing file argument" ;; |
| 3949 | esac |
| 3950 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 3951 | ac_need_defaults=false;; |
| 3952 | --header | --heade | --head | --hea ) |
| 3953 | $ac_shift |
| 3954 | case $ac_optarg in |
| 3955 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3956 | esac |
| 3957 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 3958 | ac_need_defaults=false;; |
| 3959 | --he | --h) |
| 3960 | # Conflict between --help and --header |
| 3961 | as_fn_error $? "ambiguous option: \`$1' |
| 3962 | Try \`$0 --help' for more information.";; |
| 3963 | --help | --hel | -h ) |
| 3964 | $as_echo "$ac_cs_usage"; exit ;; |
| 3965 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3966 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 3967 | ac_cs_silent=: ;; |
| 3968 | |
| 3969 | # This is an error. |
| 3970 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 3971 | Try \`$0 --help' for more information." ;; |
| 3972 | |
| 3973 | *) as_fn_append ac_config_targets " $1" |
| 3974 | ac_need_defaults=false ;; |
| 3975 | |
| 3976 | esac |
| 3977 | shift |
| 3978 | done |
| 3979 | |
| 3980 | ac_configure_extra_args= |
| 3981 | |
| 3982 | if $ac_cs_silent; then |
| 3983 | exec 6>/dev/null |
| 3984 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 3985 | fi |
| 3986 | |
| 3987 | _ACEOF |
| 3988 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3989 | if \$ac_cs_recheck; then |
| 3990 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 3991 | shift |
| 3992 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 3993 | CONFIG_SHELL='$SHELL' |
| 3994 | export CONFIG_SHELL |
| 3995 | exec "\$@" |
| 3996 | fi |
| 3997 | |
| 3998 | _ACEOF |
| 3999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4000 | exec 5>>config.log |
| 4001 | { |
| 4002 | echo |
| 4003 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 4004 | ## Running $as_me. ## |
| 4005 | _ASBOX |
| 4006 | $as_echo "$ac_log" |
| 4007 | } >&5 |
| 4008 | |
| 4009 | _ACEOF |
| 4010 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4011 | # |
| 4012 | # INIT-COMMANDS |
| 4013 | # |
| 4014 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 4015 | |
| 4016 | _ACEOF |
| 4017 | |
| 4018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4019 | |
| 4020 | # Handling of arguments. |
| 4021 | for ac_config_target in $ac_config_targets |
| 4022 | do |
| 4023 | case $ac_config_target in |
| 4024 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 4025 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 4026 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 4027 | |
| 4028 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 4029 | esac |
| 4030 | done |
| 4031 | |
| 4032 | |
| 4033 | # If the user did not use the arguments to specify the items to instantiate, |
| 4034 | # then the envvar interface is used. Set only those that are not. |
| 4035 | # We use the long form for the default assignment because of an extremely |
| 4036 | # bizarre bug on SunOS 4.1.3. |
| 4037 | if $ac_need_defaults; then |
| 4038 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 4039 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 4040 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 4041 | fi |
| 4042 | |
| 4043 | # Have a temporary directory for convenience. Make it in the build tree |
| 4044 | # simply because there is no reason against having it here, and in addition, |
| 4045 | # creating and moving files from /tmp can sometimes cause problems. |
| 4046 | # Hook for its removal unless debugging. |
| 4047 | # Note that there is a small window in which the directory will not be cleaned: |
| 4048 | # after its creation but before its name has been assigned to `$tmp'. |
| 4049 | $debug || |
| 4050 | { |
| 4051 | tmp= ac_tmp= |
| 4052 | trap 'exit_status=$? |
| 4053 | : "${ac_tmp:=$tmp}" |
| 4054 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 4055 | ' 0 |
| 4056 | trap 'as_fn_exit 1' 1 2 13 15 |
| 4057 | } |
| 4058 | # Create a (secure) tmp directory for tmp files. |
| 4059 | |
| 4060 | { |
| 4061 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 4062 | test -d "$tmp" |
| 4063 | } || |
| 4064 | { |
| 4065 | tmp=./conf$$-$RANDOM |
| 4066 | (umask 077 && mkdir "$tmp") |
| 4067 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 4068 | ac_tmp=$tmp |
| 4069 | |
| 4070 | # Set up the scripts for CONFIG_FILES section. |
| 4071 | # No need to generate them if there are no CONFIG_FILES. |
| 4072 | # This happens for instance with `./config.status config.h'. |
| 4073 | if test -n "$CONFIG_FILES"; then |
| 4074 | |
| 4075 | |
| 4076 | ac_cr=`echo X | tr X '\015'` |
| 4077 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 4078 | # But we know of no other shell where ac_cr would be empty at this |
| 4079 | # point, so we can use a bashism as a fallback. |
| 4080 | if test "x$ac_cr" = x; then |
| 4081 | eval ac_cr=\$\'\\r\' |
| 4082 | fi |
| 4083 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 4084 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 4085 | ac_cs_awk_cr='\\r' |
| 4086 | else |
| 4087 | ac_cs_awk_cr=$ac_cr |
| 4088 | fi |
| 4089 | |
| 4090 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 4091 | _ACEOF |
| 4092 | |
| 4093 | |
| 4094 | { |
| 4095 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 4096 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 4097 | echo "_ACEOF" |
| 4098 | } >conf$$subs.sh || |
| 4099 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4100 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 4101 | ac_delim='%!_!# ' |
| 4102 | for ac_last_try in false false false false false :; do |
| 4103 | . ./conf$$subs.sh || |
| 4104 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4105 | |
| 4106 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 4107 | if test $ac_delim_n = $ac_delim_num; then |
| 4108 | break |
| 4109 | elif $ac_last_try; then |
| 4110 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4111 | else |
| 4112 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 4113 | fi |
| 4114 | done |
| 4115 | rm -f conf$$subs.sh |
| 4116 | |
| 4117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4118 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 4119 | _ACEOF |
| 4120 | sed -n ' |
| 4121 | h |
| 4122 | s/^/S["/; s/!.*/"]=/ |
| 4123 | p |
| 4124 | g |
| 4125 | s/^[^!]*!// |
| 4126 | :repl |
| 4127 | t repl |
| 4128 | s/'"$ac_delim"'$// |
| 4129 | t delim |
| 4130 | :nl |
| 4131 | h |
| 4132 | s/\(.\{148\}\)..*/\1/ |
| 4133 | t more1 |
| 4134 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 4135 | p |
| 4136 | n |
| 4137 | b repl |
| 4138 | :more1 |
| 4139 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 4140 | p |
| 4141 | g |
| 4142 | s/.\{148\}// |
| 4143 | t nl |
| 4144 | :delim |
| 4145 | h |
| 4146 | s/\(.\{148\}\)..*/\1/ |
| 4147 | t more2 |
| 4148 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 4149 | p |
| 4150 | b |
| 4151 | :more2 |
| 4152 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 4153 | p |
| 4154 | g |
| 4155 | s/.\{148\}// |
| 4156 | t delim |
| 4157 | ' <conf$$subs.awk | sed ' |
| 4158 | /^[^""]/{ |
| 4159 | N |
| 4160 | s/\n// |
| 4161 | } |
| 4162 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 4163 | rm -f conf$$subs.awk |
| 4164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4165 | _ACAWK |
| 4166 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 4167 | for (key in S) S_is_set[key] = 1 |
| 4168 | FS = "" |
| 4169 | |
| 4170 | } |
| 4171 | { |
| 4172 | line = $ 0 |
| 4173 | nfields = split(line, field, "@") |
| 4174 | substed = 0 |
| 4175 | len = length(field[1]) |
| 4176 | for (i = 2; i < nfields; i++) { |
| 4177 | key = field[i] |
| 4178 | keylen = length(key) |
| 4179 | if (S_is_set[key]) { |
| 4180 | value = S[key] |
| 4181 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 4182 | len += length(value) + length(field[++i]) |
| 4183 | substed = 1 |
| 4184 | } else |
| 4185 | len += 1 + keylen |
| 4186 | } |
| 4187 | |
| 4188 | print line |
| 4189 | } |
| 4190 | |
| 4191 | _ACAWK |
| 4192 | _ACEOF |
| 4193 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4194 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 4195 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 4196 | else |
| 4197 | cat |
| 4198 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 4199 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 4200 | _ACEOF |
| 4201 | |
| 4202 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 4203 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 4204 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 4205 | # (actually we leave an empty line to preserve line numbers). |
| 4206 | if test "x$srcdir" = x.; then |
| 4207 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 4208 | h |
| 4209 | s/// |
| 4210 | s/^/:/ |
| 4211 | s/[ ]*$/:/ |
| 4212 | s/:\$(srcdir):/:/g |
| 4213 | s/:\${srcdir}:/:/g |
| 4214 | s/:@srcdir@:/:/g |
| 4215 | s/^:*// |
| 4216 | s/:*$// |
| 4217 | x |
| 4218 | s/\(=[ ]*\).*/\1/ |
| 4219 | G |
| 4220 | s/\n// |
| 4221 | s/^[^=]*=[ ]*$// |
| 4222 | }' |
| 4223 | fi |
| 4224 | |
| 4225 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4226 | fi # test -n "$CONFIG_FILES" |
| 4227 | |
| 4228 | # Set up the scripts for CONFIG_HEADERS section. |
| 4229 | # No need to generate them if there are no CONFIG_HEADERS. |
| 4230 | # This happens for instance with `./config.status Makefile'. |
| 4231 | if test -n "$CONFIG_HEADERS"; then |
| 4232 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 4233 | BEGIN { |
| 4234 | _ACEOF |
| 4235 | |
| 4236 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 4237 | # here-document in config.status, that substitutes the proper values into |
| 4238 | # config.h.in to produce config.h. |
| 4239 | |
| 4240 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 4241 | # handling of long lines. |
| 4242 | ac_delim='%!_!# ' |
| 4243 | for ac_last_try in false false :; do |
| 4244 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 4245 | if test -z "$ac_tt"; then |
| 4246 | break |
| 4247 | elif $ac_last_try; then |
| 4248 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 4249 | else |
| 4250 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 4251 | fi |
| 4252 | done |
| 4253 | |
| 4254 | # For the awk script, D is an array of macro values keyed by name, |
| 4255 | # likewise P contains macro parameters if any. Preserve backslash |
| 4256 | # newline sequences. |
| 4257 | |
| 4258 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 4259 | sed -n ' |
| 4260 | s/.\{148\}/&'"$ac_delim"'/g |
| 4261 | t rset |
| 4262 | :rset |
| 4263 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 4264 | t def |
| 4265 | d |
| 4266 | :def |
| 4267 | s/\\$// |
| 4268 | t bsnl |
| 4269 | s/["\\]/\\&/g |
| 4270 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 4271 | D["\1"]=" \3"/p |
| 4272 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 4273 | d |
| 4274 | :bsnl |
| 4275 | s/["\\]/\\&/g |
| 4276 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 4277 | D["\1"]=" \3\\\\\\n"\\/p |
| 4278 | t cont |
| 4279 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 4280 | t cont |
| 4281 | d |
| 4282 | :cont |
| 4283 | n |
| 4284 | s/.\{148\}/&'"$ac_delim"'/g |
| 4285 | t clear |
| 4286 | :clear |
| 4287 | s/\\$// |
| 4288 | t bsnlc |
| 4289 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 4290 | d |
| 4291 | :bsnlc |
| 4292 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 4293 | b cont |
| 4294 | ' <confdefs.h | sed ' |
| 4295 | s/'"$ac_delim"'/"\\\ |
| 4296 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 4297 | |
| 4298 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4299 | for (key in D) D_is_set[key] = 1 |
| 4300 | FS = "" |
| 4301 | } |
| 4302 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 4303 | line = \$ 0 |
| 4304 | split(line, arg, " ") |
| 4305 | if (arg[1] == "#") { |
| 4306 | defundef = arg[2] |
| 4307 | mac1 = arg[3] |
| 4308 | } else { |
| 4309 | defundef = substr(arg[1], 2) |
| 4310 | mac1 = arg[2] |
| 4311 | } |
| 4312 | split(mac1, mac2, "(") #) |
| 4313 | macro = mac2[1] |
| 4314 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 4315 | if (D_is_set[macro]) { |
| 4316 | # Preserve the white space surrounding the "#". |
| 4317 | print prefix "define", macro P[macro] D[macro] |
| 4318 | next |
| 4319 | } else { |
| 4320 | # Replace #undef with comments. This is necessary, for example, |
| 4321 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 4322 | # on some systems where configure will not decide to define it. |
| 4323 | if (defundef == "undef") { |
| 4324 | print "/*", prefix defundef, macro, "*/" |
| 4325 | next |
| 4326 | } |
| 4327 | } |
| 4328 | } |
| 4329 | { print } |
| 4330 | _ACAWK |
| 4331 | _ACEOF |
| 4332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4333 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 4334 | fi # test -n "$CONFIG_HEADERS" |
| 4335 | |
| 4336 | |
| 4337 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 4338 | shift |
| 4339 | for ac_tag |
| 4340 | do |
| 4341 | case $ac_tag in |
| 4342 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 4343 | esac |
| 4344 | case $ac_mode$ac_tag in |
| 4345 | :[FHL]*:*);; |
| 4346 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 4347 | :[FH]-) ac_tag=-:-;; |
| 4348 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 4349 | esac |
| 4350 | ac_save_IFS=$IFS |
| 4351 | IFS=: |
| 4352 | set x $ac_tag |
| 4353 | IFS=$ac_save_IFS |
| 4354 | shift |
| 4355 | ac_file=$1 |
| 4356 | shift |
| 4357 | |
| 4358 | case $ac_mode in |
| 4359 | :L) ac_source=$1;; |
| 4360 | :[FH]) |
| 4361 | ac_file_inputs= |
| 4362 | for ac_f |
| 4363 | do |
| 4364 | case $ac_f in |
| 4365 | -) ac_f="$ac_tmp/stdin";; |
| 4366 | *) # Look for the file first in the build tree, then in the source tree |
| 4367 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 4368 | # because $ac_f cannot contain `:'. |
| 4369 | test -f "$ac_f" || |
| 4370 | case $ac_f in |
| 4371 | [\\/$]*) false;; |
| 4372 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 4373 | esac || |
| 4374 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 4375 | esac |
| 4376 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 4377 | as_fn_append ac_file_inputs " '$ac_f'" |
| 4378 | done |
| 4379 | |
| 4380 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 4381 | # use $as_me), people would be surprised to read: |
| 4382 | # /* config.h. Generated by config.status. */ |
| 4383 | configure_input='Generated from '` |
| 4384 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 4385 | `' by configure.' |
| 4386 | if test x"$ac_file" != x-; then |
| 4387 | configure_input="$ac_file. $configure_input" |
| 4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 4389 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 4390 | fi |
| 4391 | # Neutralize special characters interpreted by sed in replacement strings. |
| 4392 | case $configure_input in #( |
| 4393 | *\&* | *\|* | *\\* ) |
| 4394 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 4395 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 4396 | *) ac_sed_conf_input=$configure_input;; |
| 4397 | esac |
| 4398 | |
| 4399 | case $ac_tag in |
| 4400 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 4401 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 4402 | esac |
| 4403 | ;; |
| 4404 | esac |
| 4405 | |
| 4406 | ac_dir=`$as_dirname -- "$ac_file" || |
| 4407 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4408 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4409 | X"$ac_file" : 'X\(//\)$' \| \ |
| 4410 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 4411 | $as_echo X"$ac_file" | |
| 4412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4413 | s//\1/ |
| 4414 | q |
| 4415 | } |
| 4416 | /^X\(\/\/\)[^/].*/{ |
| 4417 | s//\1/ |
| 4418 | q |
| 4419 | } |
| 4420 | /^X\(\/\/\)$/{ |
| 4421 | s//\1/ |
| 4422 | q |
| 4423 | } |
| 4424 | /^X\(\/\).*/{ |
| 4425 | s//\1/ |
| 4426 | q |
| 4427 | } |
| 4428 | s/.*/./; q'` |
| 4429 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 4430 | ac_builddir=. |
| 4431 | |
| 4432 | case "$ac_dir" in |
| 4433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4434 | *) |
| 4435 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 4436 | # A ".." for each directory in $ac_dir_suffix. |
| 4437 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 4438 | case $ac_top_builddir_sub in |
| 4439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 4441 | esac ;; |
| 4442 | esac |
| 4443 | ac_abs_top_builddir=$ac_pwd |
| 4444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 4445 | # for backward compatibility: |
| 4446 | ac_top_builddir=$ac_top_build_prefix |
| 4447 | |
| 4448 | case $srcdir in |
| 4449 | .) # We are building in place. |
| 4450 | ac_srcdir=. |
| 4451 | ac_top_srcdir=$ac_top_builddir_sub |
| 4452 | ac_abs_top_srcdir=$ac_pwd ;; |
| 4453 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 4454 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 4455 | ac_top_srcdir=$srcdir |
| 4456 | ac_abs_top_srcdir=$srcdir ;; |
| 4457 | *) # Relative name. |
| 4458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 4459 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 4460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 4461 | esac |
| 4462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 4463 | |
| 4464 | |
| 4465 | case $ac_mode in |
| 4466 | :F) |
| 4467 | # |
| 4468 | # CONFIG_FILE |
| 4469 | # |
| 4470 | |
| 4471 | case $INSTALL in |
| 4472 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 4473 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 4474 | esac |
| 4475 | ac_MKDIR_P=$MKDIR_P |
| 4476 | case $MKDIR_P in |
| 4477 | [\\/$]* | ?:[\\/]* ) ;; |
| 4478 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 4479 | esac |
| 4480 | _ACEOF |
| 4481 | |
| 4482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4483 | # If the template does not know about datarootdir, expand it. |
| 4484 | # FIXME: This hack should be removed a few years after 2.60. |
| 4485 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 4486 | ac_sed_dataroot=' |
| 4487 | /datarootdir/ { |
| 4488 | p |
| 4489 | q |
| 4490 | } |
| 4491 | /@datadir@/p |
| 4492 | /@docdir@/p |
| 4493 | /@infodir@/p |
| 4494 | /@localedir@/p |
| 4495 | /@mandir@/p' |
| 4496 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 4497 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 4498 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 4500 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 4501 | _ACEOF |
| 4502 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4503 | ac_datarootdir_hack=' |
| 4504 | s&@datadir@&$datadir&g |
| 4505 | s&@docdir@&$docdir&g |
| 4506 | s&@infodir@&$infodir&g |
| 4507 | s&@localedir@&$localedir&g |
| 4508 | s&@mandir@&$mandir&g |
| 4509 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 4510 | esac |
| 4511 | _ACEOF |
| 4512 | |
| 4513 | # Neutralize VPATH when `$srcdir' = `.'. |
| 4514 | # Shell code in configure.ac might set extrasub. |
| 4515 | # FIXME: do we really want to maintain this feature? |
| 4516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4517 | ac_sed_extra="$ac_vpsub |
| 4518 | $extrasub |
| 4519 | _ACEOF |
| 4520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4521 | :t |
| 4522 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 4523 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 4524 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 4525 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 4526 | s&@srcdir@&$ac_srcdir&;t t |
| 4527 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 4528 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 4529 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 4530 | s&@builddir@&$ac_builddir&;t t |
| 4531 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 4532 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 4533 | s&@INSTALL@&$ac_INSTALL&;t t |
| 4534 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 4535 | $ac_datarootdir_hack |
| 4536 | " |
| 4537 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 4538 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 4539 | |
| 4540 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 4541 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 4542 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 4543 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4545 | which seems to be undefined. Please make sure it is defined" >&5 |
| 4546 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4547 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 4548 | |
| 4549 | rm -f "$ac_tmp/stdin" |
| 4550 | case $ac_file in |
| 4551 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 4552 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 4553 | esac \ |
| 4554 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 4555 | ;; |
| 4556 | :H) |
| 4557 | # |
| 4558 | # CONFIG_HEADER |
| 4559 | # |
| 4560 | if test x"$ac_file" != x-; then |
| 4561 | { |
| 4562 | $as_echo "/* $configure_input */" \ |
| 4563 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 4564 | } >"$ac_tmp/config.h" \ |
| 4565 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 4566 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 4568 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 4569 | else |
| 4570 | rm -f "$ac_file" |
| 4571 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 4572 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 4573 | fi |
| 4574 | else |
| 4575 | $as_echo "/* $configure_input */" \ |
| 4576 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 4577 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 4578 | fi |
| 4579 | # Compute "$ac_file"'s index in $config_headers. |
| 4580 | _am_arg="$ac_file" |
| 4581 | _am_stamp_count=1 |
| 4582 | for _am_header in $config_headers :; do |
| 4583 | case $_am_header in |
| 4584 | $_am_arg | $_am_arg:* ) |
| 4585 | break ;; |
| 4586 | * ) |
| 4587 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 4588 | esac |
| 4589 | done |
| 4590 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 4591 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4592 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 4593 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 4594 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 4595 | $as_echo X"$_am_arg" | |
| 4596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4597 | s//\1/ |
| 4598 | q |
| 4599 | } |
| 4600 | /^X\(\/\/\)[^/].*/{ |
| 4601 | s//\1/ |
| 4602 | q |
| 4603 | } |
| 4604 | /^X\(\/\/\)$/{ |
| 4605 | s//\1/ |
| 4606 | q |
| 4607 | } |
| 4608 | /^X\(\/\).*/{ |
| 4609 | s//\1/ |
| 4610 | q |
| 4611 | } |
| 4612 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 4613 | ;; |
| 4614 | |
| 4615 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 4616 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 4617 | ;; |
| 4618 | esac |
| 4619 | |
| 4620 | |
| 4621 | case $ac_file$ac_mode in |
| 4622 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 4623 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 4624 | # are listed without --file. Let's play safe and only enable the eval |
| 4625 | # if we detect the quoting. |
| 4626 | case $CONFIG_FILES in |
| 4627 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 4628 | *) set x $CONFIG_FILES ;; |
| 4629 | esac |
| 4630 | shift |
| 4631 | for mf |
| 4632 | do |
| 4633 | # Strip MF so we end up with the name of the file. |
| 4634 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 4635 | # Check whether this is an Automake generated Makefile or not. |
| 4636 | # We used to match only the files named 'Makefile.in', but |
| 4637 | # some people rename them; so instead we look at the file content. |
| 4638 | # Grep'ing the first line is not enough: some people post-process |
| 4639 | # each Makefile.in and add a new line on top of each file to say so. |
| 4640 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 4641 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 4642 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 4643 | dirpart=`$as_dirname -- "$mf" || |
| 4644 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4645 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 4646 | X"$mf" : 'X\(//\)$' \| \ |
| 4647 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 4648 | $as_echo X"$mf" | |
| 4649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4650 | s//\1/ |
| 4651 | q |
| 4652 | } |
| 4653 | /^X\(\/\/\)[^/].*/{ |
| 4654 | s//\1/ |
| 4655 | q |
| 4656 | } |
| 4657 | /^X\(\/\/\)$/{ |
| 4658 | s//\1/ |
| 4659 | q |
| 4660 | } |
| 4661 | /^X\(\/\).*/{ |
| 4662 | s//\1/ |
| 4663 | q |
| 4664 | } |
| 4665 | s/.*/./; q'` |
| 4666 | else |
| 4667 | continue |
| 4668 | fi |
| 4669 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 4670 | # from the Makefile without running 'make'. |
| 4671 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 4672 | test -z "$DEPDIR" && continue |
| 4673 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 4674 | test -z "$am__include" && continue |
| 4675 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 4676 | # Find all dependency output files, they are included files with |
| 4677 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 4678 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 4679 | # expansion. |
| 4680 | for file in `sed -n " |
| 4681 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 4682 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 4683 | # Make sure the directory exists. |
| 4684 | test -f "$dirpart/$file" && continue |
| 4685 | fdir=`$as_dirname -- "$file" || |
| 4686 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4687 | X"$file" : 'X\(//\)[^/]' \| \ |
| 4688 | X"$file" : 'X\(//\)$' \| \ |
| 4689 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 4690 | $as_echo X"$file" | |
| 4691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4692 | s//\1/ |
| 4693 | q |
| 4694 | } |
| 4695 | /^X\(\/\/\)[^/].*/{ |
| 4696 | s//\1/ |
| 4697 | q |
| 4698 | } |
| 4699 | /^X\(\/\/\)$/{ |
| 4700 | s//\1/ |
| 4701 | q |
| 4702 | } |
| 4703 | /^X\(\/\).*/{ |
| 4704 | s//\1/ |
| 4705 | q |
| 4706 | } |
| 4707 | s/.*/./; q'` |
| 4708 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 4709 | # echo "creating $dirpart/$file" |
| 4710 | echo '# dummy' > "$dirpart/$file" |
| 4711 | done |
| 4712 | done |
| 4713 | } |
| 4714 | ;; |
| 4715 | |
| 4716 | esac |
| 4717 | done # for ac_tag |
| 4718 | |
| 4719 | |
| 4720 | as_fn_exit 0 |
| 4721 | _ACEOF |
| 4722 | ac_clean_files=$ac_clean_files_save |
| 4723 | |
| 4724 | test $ac_write_fail = 0 || |
| 4725 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 4726 | |
| 4727 | |
| 4728 | # configure is writing to config.log, and then calls config.status. |
| 4729 | # config.status does its own redirection, appending to config.log. |
| 4730 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 4731 | # by configure, so config.status won't be able to write to it; its |
| 4732 | # output is simply discarded. So we exec the FD to /dev/null, |
| 4733 | # effectively closing config.log, so it can be properly (re)opened and |
| 4734 | # appended to by config.status. When coming back to configure, we |
| 4735 | # need to make the FD available again. |
| 4736 | if test "$no_create" != yes; then |
| 4737 | ac_cs_success=: |
| 4738 | ac_config_status_args= |
| 4739 | test "$silent" = yes && |
| 4740 | ac_config_status_args="$ac_config_status_args --quiet" |
| 4741 | exec 5>/dev/null |
| 4742 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 4743 | exec 5>>config.log |
| 4744 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 4745 | # would make configure fail if this is the last instruction. |
| 4746 | $ac_cs_success || as_fn_exit 1 |
| 4747 | fi |
| 4748 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 4750 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 4751 | fi |
| 4752 | |