Annotation of rpl/configure, revision 1.23

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.19      bertrand    3: # Generated by GNU Autoconf 2.65 for rpl 4.0.15.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.15      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
                      8: # Inc.
                      9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand   92: case $0 in #((
1.1       bertrand   93:   *[\\/]* ) as_myself=$0 ;;
                     94:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     95: for as_dir in $PATH
                     96: do
                     97:   IFS=$as_save_IFS
                     98:   test -z "$as_dir" && as_dir=.
1.15      bertrand   99:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    100:   done
1.1       bertrand  101: IFS=$as_save_IFS
                    102: 
                    103:      ;;
                    104: esac
                    105: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    106: # in which case we are not to be found in the path.
                    107: if test "x$as_myself" = x; then
                    108:   as_myself=$0
                    109: fi
                    110: if test ! -f "$as_myself"; then
1.15      bertrand  111:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    112:   exit 1
1.1       bertrand  113: fi
                    114: 
1.15      bertrand  115: # Unset variables that we do not need and which cause bugs (e.g. in
                    116: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    117: # suppresses any "Segmentation fault" message there.  '((' could
                    118: # trigger a bug in pdksh 5.2.14.
                    119: for as_var in BASH_ENV ENV MAIL MAILPATH
                    120: do eval test x\${$as_var+set} = xset \
                    121:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  122: done
                    123: PS1='$ '
                    124: PS2='> '
                    125: PS4='+ '
                    126: 
                    127: # NLS nuisances.
1.15      bertrand  128: LC_ALL=C
                    129: export LC_ALL
                    130: LANGUAGE=C
                    131: export LANGUAGE
1.1       bertrand  132: 
                    133: # CDPATH.
1.15      bertrand  134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  135: 
                    136: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  137:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    138:   emulate sh
                    139:   NULLCMD=:
                    140:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    141:   # is contrary to our usage.  Disable this feature.
                    142:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    143:   setopt NO_GLOB_SUBST
1.1       bertrand  144: else
1.15      bertrand  145:   case \`(set -o) 2>/dev/null\` in #(
                    146:   *posix*) :
                    147:     set -o posix ;; #(
                    148:   *) :
                    149:      ;;
                    150: esac
1.1       bertrand  151: fi
1.15      bertrand  152: "
                    153:   as_required="as_fn_return () { (exit \$1); }
                    154: as_fn_success () { as_fn_return 0; }
                    155: as_fn_failure () { as_fn_return 1; }
                    156: as_fn_ret_success () { return 0; }
                    157: as_fn_ret_failure () { return 1; }
1.1       bertrand  158: 
                    159: exitcode=0
1.15      bertrand  160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    165: 
                    166: else
                    167:   exitcode=1; echo positional parameters were not saved.
                    168: fi
                    169: test x\$exitcode = x0 || exit 1"
                    170:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    171:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    172:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    173:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    174: test \$(( 1 + 1 )) = 2 || exit 1"
                    175:   if (eval "$as_required") 2>/dev/null; then :
                    176:   as_have_required=yes
1.14      bertrand  177: else
1.15      bertrand  178:   as_have_required=no
1.14      bertrand  179: fi
1.15      bertrand  180:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  181: 
                    182: else
1.15      bertrand  183:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    184: as_found=false
1.1       bertrand  185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    186: do
                    187:   IFS=$as_save_IFS
                    188:   test -z "$as_dir" && as_dir=.
1.15      bertrand  189:   as_found=:
                    190:   case $as_dir in #(
1.1       bertrand  191:     /*)
                    192:       for as_base in sh bash ksh sh5; do
1.15      bertrand  193:         # Try only shells that exist, to save several forks.
                    194:         as_shell=$as_dir/$as_base
                    195:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    196:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    197:   CONFIG_SHELL=$as_shell as_have_required=yes
                    198:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    199:   break 2
                    200: fi
                    201: fi
1.1       bertrand  202:       done;;
                    203:        esac
1.15      bertrand  204:   as_found=false
1.1       bertrand  205: done
1.15      bertrand  206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    207:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    208:   CONFIG_SHELL=$SHELL as_have_required=yes
                    209: fi; }
1.1       bertrand  210: IFS=$as_save_IFS
                    211: 
                    212: 
1.15      bertrand  213:       if test "x$CONFIG_SHELL" != x; then :
                    214:   # We cannot yet assume a decent shell, so we have to provide a
                    215:    # neutralization value for shells without unset; and this also
                    216:    # works around shells that cannot unset nonexistent variables.
                    217:    BASH_ENV=/dev/null
                    218:    ENV=/dev/null
                    219:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    220:    export CONFIG_SHELL
                    221:    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    222: fi
                    223: 
                    224:     if test x$as_have_required = xno; then :
                    225:   $as_echo "$0: This script requires a shell more modern than all"
                    226:   $as_echo "$0: the shells that I found on your system."
                    227:   if test x${ZSH_VERSION+set} = xset ; then
                    228:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    229:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    230:   else
                    231:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    232: $0: including any error possibly output before this
                    233: $0: message. Then install a modern shell, or manually run
                    234: $0: the script under such a shell if you do have one."
                    235:   fi
                    236:   exit 1
                    237: fi
1.1       bertrand  238: fi
                    239: fi
1.15      bertrand  240: SHELL=${CONFIG_SHELL-/bin/sh}
                    241: export SHELL
                    242: # Unset more variables known to interfere with behavior of common tools.
                    243: CLICOLOR_FORCE= GREP_OPTIONS=
                    244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  245: 
1.15      bertrand  246: ## --------------------- ##
                    247: ## M4sh Shell Functions. ##
                    248: ## --------------------- ##
                    249: # as_fn_unset VAR
                    250: # ---------------
                    251: # Portably unset VAR.
                    252: as_fn_unset ()
                    253: {
                    254:   { eval $1=; unset $1;}
                    255: }
                    256: as_unset=as_fn_unset
                    257: 
                    258: # as_fn_set_status STATUS
                    259: # -----------------------
                    260: # Set $? to STATUS, without forking.
                    261: as_fn_set_status ()
                    262: {
                    263:   return $1
                    264: } # as_fn_set_status
                    265: 
                    266: # as_fn_exit STATUS
                    267: # -----------------
                    268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    269: as_fn_exit ()
                    270: {
                    271:   set +e
                    272:   as_fn_set_status $1
                    273:   exit $1
                    274: } # as_fn_exit
                    275: 
                    276: # as_fn_mkdir_p
                    277: # -------------
                    278: # Create "$as_dir" as a directory, including parents if necessary.
                    279: as_fn_mkdir_p ()
                    280: {
1.14      bertrand  281: 
1.15      bertrand  282:   case $as_dir in #(
                    283:   -*) as_dir=./$as_dir;;
                    284:   esac
                    285:   test -d "$as_dir" || eval $as_mkdir_p || {
                    286:     as_dirs=
                    287:     while :; do
                    288:       case $as_dir in #(
                    289:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    290:       *) as_qdir=$as_dir;;
                    291:       esac
                    292:       as_dirs="'$as_qdir' $as_dirs"
                    293:       as_dir=`$as_dirname -- "$as_dir" ||
                    294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    295:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    296:     X"$as_dir" : 'X\(//\)$' \| \
                    297:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    298: $as_echo X"$as_dir" |
                    299:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    300:        s//\1/
                    301:        q
                    302:      }
                    303:      /^X\(\/\/\)[^/].*/{
                    304:        s//\1/
                    305:        q
                    306:      }
                    307:      /^X\(\/\/\)$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\).*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      s/.*/./; q'`
                    316:       test -d "$as_dir" && break
                    317:     done
                    318:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                    319:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1.1       bertrand  320: 
                    321: 
1.15      bertrand  322: } # as_fn_mkdir_p
                    323: # as_fn_append VAR VALUE
                    324: # ----------------------
                    325: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    326: # advantage of any shell optimizations that allow amortized linear growth over
                    327: # repeated appends, instead of the typical quadratic growth present in naive
                    328: # implementations.
                    329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    330:   eval 'as_fn_append ()
                    331:   {
                    332:     eval $1+=\$2
                    333:   }'
1.14      bertrand  334: else
1.15      bertrand  335:   as_fn_append ()
                    336:   {
                    337:     eval $1=\$$1\$2
                    338:   }
                    339: fi # as_fn_append
1.1       bertrand  340: 
1.15      bertrand  341: # as_fn_arith ARG...
                    342: # ------------------
                    343: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    345: # must be portable across $(()) and expr.
                    346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    347:   eval 'as_fn_arith ()
                    348:   {
                    349:     as_val=$(( $* ))
                    350:   }'
1.1       bertrand  351: else
1.15      bertrand  352:   as_fn_arith ()
                    353:   {
                    354:     as_val=`expr "$@" || test $? -eq 1`
                    355:   }
                    356: fi # as_fn_arith
1.14      bertrand  357: 
                    358: 
1.15      bertrand  359: # as_fn_error ERROR [LINENO LOG_FD]
                    360: # ---------------------------------
                    361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                    363: # script with status $?, using 1 if that was 0.
                    364: as_fn_error ()
                    365: {
                    366:   as_status=$?; test $as_status -eq 0 && as_status=1
                    367:   if test "$3"; then
                    368:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    369:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                    370:   fi
                    371:   $as_echo "$as_me: error: $1" >&2
                    372:   as_fn_exit $as_status
                    373: } # as_fn_error
1.14      bertrand  374: 
1.15      bertrand  375: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    376:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    377:   as_expr=expr
1.1       bertrand  378: else
1.15      bertrand  379:   as_expr=false
1.14      bertrand  380: fi
                    381: 
1.15      bertrand  382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    383:   as_basename=basename
1.1       bertrand  384: else
1.15      bertrand  385:   as_basename=false
1.14      bertrand  386: fi
                    387: 
1.15      bertrand  388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    389:   as_dirname=dirname
1.1       bertrand  390: else
1.15      bertrand  391:   as_dirname=false
1.1       bertrand  392: fi
                    393: 
1.15      bertrand  394: as_me=`$as_basename -- "$0" ||
                    395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    396:     X"$0" : 'X\(//\)$' \| \
                    397:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    398: $as_echo X/"$0" |
                    399:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    400:        s//\1/
                    401:        q
                    402:      }
                    403:      /^X\/\(\/\/\)$/{
                    404:        s//\1/
                    405:        q
                    406:      }
                    407:      /^X\/\(\/\).*/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      s/.*/./; q'`
1.1       bertrand  412: 
1.15      bertrand  413: # Avoid depending upon Character Ranges.
                    414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    417: as_cr_digits='0123456789'
                    418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  419: 
                    420: 
1.15      bertrand  421:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    422:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    423:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    424:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    425:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  426:   sed -n '
                    427:     p
                    428:     /[$]LINENO/=
                    429:   ' <$as_myself |
                    430:     sed '
                    431:       s/[$]LINENO.*/&-/
                    432:       t lineno
                    433:       b
                    434:       :lineno
                    435:       N
                    436:       :loop
                    437:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    438:       t loop
                    439:       s/-\n.*//
                    440:     ' >$as_me.lineno &&
                    441:   chmod +x "$as_me.lineno" ||
1.15      bertrand  442:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  443: 
                    444:   # Don't try to exec as it changes $[0], causing all sort of problems
                    445:   # (the dirname of $[0] is not the place where we might find the
                    446:   # original and so on.  Autoconf is especially sensitive to this).
                    447:   . "./$as_me.lineno"
                    448:   # Exit status is that of the last command.
                    449:   exit
                    450: }
                    451: 
1.15      bertrand  452: ECHO_C= ECHO_N= ECHO_T=
                    453: case `echo -n x` in #(((((
                    454: -n*)
                    455:   case `echo 'xy\c'` in
1.1       bertrand  456:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  457:   xy)  ECHO_C='\c';;
                    458:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    459:        ECHO_T='    ';;
1.1       bertrand  460:   esac;;
                    461: *)
                    462:   ECHO_N='-n';;
                    463: esac
                    464: 
                    465: rm -f conf$$ conf$$.exe conf$$.file
                    466: if test -d conf$$.dir; then
                    467:   rm -f conf$$.dir/conf$$.file
                    468: else
                    469:   rm -f conf$$.dir
1.15      bertrand  470:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  471: fi
1.15      bertrand  472: if (echo >conf$$.file) 2>/dev/null; then
                    473:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    474:     as_ln_s='ln -s'
                    475:     # ... but there are two gotchas:
                    476:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    477:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    478:     # In both cases, we have to default to `cp -p'.
                    479:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    480:       as_ln_s='cp -p'
                    481:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s=ln
                    483:   else
1.1       bertrand  484:     as_ln_s='cp -p'
1.15      bertrand  485:   fi
1.1       bertrand  486: else
                    487:   as_ln_s='cp -p'
                    488: fi
                    489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    490: rmdir conf$$.dir 2>/dev/null
                    491: 
                    492: if mkdir -p . 2>/dev/null; then
1.15      bertrand  493:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  494: else
                    495:   test -d ./-p && rmdir ./-p
                    496:   as_mkdir_p=false
                    497: fi
                    498: 
                    499: if test -x / >/dev/null 2>&1; then
                    500:   as_test_x='test -x'
                    501: else
                    502:   if ls -dL / >/dev/null 2>&1; then
                    503:     as_ls_L_option=L
                    504:   else
                    505:     as_ls_L_option=
                    506:   fi
                    507:   as_test_x='
                    508:     eval sh -c '\''
                    509:       if test -d "$1"; then
1.15      bertrand  510:    test -d "$1/.";
1.1       bertrand  511:       else
1.15      bertrand  512:    case $1 in #(
                    513:    -*)set "./$1";;
1.1       bertrand  514:    esac;
1.15      bertrand  515:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  516:    ???[sx]*):;;*)false;;esac;fi
                    517:     '\'' sh
                    518:   '
                    519: fi
                    520: as_executable_p=$as_test_x
                    521: 
                    522: # Sed expression to map a string onto a valid CPP name.
                    523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    524: 
                    525: # Sed expression to map a string onto a valid variable name.
                    526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    527: 
                    528: 
1.15      bertrand  529: test -n "$DJDIR" || exec 7<&0 </dev/null
                    530: exec 6>&1
1.1       bertrand  531: 
                    532: # Name of the host.
                    533: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    534: # so uname gets run too.
                    535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    536: 
                    537: #
                    538: # Initializations.
                    539: #
                    540: ac_default_prefix=/usr/local
                    541: ac_clean_files=
                    542: ac_config_libobj_dir=.
                    543: LIBOBJS=
                    544: cross_compiling=no
                    545: subdirs=
                    546: MFLAGS=
                    547: MAKEFLAGS=
                    548: 
                    549: # Identity of this package.
                    550: PACKAGE_NAME='rpl'
                    551: PACKAGE_TARNAME='rpl'
1.19      bertrand  552: PACKAGE_VERSION='4.0.15'
                    553: PACKAGE_STRING='rpl 4.0.15'
1.1       bertrand  554: PACKAGE_BUGREPORT=''
1.15      bertrand  555: PACKAGE_URL=''
1.1       bertrand  556: 
                    557: ac_default_prefix=/usr/local
                    558: # Factoring default headers for most tests.
                    559: ac_includes_default="\
                    560: #include <stdio.h>
                    561: #ifdef HAVE_SYS_TYPES_H
                    562: # include <sys/types.h>
                    563: #endif
                    564: #ifdef HAVE_SYS_STAT_H
                    565: # include <sys/stat.h>
                    566: #endif
                    567: #ifdef STDC_HEADERS
                    568: # include <stdlib.h>
                    569: # include <stddef.h>
                    570: #else
                    571: # ifdef HAVE_STDLIB_H
                    572: #  include <stdlib.h>
                    573: # endif
                    574: #endif
                    575: #ifdef HAVE_STRING_H
                    576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    577: #  include <memory.h>
                    578: # endif
                    579: # include <string.h>
                    580: #endif
                    581: #ifdef HAVE_STRINGS_H
                    582: # include <strings.h>
                    583: #endif
                    584: #ifdef HAVE_INTTYPES_H
                    585: # include <inttypes.h>
                    586: #endif
                    587: #ifdef HAVE_STDINT_H
                    588: # include <stdint.h>
                    589: #endif
                    590: #ifdef HAVE_UNISTD_H
                    591: # include <unistd.h>
                    592: #endif"
                    593: 
1.15      bertrand  594: enable_option_checking=no
                    595: ac_subst_vars='am__EXEEXT_FALSE
                    596: am__EXEEXT_TRUE
                    597: LTLIBOBJS
                    598: LIBOBJS
                    599: DATE_FR
                    600: FINAL_ENCODING
                    601: OPENSSL
                    602: SQLITE
                    603: ICONV
                    604: FILE
                    605: GNUPLOT
                    606: GPP
                    607: GSL
                    608: UNITS
                    609: READLINE
                    610: NCURSES
1.17      bertrand  611: SEMAPHORES_NOMMES
                    612: NESTED_FUNCTIONS
                    613: EXPORT_DYNAMIC
1.15      bertrand  614: OS
                    615: GNUPLOT_COMPILATION
                    616: subdirs
                    617: EGREP
                    618: GREP
                    619: libPgSQLlib
                    620: libPgSQLinc
                    621: POSTGRESQL_SUPPORT
                    622: libMySQLlib
                    623: libMySQLinc
                    624: MYSQL_SUPPORT
                    625: DATE
                    626: includeX
                    627: libX
                    628: MOTIF_SUPPORT
                    629: DEBUG
                    630: EXPERIMENTAL_CODE
                    631: VIM_SUPPORT
                    632: POSTSCRIPT_SUPPORT
                    633: FORCE_GNUPLOT_PATH
                    634: GNUPLOT_SUPPORT
                    635: VIM
                    636: GNUPLOT_P
                    637: GV
                    638: GS
                    639: DVIPS
                    640: LATEX
                    641: TEX
                    642: SED
                    643: RANLIB
                    644: LN_S
                    645: RUNPATH
                    646: PROFILAGE
                    647: X_EXTRA_LIBS
                    648: X_LIBS
                    649: X_PRE_LIBS
                    650: X_CFLAGS
                    651: CPP
                    652: XMKMF
                    653: ac_ct_FC
                    654: FCFLAGS
                    655: FC
                    656: ac_ct_F77
                    657: FFLAGS
                    658: F77
                    659: am__fastdepCXX_FALSE
                    660: am__fastdepCXX_TRUE
                    661: CXXDEPMODE
                    662: ac_ct_CXX
                    663: CXXFLAGS
                    664: CXX
                    665: am__fastdepCC_FALSE
                    666: am__fastdepCC_TRUE
                    667: CCDEPMODE
                    668: AMDEPBACKSLASH
                    669: AMDEP_FALSE
                    670: AMDEP_TRUE
                    671: am__quote
                    672: am__include
                    673: DEPDIR
                    674: OBJEXT
                    675: EXEEXT
                    676: ac_ct_CC
                    677: CPPFLAGS
                    678: LDFLAGS
                    679: CFLAGS
                    680: CC
                    681: am__untar
                    682: am__tar
                    683: AMTAR
                    684: am__leading_dot
                    685: SET_MAKE
                    686: AWK
                    687: mkdir_p
                    688: MKDIR_P
                    689: INSTALL_STRIP_PROGRAM
                    690: STRIP
                    691: install_sh
                    692: MAKEINFO
                    693: AUTOHEADER
                    694: AUTOMAKE
                    695: AUTOCONF
                    696: ACLOCAL
                    697: VERSION
                    698: PACKAGE
                    699: CYGPATH_W
                    700: am__isrc
                    701: INSTALL_DATA
                    702: INSTALL_SCRIPT
                    703: INSTALL_PROGRAM
                    704: target_os
                    705: target_vendor
                    706: target_cpu
                    707: target
                    708: host_os
                    709: host_vendor
                    710: host_cpu
                    711: host
                    712: build_os
                    713: build_vendor
                    714: build_cpu
                    715: build
                    716: target_alias
                    717: host_alias
                    718: build_alias
                    719: LIBS
                    720: ECHO_T
                    721: ECHO_N
                    722: ECHO_C
                    723: DEFS
                    724: mandir
                    725: localedir
                    726: libdir
                    727: psdir
                    728: pdfdir
                    729: dvidir
                    730: htmldir
                    731: infodir
                    732: docdir
                    733: oldincludedir
                    734: includedir
                    735: localstatedir
                    736: sharedstatedir
                    737: sysconfdir
                    738: datadir
                    739: datarootdir
                    740: libexecdir
                    741: sbindir
                    742: bindir
                    743: program_transform_name
                    744: prefix
                    745: exec_prefix
                    746: PACKAGE_URL
                    747: PACKAGE_BUGREPORT
                    748: PACKAGE_STRING
                    749: PACKAGE_VERSION
                    750: PACKAGE_TARNAME
                    751: PACKAGE_NAME
1.14      bertrand  752: PATH_SEPARATOR
1.15      bertrand  753: SHELL'
                    754: ac_subst_files=''
                    755: ac_user_opts='
                    756: enable_option_checking
                    757: enable_dependency_tracking
                    758: with_x
                    759: enable_optimization
                    760: enable_final_encoding
                    761: enable_tex
                    762: enable_vim
                    763: enable_embedded_gnuplot
                    764: enable_gnuplot
                    765: enable_motif
                    766: enable_experimental
                    767: enable_debug
                    768: enable_profile
                    769: enable_final_run_path
                    770: with_mysql
                    771: with_postgresql
                    772: with_openssl_arch
                    773: '
                    774:       ac_precious_vars='build_alias
1.1       bertrand  775: host_alias
                    776: target_alias
                    777: CC
                    778: CFLAGS
                    779: LDFLAGS
1.15      bertrand  780: LIBS
1.1       bertrand  781: CPPFLAGS
                    782: CXX
                    783: CXXFLAGS
1.15      bertrand  784: CCC
1.1       bertrand  785: F77
                    786: FFLAGS
                    787: FC
                    788: FCFLAGS
                    789: XMKMF
                    790: CPP'
                    791: ac_subdirs_all='tools/$NCURSES
                    792: tools/$READLINE
                    793: tools/$GSL
                    794: tools/$GPP
                    795: tools/$FILE
                    796: tools/$ICONV
1.9       bertrand  797: tools/$SQLITE
1.17      bertrand  798: tools/$UNITS
1.1       bertrand  799: tools/$GNUPLOT'
                    800: 
                    801: # Initialize some variables set by options.
                    802: ac_init_help=
                    803: ac_init_version=false
1.15      bertrand  804: ac_unrecognized_opts=
                    805: ac_unrecognized_sep=
1.1       bertrand  806: # The variables have the same names as the options, with
                    807: # dashes changed to underlines.
                    808: cache_file=/dev/null
                    809: exec_prefix=NONE
                    810: no_create=
                    811: no_recursion=
                    812: prefix=NONE
                    813: program_prefix=NONE
                    814: program_suffix=NONE
                    815: program_transform_name=s,x,x,
                    816: silent=
                    817: site=
                    818: srcdir=
                    819: verbose=
                    820: x_includes=NONE
                    821: x_libraries=NONE
                    822: 
                    823: # Installation directory options.
                    824: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    825: # and all the variables that are supposed to be based on exec_prefix
                    826: # by default will actually change.
                    827: # Use braces instead of parens because sh, perl, etc. also accept them.
                    828: # (The list follows the same order as the GNU Coding Standards.)
                    829: bindir='${exec_prefix}/bin'
                    830: sbindir='${exec_prefix}/sbin'
                    831: libexecdir='${exec_prefix}/libexec'
                    832: datarootdir='${prefix}/share'
                    833: datadir='${datarootdir}'
                    834: sysconfdir='${prefix}/etc'
                    835: sharedstatedir='${prefix}/com'
                    836: localstatedir='${prefix}/var'
                    837: includedir='${prefix}/include'
                    838: oldincludedir='/usr/include'
                    839: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    840: infodir='${datarootdir}/info'
                    841: htmldir='${docdir}'
                    842: dvidir='${docdir}'
                    843: pdfdir='${docdir}'
                    844: psdir='${docdir}'
                    845: libdir='${exec_prefix}/lib'
                    846: localedir='${datarootdir}/locale'
                    847: mandir='${datarootdir}/man'
                    848: 
                    849: ac_prev=
                    850: ac_dashdash=
                    851: for ac_option
                    852: do
                    853:   # If the previous option needs an argument, assign it.
                    854:   if test -n "$ac_prev"; then
                    855:     eval $ac_prev=\$ac_option
                    856:     ac_prev=
                    857:     continue
                    858:   fi
                    859: 
                    860:   case $ac_option in
                    861:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    862:   *)   ac_optarg=yes ;;
                    863:   esac
                    864: 
                    865:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    866: 
                    867:   case $ac_dashdash$ac_option in
                    868:   --)
                    869:     ac_dashdash=yes ;;
                    870: 
                    871:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    872:     ac_prev=bindir ;;
                    873:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    874:     bindir=$ac_optarg ;;
                    875: 
                    876:   -build | --build | --buil | --bui | --bu)
                    877:     ac_prev=build_alias ;;
                    878:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    879:     build_alias=$ac_optarg ;;
                    880: 
                    881:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    882:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    883:     ac_prev=cache_file ;;
                    884:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    885:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    886:     cache_file=$ac_optarg ;;
                    887: 
                    888:   --config-cache | -C)
                    889:     cache_file=config.cache ;;
                    890: 
                    891:   -datadir | --datadir | --datadi | --datad)
                    892:     ac_prev=datadir ;;
                    893:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    894:     datadir=$ac_optarg ;;
                    895: 
                    896:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    897:   | --dataroo | --dataro | --datar)
                    898:     ac_prev=datarootdir ;;
                    899:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    900:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    901:     datarootdir=$ac_optarg ;;
                    902: 
                    903:   -disable-* | --disable-*)
1.15      bertrand  904:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  905:     # Reject names that are not valid shell variable names.
1.15      bertrand  906:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    907:       as_fn_error "invalid feature name: $ac_useropt"
                    908:     ac_useropt_orig=$ac_useropt
                    909:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    910:     case $ac_user_opts in
                    911:       *"
                    912: "enable_$ac_useropt"
                    913: "*) ;;
                    914:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    915:     ac_unrecognized_sep=', ';;
                    916:     esac
                    917:     eval enable_$ac_useropt=no ;;
1.1       bertrand  918: 
                    919:   -docdir | --docdir | --docdi | --doc | --do)
                    920:     ac_prev=docdir ;;
                    921:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    922:     docdir=$ac_optarg ;;
                    923: 
                    924:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    925:     ac_prev=dvidir ;;
                    926:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    927:     dvidir=$ac_optarg ;;
                    928: 
                    929:   -enable-* | --enable-*)
1.15      bertrand  930:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  931:     # Reject names that are not valid shell variable names.
1.15      bertrand  932:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    933:       as_fn_error "invalid feature name: $ac_useropt"
                    934:     ac_useropt_orig=$ac_useropt
                    935:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    936:     case $ac_user_opts in
                    937:       *"
                    938: "enable_$ac_useropt"
                    939: "*) ;;
                    940:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    941:     ac_unrecognized_sep=', ';;
                    942:     esac
                    943:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  944: 
                    945:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    946:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    947:   | --exec | --exe | --ex)
                    948:     ac_prev=exec_prefix ;;
                    949:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    950:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    951:   | --exec=* | --exe=* | --ex=*)
                    952:     exec_prefix=$ac_optarg ;;
                    953: 
                    954:   -gas | --gas | --ga | --g)
                    955:     # Obsolete; use --with-gas.
                    956:     with_gas=yes ;;
                    957: 
                    958:   -help | --help | --hel | --he | -h)
                    959:     ac_init_help=long ;;
                    960:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    961:     ac_init_help=recursive ;;
                    962:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    963:     ac_init_help=short ;;
                    964: 
                    965:   -host | --host | --hos | --ho)
                    966:     ac_prev=host_alias ;;
                    967:   -host=* | --host=* | --hos=* | --ho=*)
                    968:     host_alias=$ac_optarg ;;
                    969: 
                    970:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    971:     ac_prev=htmldir ;;
                    972:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    973:   | --ht=*)
                    974:     htmldir=$ac_optarg ;;
                    975: 
                    976:   -includedir | --includedir | --includedi | --included | --include \
                    977:   | --includ | --inclu | --incl | --inc)
                    978:     ac_prev=includedir ;;
                    979:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    980:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    981:     includedir=$ac_optarg ;;
                    982: 
                    983:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    984:     ac_prev=infodir ;;
                    985:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    986:     infodir=$ac_optarg ;;
                    987: 
                    988:   -libdir | --libdir | --libdi | --libd)
                    989:     ac_prev=libdir ;;
                    990:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    991:     libdir=$ac_optarg ;;
                    992: 
                    993:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    994:   | --libexe | --libex | --libe)
                    995:     ac_prev=libexecdir ;;
                    996:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    997:   | --libexe=* | --libex=* | --libe=*)
                    998:     libexecdir=$ac_optarg ;;
                    999: 
                   1000:   -localedir | --localedir | --localedi | --localed | --locale)
                   1001:     ac_prev=localedir ;;
                   1002:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1003:     localedir=$ac_optarg ;;
                   1004: 
                   1005:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1006:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1007:     ac_prev=localstatedir ;;
                   1008:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1009:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1010:     localstatedir=$ac_optarg ;;
                   1011: 
                   1012:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1013:     ac_prev=mandir ;;
                   1014:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1015:     mandir=$ac_optarg ;;
                   1016: 
                   1017:   -nfp | --nfp | --nf)
                   1018:     # Obsolete; use --without-fp.
                   1019:     with_fp=no ;;
                   1020: 
                   1021:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1022:   | --no-cr | --no-c | -n)
                   1023:     no_create=yes ;;
                   1024: 
                   1025:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1026:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1027:     no_recursion=yes ;;
                   1028: 
                   1029:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1030:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1031:   | --oldin | --oldi | --old | --ol | --o)
                   1032:     ac_prev=oldincludedir ;;
                   1033:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1034:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1035:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1036:     oldincludedir=$ac_optarg ;;
                   1037: 
                   1038:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1039:     ac_prev=prefix ;;
                   1040:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1041:     prefix=$ac_optarg ;;
                   1042: 
                   1043:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1044:   | --program-pre | --program-pr | --program-p)
                   1045:     ac_prev=program_prefix ;;
                   1046:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1047:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1048:     program_prefix=$ac_optarg ;;
                   1049: 
                   1050:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1051:   | --program-suf | --program-su | --program-s)
                   1052:     ac_prev=program_suffix ;;
                   1053:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1054:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1055:     program_suffix=$ac_optarg ;;
                   1056: 
                   1057:   -program-transform-name | --program-transform-name \
                   1058:   | --program-transform-nam | --program-transform-na \
                   1059:   | --program-transform-n | --program-transform- \
                   1060:   | --program-transform | --program-transfor \
                   1061:   | --program-transfo | --program-transf \
                   1062:   | --program-trans | --program-tran \
                   1063:   | --progr-tra | --program-tr | --program-t)
                   1064:     ac_prev=program_transform_name ;;
                   1065:   -program-transform-name=* | --program-transform-name=* \
                   1066:   | --program-transform-nam=* | --program-transform-na=* \
                   1067:   | --program-transform-n=* | --program-transform-=* \
                   1068:   | --program-transform=* | --program-transfor=* \
                   1069:   | --program-transfo=* | --program-transf=* \
                   1070:   | --program-trans=* | --program-tran=* \
                   1071:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1072:     program_transform_name=$ac_optarg ;;
                   1073: 
                   1074:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1075:     ac_prev=pdfdir ;;
                   1076:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1077:     pdfdir=$ac_optarg ;;
                   1078: 
                   1079:   -psdir | --psdir | --psdi | --psd | --ps)
                   1080:     ac_prev=psdir ;;
                   1081:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1082:     psdir=$ac_optarg ;;
                   1083: 
                   1084:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1085:   | -silent | --silent | --silen | --sile | --sil)
                   1086:     silent=yes ;;
                   1087: 
                   1088:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1089:     ac_prev=sbindir ;;
                   1090:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1091:   | --sbi=* | --sb=*)
                   1092:     sbindir=$ac_optarg ;;
                   1093: 
                   1094:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1095:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1096:   | --sharedst | --shareds | --shared | --share | --shar \
                   1097:   | --sha | --sh)
                   1098:     ac_prev=sharedstatedir ;;
                   1099:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1100:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1101:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1102:   | --sha=* | --sh=*)
                   1103:     sharedstatedir=$ac_optarg ;;
                   1104: 
                   1105:   -site | --site | --sit)
                   1106:     ac_prev=site ;;
                   1107:   -site=* | --site=* | --sit=*)
                   1108:     site=$ac_optarg ;;
                   1109: 
                   1110:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1111:     ac_prev=srcdir ;;
                   1112:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1113:     srcdir=$ac_optarg ;;
                   1114: 
                   1115:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1116:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1117:     ac_prev=sysconfdir ;;
                   1118:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1119:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1120:     sysconfdir=$ac_optarg ;;
                   1121: 
                   1122:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1123:     ac_prev=target_alias ;;
                   1124:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1125:     target_alias=$ac_optarg ;;
                   1126: 
                   1127:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1128:     verbose=yes ;;
                   1129: 
                   1130:   -version | --version | --versio | --versi | --vers | -V)
                   1131:     ac_init_version=: ;;
                   1132: 
                   1133:   -with-* | --with-*)
1.15      bertrand 1134:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1135:     # Reject names that are not valid shell variable names.
1.15      bertrand 1136:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1137:       as_fn_error "invalid package name: $ac_useropt"
                   1138:     ac_useropt_orig=$ac_useropt
                   1139:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1140:     case $ac_user_opts in
                   1141:       *"
                   1142: "with_$ac_useropt"
                   1143: "*) ;;
                   1144:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1145:     ac_unrecognized_sep=', ';;
                   1146:     esac
                   1147:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1148: 
                   1149:   -without-* | --without-*)
1.15      bertrand 1150:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1151:     # Reject names that are not valid shell variable names.
1.15      bertrand 1152:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1153:       as_fn_error "invalid package name: $ac_useropt"
                   1154:     ac_useropt_orig=$ac_useropt
                   1155:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1156:     case $ac_user_opts in
                   1157:       *"
                   1158: "with_$ac_useropt"
                   1159: "*) ;;
                   1160:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1161:     ac_unrecognized_sep=', ';;
                   1162:     esac
                   1163:     eval with_$ac_useropt=no ;;
1.1       bertrand 1164: 
                   1165:   --x)
                   1166:     # Obsolete; use --with-x.
                   1167:     with_x=yes ;;
                   1168: 
                   1169:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1170:   | --x-incl | --x-inc | --x-in | --x-i)
                   1171:     ac_prev=x_includes ;;
                   1172:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1173:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1174:     x_includes=$ac_optarg ;;
                   1175: 
                   1176:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1177:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1178:     ac_prev=x_libraries ;;
                   1179:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1180:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1181:     x_libraries=$ac_optarg ;;
                   1182: 
1.15      bertrand 1183:   -*) as_fn_error "unrecognized option: \`$ac_option'
                   1184: Try \`$0 --help' for more information."
1.1       bertrand 1185:     ;;
                   1186: 
                   1187:   *=*)
                   1188:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1189:     # Reject names that are not valid shell variable names.
1.15      bertrand 1190:     case $ac_envvar in #(
                   1191:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1192:       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
                   1193:     esac
1.1       bertrand 1194:     eval $ac_envvar=\$ac_optarg
                   1195:     export $ac_envvar ;;
                   1196: 
                   1197:   *)
                   1198:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1199:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1200:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1201:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1       bertrand 1202:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1203:     ;;
                   1204: 
                   1205:   esac
                   1206: done
                   1207: 
                   1208: if test -n "$ac_prev"; then
                   1209:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.15      bertrand 1210:   as_fn_error "missing argument to $ac_option"
                   1211: fi
                   1212: 
                   1213: if test -n "$ac_unrecognized_opts"; then
                   1214:   case $enable_option_checking in
                   1215:     no) ;;
                   1216:     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
                   1217:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1218:   esac
1.1       bertrand 1219: fi
                   1220: 
1.15      bertrand 1221: # Check all directory arguments for consistency.
1.1       bertrand 1222: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1223:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1224:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1225:        libdir localedir mandir
                   1226: do
                   1227:   eval ac_val=\$$ac_var
1.15      bertrand 1228:   # Remove trailing slashes.
                   1229:   case $ac_val in
                   1230:     */ )
                   1231:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1232:       eval $ac_var=\$ac_val;;
                   1233:   esac
                   1234:   # Be sure to have absolute directory names.
1.1       bertrand 1235:   case $ac_val in
                   1236:     [\\/$]* | ?:[\\/]* )  continue;;
                   1237:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1238:   esac
1.15      bertrand 1239:   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1240: done
                   1241: 
                   1242: # There might be people who depend on the old broken behavior: `$host'
                   1243: # used to hold the argument of --host etc.
                   1244: # FIXME: To remove some day.
                   1245: build=$build_alias
                   1246: host=$host_alias
                   1247: target=$target_alias
                   1248: 
                   1249: # FIXME: To remove some day.
                   1250: if test "x$host_alias" != x; then
                   1251:   if test "x$build_alias" = x; then
                   1252:     cross_compiling=maybe
1.15      bertrand 1253:     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1       bertrand 1254:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1255:   elif test "x$build_alias" != "x$host_alias"; then
                   1256:     cross_compiling=yes
                   1257:   fi
                   1258: fi
                   1259: 
                   1260: ac_tool_prefix=
                   1261: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1262: 
                   1263: test "$silent" = yes && exec 6>/dev/null
                   1264: 
                   1265: 
                   1266: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1267: ac_ls_di=`ls -di .` &&
                   1268: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.15      bertrand 1269:   as_fn_error "working directory cannot be determined"
1.1       bertrand 1270: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.15      bertrand 1271:   as_fn_error "pwd does not report name of working directory"
1.1       bertrand 1272: 
                   1273: 
                   1274: # Find the source files, if location was not specified.
                   1275: if test -z "$srcdir"; then
                   1276:   ac_srcdir_defaulted=yes
                   1277:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1278:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1279: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1280:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1281:     X"$as_myself" : 'X\(//\)$' \| \
                   1282:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1283: $as_echo X"$as_myself" |
1.1       bertrand 1284:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1285:        s//\1/
                   1286:        q
                   1287:      }
                   1288:      /^X\(\/\/\)[^/].*/{
                   1289:        s//\1/
                   1290:        q
                   1291:      }
                   1292:      /^X\(\/\/\)$/{
                   1293:        s//\1/
                   1294:        q
                   1295:      }
                   1296:      /^X\(\/\).*/{
                   1297:        s//\1/
                   1298:        q
                   1299:      }
                   1300:      s/.*/./; q'`
                   1301:   srcdir=$ac_confdir
                   1302:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1303:     srcdir=..
                   1304:   fi
                   1305: else
                   1306:   ac_srcdir_defaulted=no
                   1307: fi
                   1308: if test ! -r "$srcdir/$ac_unique_file"; then
                   1309:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.15      bertrand 1310:   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1311: fi
                   1312: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1313: ac_abs_confdir=`(
1.15      bertrand 1314:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1.1       bertrand 1315:    pwd)`
                   1316: # When building in place, set srcdir=.
                   1317: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1318:   srcdir=.
                   1319: fi
                   1320: # Remove unnecessary trailing slashes from srcdir.
                   1321: # Double slashes in file names in object file debugging info
                   1322: # mess up M-x gdb in Emacs.
                   1323: case $srcdir in
                   1324: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1325: esac
                   1326: for ac_var in $ac_precious_vars; do
                   1327:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1328:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1329:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1330:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1331: done
                   1332: 
                   1333: #
                   1334: # Report the --help message.
                   1335: #
                   1336: if test "$ac_init_help" = "long"; then
                   1337:   # Omit some internal or obsolete options to make the list less imposing.
                   1338:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1339:   cat <<_ACEOF
1.19      bertrand 1340: \`configure' configures rpl 4.0.15 to adapt to many kinds of systems.
1.1       bertrand 1341: 
                   1342: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1343: 
                   1344: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1345: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1346: 
                   1347: Defaults for the options are specified in brackets.
                   1348: 
                   1349: Configuration:
                   1350:   -h, --help              display this help and exit
                   1351:       --help=short        display options specific to this package
                   1352:       --help=recursive    display the short help of all the included packages
                   1353:   -V, --version           display version information and exit
                   1354:   -q, --quiet, --silent   do not print \`checking...' messages
                   1355:       --cache-file=FILE   cache test results in FILE [disabled]
                   1356:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1357:   -n, --no-create         do not create output files
                   1358:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1359: 
                   1360: Installation directories:
                   1361:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1362:                           [$ac_default_prefix]
1.1       bertrand 1363:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1364:                           [PREFIX]
1.1       bertrand 1365: 
                   1366: By default, \`make install' will install all the files in
                   1367: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1368: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1369: for instance \`--prefix=\$HOME'.
                   1370: 
                   1371: For better control, use the options below.
                   1372: 
                   1373: Fine tuning of the installation directories:
1.15      bertrand 1374:   --bindir=DIR            user executables [EPREFIX/bin]
                   1375:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1376:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1377:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1378:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1379:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1380:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1381:   --includedir=DIR        C header files [PREFIX/include]
                   1382:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1383:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1384:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1385:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1386:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1387:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1388:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1389:   --htmldir=DIR           html documentation [DOCDIR]
                   1390:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1391:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1392:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1393: _ACEOF
                   1394: 
                   1395:   cat <<\_ACEOF
                   1396: 
                   1397: Program names:
                   1398:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1399:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1400:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1401: 
                   1402: X features:
                   1403:   --x-includes=DIR    X include files are in DIR
                   1404:   --x-libraries=DIR   X library files are in DIR
                   1405: 
                   1406: System types:
                   1407:   --build=BUILD     configure for building on BUILD [guessed]
                   1408:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1409:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1410: _ACEOF
                   1411: fi
                   1412: 
                   1413: if test -n "$ac_init_help"; then
                   1414:   case $ac_init_help in
1.19      bertrand 1415:      short | recursive ) echo "Configuration of rpl 4.0.15:";;
1.1       bertrand 1416:    esac
                   1417:   cat <<\_ACEOF
                   1418: 
                   1419: Optional Features:
1.15      bertrand 1420:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1421:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1422:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1423:   --disable-dependency-tracking  speeds up one-time build
                   1424:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1425:   --enable-optimization   set compiler flags [default=environment variables -O3]
                   1426:   --enable-final-encoding force final encoding [default=guessed]
                   1427:   --enable-tex            provide the TeX support [default=guessed]
                   1428:   --enable-vim            provide the vim support [default=guessed]
                   1429:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1430:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1431:   --enable-motif          provide the Motif support [default=guessed]
                   1432:   --enable-experimental   enable experimental code [default=no]
                   1433:   --enable-debug          enable debug code [default=no]
                   1434:   --enable-profile        enable profile code [default=no]
                   1435:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1436: 
                   1437: Optional Packages:
                   1438:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1439:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1440:   --with-x                use the X Window System
                   1441:   --with-mysql=PATH         specify directory for installed mysql
                   1442:   --with-postgresql=PATH    specify directory for installed postgresql
1.15      bertrand 1443:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1444: 
                   1445: Some influential environment variables:
                   1446:   CC          C compiler command
                   1447:   CFLAGS      C compiler flags
                   1448:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1449:               nonstandard directory <lib dir>
                   1450:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1451:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1452:               you have headers in a nonstandard directory <include dir>
                   1453:   CXX         C++ compiler command
                   1454:   CXXFLAGS    C++ compiler flags
                   1455:   F77         Fortran 77 compiler command
                   1456:   FFLAGS      Fortran 77 compiler flags
                   1457:   FC          Fortran compiler command
                   1458:   FCFLAGS     Fortran compiler flags
                   1459:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1460:   CPP         C preprocessor
                   1461: 
                   1462: Use these variables to override the choices made by `configure' or to help
                   1463: it to find libraries and programs with nonstandard names/locations.
                   1464: 
1.15      bertrand 1465: Report bugs to the package provider.
1.1       bertrand 1466: _ACEOF
                   1467: ac_status=$?
                   1468: fi
                   1469: 
                   1470: if test "$ac_init_help" = "recursive"; then
                   1471:   # If there are subdirs, report their specific --help.
                   1472:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1473:     test -d "$ac_dir" ||
                   1474:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1475:       continue
1.1       bertrand 1476:     ac_builddir=.
                   1477: 
                   1478: case "$ac_dir" in
                   1479: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1480: *)
1.15      bertrand 1481:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1482:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1483:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1484:   case $ac_top_builddir_sub in
                   1485:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1486:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1487:   esac ;;
                   1488: esac
                   1489: ac_abs_top_builddir=$ac_pwd
                   1490: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1491: # for backward compatibility:
                   1492: ac_top_builddir=$ac_top_build_prefix
                   1493: 
                   1494: case $srcdir in
                   1495:   .)  # We are building in place.
                   1496:     ac_srcdir=.
                   1497:     ac_top_srcdir=$ac_top_builddir_sub
                   1498:     ac_abs_top_srcdir=$ac_pwd ;;
                   1499:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1500:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1501:     ac_top_srcdir=$srcdir
                   1502:     ac_abs_top_srcdir=$srcdir ;;
                   1503:   *) # Relative name.
                   1504:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1505:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1506:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1507: esac
                   1508: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1509: 
                   1510:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1511:     # Check for guested configure.
                   1512:     if test -f "$ac_srcdir/configure.gnu"; then
                   1513:       echo &&
                   1514:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1515:     elif test -f "$ac_srcdir/configure"; then
                   1516:       echo &&
                   1517:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1518:     else
1.15      bertrand 1519:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1520:     fi || ac_status=$?
                   1521:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1522:   done
                   1523: fi
                   1524: 
                   1525: test -n "$ac_init_help" && exit $ac_status
                   1526: if $ac_init_version; then
                   1527:   cat <<\_ACEOF
1.19      bertrand 1528: rpl configure 4.0.15
1.15      bertrand 1529: generated by GNU Autoconf 2.65
1.1       bertrand 1530: 
1.15      bertrand 1531: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 1532: This configure script is free software; the Free Software Foundation
                   1533: gives unlimited permission to copy, distribute and modify it.
                   1534: _ACEOF
                   1535:   exit
                   1536: fi
                   1537: 
1.15      bertrand 1538: ## ------------------------ ##
                   1539: ## Autoconf initialization. ##
                   1540: ## ------------------------ ##
                   1541: 
                   1542: # ac_fn_c_try_compile LINENO
                   1543: # --------------------------
                   1544: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1545: ac_fn_c_try_compile ()
                   1546: {
                   1547:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1548:   rm -f conftest.$ac_objext
                   1549:   if { { ac_try="$ac_compile"
                   1550: case "(($ac_try" in
                   1551:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1552:   *) ac_try_echo=$ac_try;;
                   1553: esac
                   1554: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1555: $as_echo "$ac_try_echo"; } >&5
                   1556:   (eval "$ac_compile") 2>conftest.err
                   1557:   ac_status=$?
                   1558:   if test -s conftest.err; then
                   1559:     grep -v '^ *+' conftest.err >conftest.er1
                   1560:     cat conftest.er1 >&5
                   1561:     mv -f conftest.er1 conftest.err
                   1562:   fi
                   1563:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1564:   test $ac_status = 0; } && {
                   1565:     test -z "$ac_c_werror_flag" ||
                   1566:     test ! -s conftest.err
                   1567:        } && test -s conftest.$ac_objext; then :
                   1568:   ac_retval=0
                   1569: else
                   1570:   $as_echo "$as_me: failed program was:" >&5
                   1571: sed 's/^/| /' conftest.$ac_ext >&5
                   1572: 
                   1573:    ac_retval=1
                   1574: fi
                   1575:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1576:   as_fn_set_status $ac_retval
1.1       bertrand 1577: 
1.15      bertrand 1578: } # ac_fn_c_try_compile
1.1       bertrand 1579: 
1.15      bertrand 1580: # ac_fn_cxx_try_compile LINENO
                   1581: # ----------------------------
                   1582: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1583: ac_fn_cxx_try_compile ()
1.1       bertrand 1584: {
1.15      bertrand 1585:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1586:   rm -f conftest.$ac_objext
                   1587:   if { { ac_try="$ac_compile"
                   1588: case "(($ac_try" in
                   1589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1590:   *) ac_try_echo=$ac_try;;
                   1591: esac
                   1592: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1593: $as_echo "$ac_try_echo"; } >&5
                   1594:   (eval "$ac_compile") 2>conftest.err
                   1595:   ac_status=$?
                   1596:   if test -s conftest.err; then
                   1597:     grep -v '^ *+' conftest.err >conftest.er1
                   1598:     cat conftest.er1 >&5
                   1599:     mv -f conftest.er1 conftest.err
                   1600:   fi
                   1601:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1602:   test $ac_status = 0; } && {
                   1603:     test -z "$ac_cxx_werror_flag" ||
                   1604:     test ! -s conftest.err
                   1605:        } && test -s conftest.$ac_objext; then :
                   1606:   ac_retval=0
                   1607: else
                   1608:   $as_echo "$as_me: failed program was:" >&5
                   1609: sed 's/^/| /' conftest.$ac_ext >&5
                   1610: 
                   1611:    ac_retval=1
                   1612: fi
                   1613:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1614:   as_fn_set_status $ac_retval
1.1       bertrand 1615: 
1.15      bertrand 1616: } # ac_fn_cxx_try_compile
1.1       bertrand 1617: 
1.15      bertrand 1618: # ac_fn_f77_try_compile LINENO
                   1619: # ----------------------------
                   1620: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1621: ac_fn_f77_try_compile ()
                   1622: {
                   1623:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1624:   rm -f conftest.$ac_objext
                   1625:   if { { ac_try="$ac_compile"
                   1626: case "(($ac_try" in
                   1627:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1628:   *) ac_try_echo=$ac_try;;
                   1629: esac
                   1630: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1631: $as_echo "$ac_try_echo"; } >&5
                   1632:   (eval "$ac_compile") 2>conftest.err
                   1633:   ac_status=$?
                   1634:   if test -s conftest.err; then
                   1635:     grep -v '^ *+' conftest.err >conftest.er1
                   1636:     cat conftest.er1 >&5
                   1637:     mv -f conftest.er1 conftest.err
                   1638:   fi
                   1639:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1640:   test $ac_status = 0; } && {
                   1641:     test -z "$ac_f77_werror_flag" ||
                   1642:     test ! -s conftest.err
                   1643:        } && test -s conftest.$ac_objext; then :
                   1644:   ac_retval=0
                   1645: else
                   1646:   $as_echo "$as_me: failed program was:" >&5
                   1647: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1648: 
1.15      bertrand 1649:    ac_retval=1
                   1650: fi
                   1651:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1652:   as_fn_set_status $ac_retval
1.1       bertrand 1653: 
1.15      bertrand 1654: } # ac_fn_f77_try_compile
1.1       bertrand 1655: 
1.15      bertrand 1656: # ac_fn_fc_try_compile LINENO
                   1657: # ---------------------------
                   1658: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1659: ac_fn_fc_try_compile ()
                   1660: {
                   1661:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1662:   rm -f conftest.$ac_objext
                   1663:   if { { ac_try="$ac_compile"
                   1664: case "(($ac_try" in
                   1665:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1666:   *) ac_try_echo=$ac_try;;
                   1667: esac
                   1668: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1669: $as_echo "$ac_try_echo"; } >&5
                   1670:   (eval "$ac_compile") 2>conftest.err
                   1671:   ac_status=$?
                   1672:   if test -s conftest.err; then
                   1673:     grep -v '^ *+' conftest.err >conftest.er1
                   1674:     cat conftest.er1 >&5
                   1675:     mv -f conftest.er1 conftest.err
                   1676:   fi
                   1677:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1678:   test $ac_status = 0; } && {
                   1679:     test -z "$ac_fc_werror_flag" ||
                   1680:     test ! -s conftest.err
                   1681:        } && test -s conftest.$ac_objext; then :
                   1682:   ac_retval=0
                   1683: else
                   1684:   $as_echo "$as_me: failed program was:" >&5
                   1685: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1686: 
1.15      bertrand 1687:    ac_retval=1
                   1688: fi
                   1689:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1690:   as_fn_set_status $ac_retval
1.1       bertrand 1691: 
1.15      bertrand 1692: } # ac_fn_fc_try_compile
1.1       bertrand 1693: 
1.15      bertrand 1694: # ac_fn_c_try_cpp LINENO
                   1695: # ----------------------
                   1696: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1697: ac_fn_c_try_cpp ()
                   1698: {
                   1699:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1700:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1701: case "(($ac_try" in
                   1702:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1703:   *) ac_try_echo=$ac_try;;
                   1704: esac
                   1705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1706: $as_echo "$ac_try_echo"; } >&5
                   1707:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1708:   ac_status=$?
                   1709:   if test -s conftest.err; then
                   1710:     grep -v '^ *+' conftest.err >conftest.er1
                   1711:     cat conftest.er1 >&5
                   1712:     mv -f conftest.er1 conftest.err
                   1713:   fi
                   1714:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1715:   test $ac_status = 0; } >/dev/null && {
                   1716:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1717:     test ! -s conftest.err
                   1718:        }; then :
                   1719:   ac_retval=0
                   1720: else
                   1721:   $as_echo "$as_me: failed program was:" >&5
                   1722: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1723: 
1.15      bertrand 1724:     ac_retval=1
                   1725: fi
                   1726:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1727:   as_fn_set_status $ac_retval
1.1       bertrand 1728: 
1.15      bertrand 1729: } # ac_fn_c_try_cpp
1.1       bertrand 1730: 
1.15      bertrand 1731: # ac_fn_c_try_link LINENO
                   1732: # -----------------------
                   1733: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1734: ac_fn_c_try_link ()
                   1735: {
                   1736:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1737:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1738:   if { { ac_try="$ac_link"
                   1739: case "(($ac_try" in
                   1740:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1741:   *) ac_try_echo=$ac_try;;
                   1742: esac
                   1743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1744: $as_echo "$ac_try_echo"; } >&5
                   1745:   (eval "$ac_link") 2>conftest.err
                   1746:   ac_status=$?
                   1747:   if test -s conftest.err; then
                   1748:     grep -v '^ *+' conftest.err >conftest.er1
                   1749:     cat conftest.er1 >&5
                   1750:     mv -f conftest.er1 conftest.err
                   1751:   fi
                   1752:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1753:   test $ac_status = 0; } && {
                   1754:     test -z "$ac_c_werror_flag" ||
                   1755:     test ! -s conftest.err
                   1756:        } && test -s conftest$ac_exeext && {
                   1757:     test "$cross_compiling" = yes ||
                   1758:     $as_test_x conftest$ac_exeext
                   1759:        }; then :
                   1760:   ac_retval=0
                   1761: else
                   1762:   $as_echo "$as_me: failed program was:" >&5
                   1763: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1764: 
1.15      bertrand 1765:    ac_retval=1
                   1766: fi
                   1767:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1768:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1769:   # interfere with the next link command; also delete a directory that is
                   1770:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1771:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1772:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1773:   as_fn_set_status $ac_retval
1.1       bertrand 1774: 
1.15      bertrand 1775: } # ac_fn_c_try_link
1.1       bertrand 1776: 
1.15      bertrand 1777: # ac_fn_c_check_func LINENO FUNC VAR
                   1778: # ----------------------------------
                   1779: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1780: ac_fn_c_check_func ()
                   1781: {
                   1782:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1783:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1784: $as_echo_n "checking for $2... " >&6; }
                   1785: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   1786:   $as_echo_n "(cached) " >&6
                   1787: else
                   1788:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1789: /* end confdefs.h.  */
                   1790: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1791:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1792: #define $2 innocuous_$2
1.1       bertrand 1793: 
1.15      bertrand 1794: /* System header to define __stub macros and hopefully few prototypes,
                   1795:     which can conflict with char $2 (); below.
                   1796:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1797:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1798: 
1.15      bertrand 1799: #ifdef __STDC__
                   1800: # include <limits.h>
                   1801: #else
                   1802: # include <assert.h>
                   1803: #endif
1.1       bertrand 1804: 
1.15      bertrand 1805: #undef $2
1.1       bertrand 1806: 
1.15      bertrand 1807: /* Override any GCC internal prototype to avoid an error.
                   1808:    Use char because int might match the return type of a GCC
                   1809:    builtin and then its argument prototype would still apply.  */
                   1810: #ifdef __cplusplus
                   1811: extern "C"
                   1812: #endif
                   1813: char $2 ();
                   1814: /* The GNU C library defines this for functions which it implements
                   1815:     to always fail with ENOSYS.  Some functions are actually named
                   1816:     something starting with __ and the normal name is an alias.  */
                   1817: #if defined __stub_$2 || defined __stub___$2
                   1818: choke me
                   1819: #endif
1.1       bertrand 1820: 
1.15      bertrand 1821: int
                   1822: main ()
                   1823: {
                   1824: return $2 ();
                   1825:   ;
                   1826:   return 0;
                   1827: }
1.1       bertrand 1828: _ACEOF
1.15      bertrand 1829: if ac_fn_c_try_link "$LINENO"; then :
                   1830:   eval "$3=yes"
                   1831: else
                   1832:   eval "$3=no"
                   1833: fi
                   1834: rm -f core conftest.err conftest.$ac_objext \
                   1835:     conftest$ac_exeext conftest.$ac_ext
                   1836: fi
                   1837: eval ac_res=\$$3
                   1838:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1839: $as_echo "$ac_res" >&6; }
                   1840:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1841: 
1.15      bertrand 1842: } # ac_fn_c_check_func
1.1       bertrand 1843: 
1.15      bertrand 1844: # ac_fn_c_try_run LINENO
                   1845: # ----------------------
                   1846: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1847: # that executables *can* be run.
                   1848: ac_fn_c_try_run ()
                   1849: {
                   1850:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1851:   if { { ac_try="$ac_link"
                   1852: case "(($ac_try" in
                   1853:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1854:   *) ac_try_echo=$ac_try;;
                   1855: esac
                   1856: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1857: $as_echo "$ac_try_echo"; } >&5
                   1858:   (eval "$ac_link") 2>&5
                   1859:   ac_status=$?
                   1860:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1861:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1862:   { { case "(($ac_try" in
                   1863:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1864:   *) ac_try_echo=$ac_try;;
                   1865: esac
                   1866: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1867: $as_echo "$ac_try_echo"; } >&5
                   1868:   (eval "$ac_try") 2>&5
                   1869:   ac_status=$?
                   1870:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1871:   test $ac_status = 0; }; }; then :
                   1872:   ac_retval=0
                   1873: else
                   1874:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1875:        $as_echo "$as_me: failed program was:" >&5
                   1876: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1877: 
1.15      bertrand 1878:        ac_retval=$ac_status
                   1879: fi
                   1880:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1881:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1882:   as_fn_set_status $ac_retval
1.1       bertrand 1883: 
1.15      bertrand 1884: } # ac_fn_c_try_run
1.1       bertrand 1885: 
1.15      bertrand 1886: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1887: # --------------------------------------------
                   1888: # Tries to find the compile-time value of EXPR in a program that includes
                   1889: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1890: # computed
                   1891: ac_fn_c_compute_int ()
                   1892: {
                   1893:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1894:   if test "$cross_compiling" = yes; then
                   1895:     # Depending upon the size, compute the lo and hi bounds.
                   1896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1897: /* end confdefs.h.  */
                   1898: $4
                   1899: int
                   1900: main ()
                   1901: {
                   1902: static int test_array [1 - 2 * !(($2) >= 0)];
                   1903: test_array [0] = 0
1.1       bertrand 1904: 
1.15      bertrand 1905:   ;
                   1906:   return 0;
                   1907: }
1.1       bertrand 1908: _ACEOF
1.15      bertrand 1909: if ac_fn_c_try_compile "$LINENO"; then :
                   1910:   ac_lo=0 ac_mid=0
                   1911:   while :; do
                   1912:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1913: /* end confdefs.h.  */
                   1914: $4
                   1915: int
                   1916: main ()
                   1917: {
                   1918: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1919: test_array [0] = 0
1.1       bertrand 1920: 
1.15      bertrand 1921:   ;
                   1922:   return 0;
                   1923: }
                   1924: _ACEOF
                   1925: if ac_fn_c_try_compile "$LINENO"; then :
                   1926:   ac_hi=$ac_mid; break
                   1927: else
                   1928:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   1929:            if test $ac_lo -le $ac_mid; then
                   1930:              ac_lo= ac_hi=
                   1931:              break
                   1932:            fi
                   1933:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   1934: fi
                   1935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1936:   done
                   1937: else
                   1938:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1939: /* end confdefs.h.  */
                   1940: $4
                   1941: int
                   1942: main ()
                   1943: {
                   1944: static int test_array [1 - 2 * !(($2) < 0)];
                   1945: test_array [0] = 0
1.1       bertrand 1946: 
1.15      bertrand 1947:   ;
                   1948:   return 0;
                   1949: }
1.1       bertrand 1950: _ACEOF
1.15      bertrand 1951: if ac_fn_c_try_compile "$LINENO"; then :
                   1952:   ac_hi=-1 ac_mid=-1
                   1953:   while :; do
                   1954:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1955: /* end confdefs.h.  */
                   1956: $4
                   1957: int
                   1958: main ()
                   1959: {
                   1960: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   1961: test_array [0] = 0
1.1       bertrand 1962: 
1.15      bertrand 1963:   ;
                   1964:   return 0;
                   1965: }
                   1966: _ACEOF
                   1967: if ac_fn_c_try_compile "$LINENO"; then :
                   1968:   ac_lo=$ac_mid; break
                   1969: else
                   1970:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   1971:            if test $ac_mid -le $ac_hi; then
                   1972:              ac_lo= ac_hi=
                   1973:              break
                   1974:            fi
                   1975:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   1976: fi
                   1977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1978:   done
1.1       bertrand 1979: else
1.15      bertrand 1980:   ac_lo= ac_hi=
                   1981: fi
                   1982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 1983: fi
1.15      bertrand 1984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1985: # Binary search between lo and hi bounds.
                   1986: while test "x$ac_lo" != "x$ac_hi"; do
                   1987:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   1988:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1989: /* end confdefs.h.  */
                   1990: $4
                   1991: int
                   1992: main ()
                   1993: {
                   1994: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1995: test_array [0] = 0
1.1       bertrand 1996: 
1.15      bertrand 1997:   ;
                   1998:   return 0;
                   1999: }
                   2000: _ACEOF
                   2001: if ac_fn_c_try_compile "$LINENO"; then :
                   2002:   ac_hi=$ac_mid
1.1       bertrand 2003: else
1.15      bertrand 2004:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2005: fi
1.15      bertrand 2006: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2007: done
                   2008: case $ac_lo in #((
                   2009: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2010: '') ac_retval=1 ;;
                   2011: esac
                   2012:   else
                   2013:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2014: /* end confdefs.h.  */
                   2015: $4
                   2016: static long int longval () { return $2; }
                   2017: static unsigned long int ulongval () { return $2; }
                   2018: #include <stdio.h>
                   2019: #include <stdlib.h>
                   2020: int
                   2021: main ()
                   2022: {
1.1       bertrand 2023: 
1.15      bertrand 2024:   FILE *f = fopen ("conftest.val", "w");
                   2025:   if (! f)
                   2026:     return 1;
                   2027:   if (($2) < 0)
                   2028:     {
                   2029:       long int i = longval ();
                   2030:       if (i != ($2))
                   2031:    return 1;
                   2032:       fprintf (f, "%ld", i);
                   2033:     }
                   2034:   else
                   2035:     {
                   2036:       unsigned long int i = ulongval ();
                   2037:       if (i != ($2))
                   2038:    return 1;
                   2039:       fprintf (f, "%lu", i);
                   2040:     }
                   2041:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2042:      on some platforms.  */
                   2043:   return ferror (f) || fclose (f) != 0;
                   2044: 
                   2045:   ;
                   2046:   return 0;
                   2047: }
                   2048: _ACEOF
                   2049: if ac_fn_c_try_run "$LINENO"; then :
                   2050:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2051: else
                   2052:   ac_retval=1
1.14      bertrand 2053: fi
1.15      bertrand 2054: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2055:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2056: rm -f conftest.val
1.14      bertrand 2057: 
1.15      bertrand 2058:   fi
                   2059:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   2060:   as_fn_set_status $ac_retval
1.14      bertrand 2061: 
1.15      bertrand 2062: } # ac_fn_c_compute_int
1.1       bertrand 2063: 
1.15      bertrand 2064: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2065: # -------------------------------------------------------
                   2066: # Tests whether HEADER exists and can be compiled using the include files in
                   2067: # INCLUDES, setting the cache variable VAR accordingly.
                   2068: ac_fn_c_check_header_compile ()
                   2069: {
                   2070:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2071:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2072: $as_echo_n "checking for $2... " >&6; }
                   2073: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2074:   $as_echo_n "(cached) " >&6
                   2075: else
                   2076:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2077: /* end confdefs.h.  */
                   2078: $4
                   2079: #include <$2>
                   2080: _ACEOF
                   2081: if ac_fn_c_try_compile "$LINENO"; then :
                   2082:   eval "$3=yes"
                   2083: else
                   2084:   eval "$3=no"
                   2085: fi
                   2086: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2087: fi
                   2088: eval ac_res=\$$3
                   2089:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2090: $as_echo "$ac_res" >&6; }
                   2091:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2092: 
1.15      bertrand 2093: } # ac_fn_c_check_header_compile
1.1       bertrand 2094: 
1.15      bertrand 2095: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2096: # -------------------------------------------------------
                   2097: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2098: # the include files in INCLUDES and setting the cache variable VAR
                   2099: # accordingly.
                   2100: ac_fn_c_check_header_mongrel ()
                   2101: {
                   2102:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2103:   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2104:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2105: $as_echo_n "checking for $2... " >&6; }
                   2106: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2107:   $as_echo_n "(cached) " >&6
                   2108: fi
                   2109: eval ac_res=\$$3
                   2110:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2111: $as_echo "$ac_res" >&6; }
                   2112: else
                   2113:   # Is the header compilable?
                   2114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2115: $as_echo_n "checking $2 usability... " >&6; }
                   2116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2117: /* end confdefs.h.  */
                   2118: $4
                   2119: #include <$2>
                   2120: _ACEOF
                   2121: if ac_fn_c_try_compile "$LINENO"; then :
                   2122:   ac_header_compiler=yes
                   2123: else
                   2124:   ac_header_compiler=no
                   2125: fi
                   2126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2128: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2129: 
1.15      bertrand 2130: # Is the header present?
                   2131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2132: $as_echo_n "checking $2 presence... " >&6; }
                   2133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2134: /* end confdefs.h.  */
                   2135: #include <$2>
                   2136: _ACEOF
                   2137: if ac_fn_c_try_cpp "$LINENO"; then :
                   2138:   ac_header_preproc=yes
                   2139: else
                   2140:   ac_header_preproc=no
                   2141: fi
                   2142: rm -f conftest.err conftest.$ac_ext
                   2143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2144: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2145: 
1.15      bertrand 2146: # So?  What about this header?
                   2147: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2148:   yes:no: )
                   2149:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2150: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2151:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2152: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2153:     ;;
                   2154:   no:yes:* )
                   2155:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2156: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2157:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2158: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2159:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2160: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2161:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2162: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2163:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2164: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2165:     ;;
                   2166: esac
                   2167:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2168: $as_echo_n "checking for $2... " >&6; }
                   2169: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2170:   $as_echo_n "(cached) " >&6
                   2171: else
                   2172:   eval "$3=\$ac_header_compiler"
                   2173: fi
                   2174: eval ac_res=\$$3
                   2175:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2176: $as_echo "$ac_res" >&6; }
                   2177: fi
                   2178:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2179: 
1.15      bertrand 2180: } # ac_fn_c_check_header_mongrel
1.1       bertrand 2181: 
1.15      bertrand 2182: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   2183: # -------------------------------------------
                   2184: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   2185: # variable VAR accordingly.
                   2186: ac_fn_c_check_type ()
                   2187: {
                   2188:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2189:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2190: $as_echo_n "checking for $2... " >&6; }
                   2191: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2192:   $as_echo_n "(cached) " >&6
                   2193: else
                   2194:   eval "$3=no"
                   2195:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2196: /* end confdefs.h.  */
                   2197: $4
                   2198: int
                   2199: main ()
                   2200: {
                   2201: if (sizeof ($2))
                   2202:     return 0;
                   2203:   ;
                   2204:   return 0;
                   2205: }
                   2206: _ACEOF
                   2207: if ac_fn_c_try_compile "$LINENO"; then :
                   2208:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2209: /* end confdefs.h.  */
                   2210: $4
                   2211: int
                   2212: main ()
                   2213: {
                   2214: if (sizeof (($2)))
                   2215:        return 0;
                   2216:   ;
                   2217:   return 0;
                   2218: }
                   2219: _ACEOF
                   2220: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 2221: 
1.15      bertrand 2222: else
                   2223:   eval "$3=yes"
                   2224: fi
                   2225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2226: fi
                   2227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2228: fi
                   2229: eval ac_res=\$$3
                   2230:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2231: $as_echo "$ac_res" >&6; }
                   2232:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2233: 
1.15      bertrand 2234: } # ac_fn_c_check_type
                   2235: cat >config.log <<_ACEOF
                   2236: This file contains any messages produced by compilers while
                   2237: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2238: 
1.19      bertrand 2239: It was created by rpl $as_me 4.0.15, which was
1.15      bertrand 2240: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 2241: 
1.15      bertrand 2242:   $ $0 $@
1.1       bertrand 2243: 
1.15      bertrand 2244: _ACEOF
                   2245: exec 5>>config.log
                   2246: {
                   2247: cat <<_ASUNAME
                   2248: ## --------- ##
                   2249: ## Platform. ##
                   2250: ## --------- ##
1.1       bertrand 2251: 
1.15      bertrand 2252: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2253: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2254: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2255: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2256: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2257: 
1.15      bertrand 2258: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2259: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2260: 
1.15      bertrand 2261: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2262: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2263: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2264: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2265: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2266: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2267: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2268: 
1.15      bertrand 2269: _ASUNAME
1.1       bertrand 2270: 
1.15      bertrand 2271: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2272: for as_dir in $PATH
                   2273: do
                   2274:   IFS=$as_save_IFS
                   2275:   test -z "$as_dir" && as_dir=.
                   2276:     $as_echo "PATH: $as_dir"
                   2277:   done
                   2278: IFS=$as_save_IFS
1.1       bertrand 2279: 
1.15      bertrand 2280: } >&5
1.1       bertrand 2281: 
1.15      bertrand 2282: cat >&5 <<_ACEOF
1.1       bertrand 2283: 
                   2284: 
1.15      bertrand 2285: ## ----------- ##
                   2286: ## Core tests. ##
                   2287: ## ----------- ##
1.1       bertrand 2288: 
1.15      bertrand 2289: _ACEOF
1.1       bertrand 2290: 
                   2291: 
1.15      bertrand 2292: # Keep a trace of the command line.
                   2293: # Strip out --no-create and --no-recursion so they do not pile up.
                   2294: # Strip out --silent because we don't want to record it for future runs.
                   2295: # Also quote any args containing shell meta-characters.
                   2296: # Make two passes to allow for proper duplicate-argument suppression.
                   2297: ac_configure_args=
                   2298: ac_configure_args0=
                   2299: ac_configure_args1=
                   2300: ac_must_keep_next=false
                   2301: for ac_pass in 1 2
                   2302: do
                   2303:   for ac_arg
                   2304:   do
                   2305:     case $ac_arg in
                   2306:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2307:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2308:     | -silent | --silent | --silen | --sile | --sil)
                   2309:       continue ;;
                   2310:     *\'*)
                   2311:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2312:     esac
                   2313:     case $ac_pass in
                   2314:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2315:     2)
                   2316:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2317:       if test $ac_must_keep_next = true; then
                   2318:    ac_must_keep_next=false # Got value, back to normal.
                   2319:       else
                   2320:    case $ac_arg in
                   2321:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2322:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2323:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2324:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2325:        case "$ac_configure_args0 " in
                   2326:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2327:        esac
                   2328:        ;;
                   2329:      -* ) ac_must_keep_next=true ;;
                   2330:    esac
                   2331:       fi
                   2332:       as_fn_append ac_configure_args " '$ac_arg'"
                   2333:       ;;
                   2334:     esac
                   2335:   done
                   2336: done
                   2337: { ac_configure_args0=; unset ac_configure_args0;}
                   2338: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2339: 
1.15      bertrand 2340: # When interrupted or exit'd, cleanup temporary files, and complete
                   2341: # config.log.  We remove comments because anyway the quotes in there
                   2342: # would cause problems or look ugly.
                   2343: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2344: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2345: trap 'exit_status=$?
                   2346:   # Save into config.log some information that might help in debugging.
                   2347:   {
                   2348:     echo
1.1       bertrand 2349: 
1.15      bertrand 2350:     cat <<\_ASBOX
                   2351: ## ---------------- ##
                   2352: ## Cache variables. ##
                   2353: ## ---------------- ##
                   2354: _ASBOX
                   2355:     echo
                   2356:     # The following way of writing the cache mishandles newlines in values,
                   2357: (
                   2358:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2359:     eval ac_val=\$$ac_var
                   2360:     case $ac_val in #(
                   2361:     *${as_nl}*)
                   2362:       case $ac_var in #(
                   2363:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2364: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2365:       esac
                   2366:       case $ac_var in #(
                   2367:       _ | IFS | as_nl) ;; #(
                   2368:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2369:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2370:       esac ;;
                   2371:     esac
                   2372:   done
                   2373:   (set) 2>&1 |
                   2374:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2375:     *${as_nl}ac_space=\ *)
                   2376:       sed -n \
                   2377:    "s/'\''/'\''\\\\'\'''\''/g;
                   2378:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2379:       ;; #(
                   2380:     *)
                   2381:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2382:       ;;
                   2383:     esac |
                   2384:     sort
                   2385: )
                   2386:     echo
1.1       bertrand 2387: 
1.15      bertrand 2388:     cat <<\_ASBOX
                   2389: ## ----------------- ##
                   2390: ## Output variables. ##
                   2391: ## ----------------- ##
                   2392: _ASBOX
                   2393:     echo
                   2394:     for ac_var in $ac_subst_vars
                   2395:     do
                   2396:       eval ac_val=\$$ac_var
                   2397:       case $ac_val in
                   2398:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2399:       esac
                   2400:       $as_echo "$ac_var='\''$ac_val'\''"
                   2401:     done | sort
                   2402:     echo
1.1       bertrand 2403: 
1.15      bertrand 2404:     if test -n "$ac_subst_files"; then
                   2405:       cat <<\_ASBOX
                   2406: ## ------------------- ##
                   2407: ## File substitutions. ##
                   2408: ## ------------------- ##
                   2409: _ASBOX
                   2410:       echo
                   2411:       for ac_var in $ac_subst_files
                   2412:       do
                   2413:    eval ac_val=\$$ac_var
                   2414:    case $ac_val in
                   2415:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2416:    esac
                   2417:    $as_echo "$ac_var='\''$ac_val'\''"
                   2418:       done | sort
                   2419:       echo
1.14      bertrand 2420:     fi
                   2421: 
1.15      bertrand 2422:     if test -s confdefs.h; then
                   2423:       cat <<\_ASBOX
                   2424: ## ----------- ##
                   2425: ## confdefs.h. ##
                   2426: ## ----------- ##
                   2427: _ASBOX
                   2428:       echo
                   2429:       cat confdefs.h
                   2430:       echo
                   2431:     fi
                   2432:     test "$ac_signal" != 0 &&
                   2433:       $as_echo "$as_me: caught signal $ac_signal"
                   2434:     $as_echo "$as_me: exit $exit_status"
                   2435:   } >&5
                   2436:   rm -f core *.core core.conftest.* &&
                   2437:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2438:     exit $exit_status
                   2439: ' 0
                   2440: for ac_signal in 1 2 13 15; do
                   2441:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2442: done
                   2443: ac_signal=0
1.14      bertrand 2444: 
1.15      bertrand 2445: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2446: rm -f -r conftest* confdefs.h
1.14      bertrand 2447: 
1.15      bertrand 2448: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2449: 
1.15      bertrand 2450: # Predefined preprocessor variables.
1.14      bertrand 2451: 
1.15      bertrand 2452: cat >>confdefs.h <<_ACEOF
                   2453: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2454: _ACEOF
1.14      bertrand 2455: 
1.15      bertrand 2456: cat >>confdefs.h <<_ACEOF
                   2457: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2458: _ACEOF
                   2459: 
1.15      bertrand 2460: cat >>confdefs.h <<_ACEOF
                   2461: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2462: _ACEOF
1.14      bertrand 2463: 
1.15      bertrand 2464: cat >>confdefs.h <<_ACEOF
                   2465: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2466: _ACEOF
                   2467: 
1.15      bertrand 2468: cat >>confdefs.h <<_ACEOF
                   2469: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2470: _ACEOF
1.14      bertrand 2471: 
1.15      bertrand 2472: cat >>confdefs.h <<_ACEOF
                   2473: #define PACKAGE_URL "$PACKAGE_URL"
                   2474: _ACEOF
1.14      bertrand 2475: 
                   2476: 
1.15      bertrand 2477: # Let the site file select an alternate cache file if it wants to.
                   2478: # Prefer an explicitly selected file to automatically selected ones.
                   2479: ac_site_file1=NONE
                   2480: ac_site_file2=NONE
                   2481: if test -n "$CONFIG_SITE"; then
                   2482:   ac_site_file1=$CONFIG_SITE
                   2483: elif test "x$prefix" != xNONE; then
                   2484:   ac_site_file1=$prefix/share/config.site
                   2485:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2486: else
1.15      bertrand 2487:   ac_site_file1=$ac_default_prefix/share/config.site
                   2488:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2489: fi
1.15      bertrand 2490: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2491: do
                   2492:   test "x$ac_site_file" = xNONE && continue
                   2493:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2494:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2495: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2496:     sed 's/^/| /' "$ac_site_file" >&5
                   2497:     . "$ac_site_file"
                   2498:   fi
                   2499: done
1.14      bertrand 2500: 
1.15      bertrand 2501: if test -r "$cache_file"; then
                   2502:   # Some versions of bash will fail to source /dev/null (special files
                   2503:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2504:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2505:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2506: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2507:     case $cache_file in
                   2508:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2509:       *)                      . "./$cache_file";;
                   2510:     esac
                   2511:   fi
1.14      bertrand 2512: else
1.15      bertrand 2513:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2514: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2515:   >$cache_file
1.14      bertrand 2516: fi
                   2517: 
1.15      bertrand 2518: # Check that the precious variables saved in the cache have kept the same
                   2519: # value.
                   2520: ac_cache_corrupted=false
                   2521: for ac_var in $ac_precious_vars; do
                   2522:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2523:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2524:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2525:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2526:   case $ac_old_set,$ac_new_set in
                   2527:     set,)
                   2528:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2529: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2530:       ac_cache_corrupted=: ;;
                   2531:     ,set)
                   2532:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2533: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2534:       ac_cache_corrupted=: ;;
                   2535:     ,);;
                   2536:     *)
                   2537:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2538:    # differences in whitespace do not lead to failure.
                   2539:    ac_old_val_w=`echo x $ac_old_val`
                   2540:    ac_new_val_w=`echo x $ac_new_val`
                   2541:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2542:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2543: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2544:      ac_cache_corrupted=:
                   2545:    else
                   2546:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2547: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2548:      eval $ac_var=\$ac_old_val
                   2549:    fi
                   2550:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2551: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2552:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2553: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2554:       fi;;
                   2555:   esac
                   2556:   # Pass precious variables to config.status.
                   2557:   if test "$ac_new_set" = set; then
                   2558:     case $ac_new_val in
                   2559:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2560:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2561:     esac
                   2562:     case " $ac_configure_args " in
                   2563:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2564:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2565:     esac
1.14      bertrand 2566:   fi
                   2567: done
1.15      bertrand 2568: if $ac_cache_corrupted; then
                   2569:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2570: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2571:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2572: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2573:   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2574: fi
                   2575: ## -------------------- ##
                   2576: ## Main body of script. ##
                   2577: ## -------------------- ##
1.14      bertrand 2578: 
1.15      bertrand 2579: ac_ext=c
                   2580: ac_cpp='$CPP $CPPFLAGS'
                   2581: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2582: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2583: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2584: 
                   2585: 
1.15      bertrand 2586: ac_aux_dir=
                   2587: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   2588:   for ac_t in install-sh install.sh shtool; do
                   2589:     if test -f "$ac_dir/$ac_t"; then
                   2590:       ac_aux_dir=$ac_dir
                   2591:       ac_install_sh="$ac_aux_dir/$ac_t -c"
                   2592:       break 2
                   2593:     fi
                   2594:   done
1.14      bertrand 2595: done
1.15      bertrand 2596: if test -z "$ac_aux_dir"; then
                   2597:   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   2598: fi
1.14      bertrand 2599: 
1.15      bertrand 2600: # These three variables are undocumented and unsupported,
                   2601: # and are intended to be withdrawn in a future Autoconf release.
                   2602: # They can cause serious problems if a builder's source tree is in a directory
                   2603: # whose full name contains unusual characters.
                   2604: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2605: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2606: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2607: 
                   2608: 
1.15      bertrand 2609: # Make sure we can run config.sub.
                   2610: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   2611:   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2612: 
1.15      bertrand 2613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2614: $as_echo_n "checking build system type... " >&6; }
                   2615: if test "${ac_cv_build+set}" = set; then :
                   2616:   $as_echo_n "(cached) " >&6
1.14      bertrand 2617: else
1.15      bertrand 2618:   ac_build_alias=$build_alias
                   2619: test "x$ac_build_alias" = x &&
                   2620:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2621: test "x$ac_build_alias" = x &&
                   2622:   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
                   2623: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   2624:   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2625: 
                   2626: fi
1.15      bertrand 2627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2628: $as_echo "$ac_cv_build" >&6; }
                   2629: case $ac_cv_build in
                   2630: *-*-*) ;;
                   2631: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
                   2632: esac
                   2633: build=$ac_cv_build
                   2634: ac_save_IFS=$IFS; IFS='-'
                   2635: set x $ac_cv_build
                   2636: shift
                   2637: build_cpu=$1
                   2638: build_vendor=$2
                   2639: shift; shift
                   2640: # Remember, the first character of IFS is used to create $*,
                   2641: # except with old shells:
                   2642: build_os=$*
                   2643: IFS=$ac_save_IFS
                   2644: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2645: 
                   2646: 
1.15      bertrand 2647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2648: $as_echo_n "checking host system type... " >&6; }
                   2649: if test "${ac_cv_host+set}" = set; then :
                   2650:   $as_echo_n "(cached) " >&6
1.14      bertrand 2651: else
1.15      bertrand 2652:   if test "x$host_alias" = x; then
                   2653:   ac_cv_host=$ac_cv_build
1.14      bertrand 2654: else
1.15      bertrand 2655:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   2656:     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2657: fi
                   2658: 
                   2659: fi
1.15      bertrand 2660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2661: $as_echo "$ac_cv_host" >&6; }
                   2662: case $ac_cv_host in
                   2663: *-*-*) ;;
                   2664: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
                   2665: esac
                   2666: host=$ac_cv_host
                   2667: ac_save_IFS=$IFS; IFS='-'
                   2668: set x $ac_cv_host
                   2669: shift
                   2670: host_cpu=$1
                   2671: host_vendor=$2
                   2672: shift; shift
                   2673: # Remember, the first character of IFS is used to create $*,
                   2674: # except with old shells:
                   2675: host_os=$*
                   2676: IFS=$ac_save_IFS
                   2677: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2678: 
                   2679: 
1.15      bertrand 2680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2681: $as_echo_n "checking target system type... " >&6; }
                   2682: if test "${ac_cv_target+set}" = set; then :
                   2683:   $as_echo_n "(cached) " >&6
                   2684: else
                   2685:   if test "x$target_alias" = x; then
                   2686:   ac_cv_target=$ac_cv_host
1.14      bertrand 2687: else
1.15      bertrand 2688:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   2689:     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
                   2690: fi
1.14      bertrand 2691: 
                   2692: fi
1.15      bertrand 2693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2694: $as_echo "$ac_cv_target" >&6; }
                   2695: case $ac_cv_target in
                   2696: *-*-*) ;;
                   2697: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
                   2698: esac
                   2699: target=$ac_cv_target
                   2700: ac_save_IFS=$IFS; IFS='-'
                   2701: set x $ac_cv_target
                   2702: shift
                   2703: target_cpu=$1
                   2704: target_vendor=$2
                   2705: shift; shift
                   2706: # Remember, the first character of IFS is used to create $*,
                   2707: # except with old shells:
                   2708: target_os=$*
                   2709: IFS=$ac_save_IFS
                   2710: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2711: 
1.14      bertrand 2712: 
1.15      bertrand 2713: # The aliases save the names the user supplied, while $host etc.
                   2714: # will get canonicalized.
                   2715: test -n "$target_alias" &&
                   2716:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2717:     NONENONEs,x,x, &&
                   2718:   program_prefix=${target_alias}-
1.1       bertrand 2719: 
1.15      bertrand 2720: am__api_version='1.11'
1.1       bertrand 2721: 
1.14      bertrand 2722: # Find a good install program.  We prefer a C program (faster),
                   2723: # so one script is as good as another.  But avoid the broken or
                   2724: # incompatible versions:
                   2725: # SysV /etc/install, /usr/sbin/install
                   2726: # SunOS /usr/etc/install
                   2727: # IRIX /sbin/install
                   2728: # AIX /bin/install
                   2729: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2730: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2731: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2732: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2733: # OS/2's system install, which has a completely different semantic
                   2734: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2735: # Reject install programs that cannot install multiple files.
                   2736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2737: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2738: if test -z "$INSTALL"; then
1.15      bertrand 2739: if test "${ac_cv_path_install+set}" = set; then :
                   2740:   $as_echo_n "(cached) " >&6
1.14      bertrand 2741: else
                   2742:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2743: for as_dir in $PATH
                   2744: do
                   2745:   IFS=$as_save_IFS
                   2746:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2747:     # Account for people who put trailing slashes in PATH elements.
                   2748: case $as_dir/ in #((
                   2749:   ./ | .// | /[cC]/* | \
1.14      bertrand 2750:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2751:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2752:   /usr/ucb/* ) ;;
                   2753:   *)
                   2754:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2755:     # Don't use installbsd from OSF since it installs stuff as root
                   2756:     # by default.
                   2757:     for ac_prog in ginstall scoinst install; do
                   2758:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2759:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2760:      if test $ac_prog = install &&
                   2761:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2762:        # AIX install.  It has an incompatible calling convention.
                   2763:        :
                   2764:      elif test $ac_prog = install &&
                   2765:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2766:        # program-specific install script used by HP pwplus--don't use.
                   2767:        :
                   2768:      else
1.15      bertrand 2769:        rm -rf conftest.one conftest.two conftest.dir
                   2770:        echo one > conftest.one
                   2771:        echo two > conftest.two
                   2772:        mkdir conftest.dir
                   2773:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2774:          test -s conftest.one && test -s conftest.two &&
                   2775:          test -s conftest.dir/conftest.one &&
                   2776:          test -s conftest.dir/conftest.two
                   2777:        then
                   2778:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2779:          break 3
                   2780:        fi
1.14      bertrand 2781:      fi
                   2782:    fi
                   2783:       done
                   2784:     done
                   2785:     ;;
                   2786: esac
1.15      bertrand 2787: 
                   2788:   done
1.14      bertrand 2789: IFS=$as_save_IFS
1.1       bertrand 2790: 
1.15      bertrand 2791: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2792: 
1.14      bertrand 2793: fi
                   2794:   if test "${ac_cv_path_install+set}" = set; then
                   2795:     INSTALL=$ac_cv_path_install
                   2796:   else
                   2797:     # As a last resort, use the slow shell script.  Don't cache a
                   2798:     # value for INSTALL within a source directory, because that will
                   2799:     # break other packages using the cache if that directory is
                   2800:     # removed, or if the value is a relative name.
                   2801:     INSTALL=$ac_install_sh
                   2802:   fi
                   2803: fi
1.15      bertrand 2804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2805: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2806: 
1.14      bertrand 2807: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2808: # It thinks the first close brace ends the variable substitution.
                   2809: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2810: 
1.14      bertrand 2811: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2812: 
1.14      bertrand 2813: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2814: 
1.15      bertrand 2815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2816: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2817: # Just in case
                   2818: sleep 1
                   2819: echo timestamp > conftest.file
                   2820: # Reject unsafe characters in $srcdir or the absolute working directory
                   2821: # name.  Accept space and tab only in the latter.
                   2822: am_lf='
                   2823: '
                   2824: case `pwd` in
                   2825:   *[\\\"\#\$\&\'\`$am_lf]*)
                   2826:     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
                   2827: esac
                   2828: case $srcdir in
                   2829:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
                   2830:     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
                   2831: esac
                   2832: 
                   2833: # Do `set' in a subshell so we don't clobber the current shell's
                   2834: # arguments.  Must try -L first in case configure is actually a
                   2835: # symlink; some systems play weird games with the mod time of symlinks
                   2836: # (eg FreeBSD returns the mod time of the symlink's containing
                   2837: # directory).
                   2838: if (
                   2839:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2840:    if test "$*" = "X"; then
                   2841:       # -L didn't work.
                   2842:       set X `ls -t "$srcdir/configure" conftest.file`
                   2843:    fi
                   2844:    rm -f conftest.file
                   2845:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2846:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2847: 
                   2848:       # If neither matched, then we have a broken ls.  This can happen
                   2849:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2850:       # broken ls alias from the environment.  This has actually
                   2851:       # happened.  Such a system could not be considered "sane".
                   2852:       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
                   2853: alias in your environment" "$LINENO" 5
                   2854:    fi
                   2855: 
                   2856:    test "$2" = conftest.file
                   2857:    )
                   2858: then
                   2859:    # Ok.
                   2860:    :
1.14      bertrand 2861: else
1.15      bertrand 2862:    as_fn_error "newly created file is older than distributed files!
                   2863: Check your system clock" "$LINENO" 5
1.14      bertrand 2864: fi
1.15      bertrand 2865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2866: $as_echo "yes" >&6; }
                   2867: test "$program_prefix" != NONE &&
                   2868:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2869: # Use a double $ so make ignores it.
                   2870: test "$program_suffix" != NONE &&
                   2871:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2872: # Double any \ or $.
                   2873: # By default was `s,x,x', remove it if useless.
                   2874: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2875: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2876: 
                   2877: # expand $ac_aux_dir to an absolute path
                   2878: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2879: 
1.15      bertrand 2880: if test x"${MISSING+set}" != xset; then
                   2881:   case $am_aux_dir in
                   2882:   *\ * | *\    *)
                   2883:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2884:   *)
1.15      bertrand 2885:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2886:   esac
1.14      bertrand 2887: fi
1.15      bertrand 2888: # Use eval to expand $SHELL
                   2889: if eval "$MISSING --run true"; then
                   2890:   am_missing_run="$MISSING --run "
1.14      bertrand 2891: else
1.15      bertrand 2892:   am_missing_run=
                   2893:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2894: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2895: fi
                   2896: 
                   2897: if test x"${install_sh}" != xset; then
                   2898:   case $am_aux_dir in
                   2899:   *\ * | *\    *)
                   2900:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2901:   *)
                   2902:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2903:   esac
1.14      bertrand 2904: fi
1.15      bertrand 2905: 
                   2906: # Installed binaries are usually stripped using `strip' when the user
                   2907: # run `make install-strip'.  However `strip' might not be the right
                   2908: # tool to use in cross-compilation environments, therefore Automake
                   2909: # will honor the `STRIP' environment variable to overrule this program.
                   2910: if test "$cross_compiling" != no; then
                   2911:   if test -n "$ac_tool_prefix"; then
                   2912:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2913: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2915: $as_echo_n "checking for $ac_word... " >&6; }
                   2916: if test "${ac_cv_prog_STRIP+set}" = set; then :
                   2917:   $as_echo_n "(cached) " >&6
1.14      bertrand 2918: else
1.15      bertrand 2919:   if test -n "$STRIP"; then
                   2920:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2921: else
                   2922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2923: for as_dir in $PATH
                   2924: do
                   2925:   IFS=$as_save_IFS
                   2926:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2927:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2928:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2929:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2930:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2931:     break 2
                   2932:   fi
                   2933: done
1.15      bertrand 2934:   done
1.14      bertrand 2935: IFS=$as_save_IFS
1.1       bertrand 2936: 
1.14      bertrand 2937: fi
                   2938: fi
1.15      bertrand 2939: STRIP=$ac_cv_prog_STRIP
                   2940: if test -n "$STRIP"; then
                   2941:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2942: $as_echo "$STRIP" >&6; }
1.14      bertrand 2943: else
1.15      bertrand 2944:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2945: $as_echo "no" >&6; }
1.14      bertrand 2946: fi
1.1       bertrand 2947: 
                   2948: 
1.14      bertrand 2949: fi
1.15      bertrand 2950: if test -z "$ac_cv_prog_STRIP"; then
                   2951:   ac_ct_STRIP=$STRIP
                   2952:   # Extract the first word of "strip", so it can be a program name with args.
                   2953: set dummy strip; ac_word=$2
                   2954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2955: $as_echo_n "checking for $ac_word... " >&6; }
                   2956: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
                   2957:   $as_echo_n "(cached) " >&6
1.14      bertrand 2958: else
1.15      bertrand 2959:   if test -n "$ac_ct_STRIP"; then
                   2960:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 2961: else
1.14      bertrand 2962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2963: for as_dir in $PATH
1.1       bertrand 2964: do
1.14      bertrand 2965:   IFS=$as_save_IFS
                   2966:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2967:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2968:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2969:     ac_cv_prog_ac_ct_STRIP="strip"
                   2970:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2971:     break 2
1.1       bertrand 2972:   fi
                   2973: done
1.15      bertrand 2974:   done
1.14      bertrand 2975: IFS=$as_save_IFS
1.1       bertrand 2976: 
1.14      bertrand 2977: fi
                   2978: fi
1.15      bertrand 2979: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   2980: if test -n "$ac_ct_STRIP"; then
                   2981:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   2982: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 2983: else
1.15      bertrand 2984:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2985: $as_echo "no" >&6; }
1.1       bertrand 2986: fi
                   2987: 
1.15      bertrand 2988:   if test "x$ac_ct_STRIP" = x; then
                   2989:     STRIP=":"
1.14      bertrand 2990:   else
                   2991:     case $cross_compiling:$ac_tool_warned in
                   2992: yes:)
1.15      bertrand 2993: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   2994: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 2995: ac_tool_warned=yes ;;
                   2996: esac
1.15      bertrand 2997:     STRIP=$ac_ct_STRIP
1.1       bertrand 2998:   fi
1.14      bertrand 2999: else
1.15      bertrand 3000:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3001: fi
                   3002: 
1.15      bertrand 3003: fi
                   3004: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3005: 
1.15      bertrand 3006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3007: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3008: if test -z "$MKDIR_P"; then
                   3009:   if test "${ac_cv_path_mkdir+set}" = set; then :
                   3010:   $as_echo_n "(cached) " >&6
1.14      bertrand 3011: else
1.15      bertrand 3012:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3013: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3014: do
                   3015:   IFS=$as_save_IFS
                   3016:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3017:     for ac_prog in mkdir gmkdir; do
                   3018:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3019:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3020:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3021:         'mkdir (GNU coreutils) '* | \
                   3022:         'mkdir (coreutils) '* | \
                   3023:         'mkdir (fileutils) '4.1*)
                   3024:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3025:           break 3;;
                   3026:       esac
                   3027:     done
                   3028:        done
                   3029:   done
1.14      bertrand 3030: IFS=$as_save_IFS
1.1       bertrand 3031: 
                   3032: fi
1.15      bertrand 3033: 
                   3034:   test -d ./--version && rmdir ./--version
                   3035:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3036:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3037:   else
                   3038:     # As a last resort, use the slow shell script.  Don't cache a
                   3039:     # value for MKDIR_P within a source directory, because that will
                   3040:     # break other packages using the cache if that directory is
                   3041:     # removed, or if the value is a relative name.
                   3042:     MKDIR_P="$ac_install_sh -d"
                   3043:   fi
1.14      bertrand 3044: fi
1.15      bertrand 3045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3046: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3047: 
1.15      bertrand 3048: mkdir_p="$MKDIR_P"
                   3049: case $mkdir_p in
                   3050:   [\\/$]* | ?:[\\/]*) ;;
                   3051:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3052: esac
1.1       bertrand 3053: 
1.15      bertrand 3054: for ac_prog in gawk mawk nawk awk
                   3055: do
                   3056:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3057: set dummy $ac_prog; ac_word=$2
                   3058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3059: $as_echo_n "checking for $ac_word... " >&6; }
                   3060: if test "${ac_cv_prog_AWK+set}" = set; then :
                   3061:   $as_echo_n "(cached) " >&6
1.1       bertrand 3062: else
1.15      bertrand 3063:   if test -n "$AWK"; then
                   3064:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3065: else
1.14      bertrand 3066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3067: for as_dir in $PATH
                   3068: do
                   3069:   IFS=$as_save_IFS
                   3070:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3071:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3072:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3073:     ac_cv_prog_AWK="$ac_prog"
                   3074:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3075:     break 2
                   3076:   fi
                   3077: done
1.15      bertrand 3078:   done
1.14      bertrand 3079: IFS=$as_save_IFS
                   3080: 
                   3081: fi
1.1       bertrand 3082: fi
1.15      bertrand 3083: AWK=$ac_cv_prog_AWK
                   3084: if test -n "$AWK"; then
                   3085:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3086: $as_echo "$AWK" >&6; }
1.14      bertrand 3087: else
1.15      bertrand 3088:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3089: $as_echo "no" >&6; }
1.1       bertrand 3090: fi
                   3091: 
                   3092: 
1.15      bertrand 3093:   test -n "$AWK" && break
                   3094: done
1.1       bertrand 3095: 
1.15      bertrand 3096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3097: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3098: set x ${MAKE-make}
                   3099: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   3100: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   3101:   $as_echo_n "(cached) " >&6
1.14      bertrand 3102: else
1.15      bertrand 3103:   cat >conftest.make <<\_ACEOF
                   3104: SHELL = /bin/sh
                   3105: all:
                   3106:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3107: _ACEOF
                   3108: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   3109: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3110:   *@@@%%%=?*=@@@%%%*)
                   3111:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3112:   *)
                   3113:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3114: esac
                   3115: rm -f conftest.make
                   3116: fi
                   3117: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3118:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3119: $as_echo "yes" >&6; }
                   3120:   SET_MAKE=
1.1       bertrand 3121: else
1.15      bertrand 3122:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3123: $as_echo "no" >&6; }
                   3124:   SET_MAKE="MAKE=${MAKE-make}"
                   3125: fi
1.1       bertrand 3126: 
1.15      bertrand 3127: rm -rf .tst 2>/dev/null
                   3128: mkdir .tst 2>/dev/null
                   3129: if test -d .tst; then
                   3130:   am__leading_dot=.
                   3131: else
                   3132:   am__leading_dot=_
1.14      bertrand 3133: fi
1.15      bertrand 3134: rmdir .tst 2>/dev/null
                   3135: 
                   3136: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3137:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3138:   # is not polluted with repeated "-I."
                   3139:   am__isrc=' -I$(srcdir)'
                   3140:   # test to see if srcdir already configured
                   3141:   if test -f $srcdir/config.status; then
                   3142:     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
                   3143:   fi
1.1       bertrand 3144: fi
1.15      bertrand 3145: 
                   3146: # test whether we have cygpath
                   3147: if test -z "$CYGPATH_W"; then
                   3148:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3149:     CYGPATH_W='cygpath -w'
                   3150:   else
                   3151:     CYGPATH_W=echo
                   3152:   fi
1.1       bertrand 3153: fi
                   3154: 
                   3155: 
1.15      bertrand 3156: # Define the identity of the package.
                   3157:  PACKAGE='rpl'
1.19      bertrand 3158:  VERSION='4.0.15'
1.15      bertrand 3159: 
                   3160: 
                   3161: cat >>confdefs.h <<_ACEOF
                   3162: #define PACKAGE "$PACKAGE"
                   3163: _ACEOF
                   3164: 
                   3165: 
                   3166: cat >>confdefs.h <<_ACEOF
                   3167: #define VERSION "$VERSION"
                   3168: _ACEOF
                   3169: 
                   3170: # Some tools Automake needs.
                   3171: 
                   3172: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3173: 
                   3174: 
                   3175: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3176: 
                   3177: 
                   3178: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3179: 
                   3180: 
                   3181: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3182: 
                   3183: 
                   3184: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3185: 
                   3186: # We need awk for the "check" target.  The system "awk" is bad on
                   3187: # some platforms.
                   3188: # Always define AMTAR for backward compatibility.
                   3189: 
                   3190: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3191: 
                   3192: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3193: 
                   3194: 
                   3195: 
                   3196: 
1.1       bertrand 3197: 
                   3198: 
1.15      bertrand 3199: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3200: 
                   3201: 
1.23    ! bertrand 3202: NCURSES=ncurses-5.7-20100501
1.15      bertrand 3203: READLINE=readline-6.1
                   3204: UNITS=units-1.87
                   3205: GSL=gsl-1.14
                   3206: GPP=gpp-2.24
                   3207: GNUPLOT=gnuplot-4.4.0
                   3208: FILE=file-5.03
                   3209: ICONV=libiconv-1.13.1
                   3210: SQLITE=sqlite-3.6.23.1
                   3211: OPENSSL=openssl-1.0.0
1.14      bertrand 3212: 
1.15      bertrand 3213: ac_ext=c
                   3214: ac_cpp='$CPP $CPPFLAGS'
                   3215: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3216: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3217: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3218: if test -n "$ac_tool_prefix"; then
1.23    ! bertrand 3219:   for ac_prog in gcc
1.15      bertrand 3220:   do
                   3221:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3222: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3224: $as_echo_n "checking for $ac_word... " >&6; }
                   3225: if test "${ac_cv_prog_CC+set}" = set; then :
                   3226:   $as_echo_n "(cached) " >&6
1.1       bertrand 3227: else
1.15      bertrand 3228:   if test -n "$CC"; then
                   3229:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3230: else
                   3231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3232: for as_dir in $PATH
                   3233: do
                   3234:   IFS=$as_save_IFS
                   3235:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3236:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3237:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3238:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3239:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3240:     break 2
                   3241:   fi
                   3242: done
1.15      bertrand 3243:   done
1.1       bertrand 3244: IFS=$as_save_IFS
                   3245: 
                   3246: fi
                   3247: fi
1.15      bertrand 3248: CC=$ac_cv_prog_CC
                   3249: if test -n "$CC"; then
                   3250:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3251: $as_echo "$CC" >&6; }
1.1       bertrand 3252: else
1.15      bertrand 3253:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3254: $as_echo "no" >&6; }
1.1       bertrand 3255: fi
                   3256: 
                   3257: 
1.15      bertrand 3258:     test -n "$CC" && break
                   3259:   done
                   3260: fi
                   3261: if test -z "$CC"; then
                   3262:   ac_ct_CC=$CC
1.23    ! bertrand 3263:   for ac_prog in gcc
1.15      bertrand 3264: do
                   3265:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3266: set dummy $ac_prog; ac_word=$2
                   3267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3268: $as_echo_n "checking for $ac_word... " >&6; }
                   3269: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
                   3270:   $as_echo_n "(cached) " >&6
1.1       bertrand 3271: else
1.15      bertrand 3272:   if test -n "$ac_ct_CC"; then
                   3273:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3274: else
                   3275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3276: for as_dir in $PATH
                   3277: do
                   3278:   IFS=$as_save_IFS
                   3279:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3280:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3281:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3282:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3283:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3284:     break 2
                   3285:   fi
                   3286: done
1.15      bertrand 3287:   done
1.1       bertrand 3288: IFS=$as_save_IFS
                   3289: 
                   3290: fi
                   3291: fi
1.15      bertrand 3292: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3293: if test -n "$ac_ct_CC"; then
                   3294:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3295: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3296: else
1.15      bertrand 3297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3298: $as_echo "no" >&6; }
1.1       bertrand 3299: fi
                   3300: 
                   3301: 
1.15      bertrand 3302:   test -n "$ac_ct_CC" && break
                   3303: done
1.1       bertrand 3304: 
1.15      bertrand 3305:   if test "x$ac_ct_CC" = x; then
                   3306:     CC=""
                   3307:   else
                   3308:     case $cross_compiling:$ac_tool_warned in
                   3309: yes:)
                   3310: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3311: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3312: ac_tool_warned=yes ;;
                   3313: esac
                   3314:     CC=$ac_ct_CC
1.1       bertrand 3315:   fi
                   3316: fi
                   3317: 
                   3318: 
1.15      bertrand 3319: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3320: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3321: as_fn_error "no acceptable C compiler found in \$PATH
                   3322: See \`config.log' for more details." "$LINENO" 5; }
1.1       bertrand 3323: 
1.15      bertrand 3324: # Provide some information about the compiler.
                   3325: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3326: set X $ac_compile
                   3327: ac_compiler=$2
                   3328: for ac_option in --version -v -V -qversion; do
                   3329:   { { ac_try="$ac_compiler $ac_option >&5"
                   3330: case "(($ac_try" in
                   3331:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3332:   *) ac_try_echo=$ac_try;;
                   3333: esac
                   3334: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3335: $as_echo "$ac_try_echo"; } >&5
                   3336:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3337:   ac_status=$?
                   3338:   if test -s conftest.err; then
                   3339:     sed '10a\
                   3340: ... rest of stderr output deleted ...
                   3341:          10q' conftest.err >conftest.er1
                   3342:     cat conftest.er1 >&5
1.1       bertrand 3343:   fi
1.15      bertrand 3344:   rm -f conftest.er1 conftest.err
                   3345:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3346:   test $ac_status = 0; }
1.1       bertrand 3347: done
                   3348: 
1.15      bertrand 3349: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3350: /* end confdefs.h.  */
                   3351: 
                   3352: int
                   3353: main ()
                   3354: {
1.14      bertrand 3355: 
1.15      bertrand 3356:   ;
                   3357:   return 0;
                   3358: }
                   3359: _ACEOF
                   3360: ac_clean_files_save=$ac_clean_files
                   3361: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3362: # Try to create an executable without -o first, disregard a.out.
                   3363: # It will help us diagnose broken compilers, and finding out an intuition
                   3364: # of exeext.
                   3365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3366: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3367: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3368: 
1.15      bertrand 3369: # The possible output files:
                   3370: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3371: 
1.15      bertrand 3372: ac_rmfiles=
                   3373: for ac_file in $ac_files
1.1       bertrand 3374: do
1.15      bertrand 3375:   case $ac_file in
                   3376:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3377:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3378:   esac
1.1       bertrand 3379: done
1.15      bertrand 3380: rm -f $ac_rmfiles
                   3381: 
                   3382: if { { ac_try="$ac_link_default"
                   3383: case "(($ac_try" in
                   3384:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3385:   *) ac_try_echo=$ac_try;;
                   3386: esac
                   3387: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3388: $as_echo "$ac_try_echo"; } >&5
                   3389:   (eval "$ac_link_default") 2>&5
                   3390:   ac_status=$?
                   3391:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3392:   test $ac_status = 0; }; then :
                   3393:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3394: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3395: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3396: # so that the user can short-circuit this test for compilers unknown to
                   3397: # Autoconf.
                   3398: for ac_file in $ac_files ''
                   3399: do
                   3400:   test -f "$ac_file" || continue
                   3401:   case $ac_file in
                   3402:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3403:    ;;
                   3404:     [ab].out )
                   3405:    # We found the default executable, but exeext='' is most
                   3406:    # certainly right.
                   3407:    break;;
                   3408:     *.* )
                   3409:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3410:    then :; else
                   3411:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3412:    fi
                   3413:    # We set ac_cv_exeext here because the later test for it is not
                   3414:    # safe: cross compilers may not add the suffix if given an `-o'
                   3415:    # argument, so we may need to know it at that point already.
                   3416:    # Even if this section looks crufty: it has the advantage of
                   3417:    # actually working.
                   3418:    break;;
                   3419:     * )
                   3420:    break;;
                   3421:   esac
1.14      bertrand 3422: done
1.15      bertrand 3423: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3424: 
1.14      bertrand 3425: else
1.15      bertrand 3426:   ac_file=''
1.1       bertrand 3427: fi
1.15      bertrand 3428: if test -z "$ac_file"; then :
                   3429:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3430: $as_echo "no" >&6; }
                   3431: $as_echo "$as_me: failed program was:" >&5
                   3432: sed 's/^/| /' conftest.$ac_ext >&5
                   3433: 
                   3434: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3435: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3436: { as_fn_set_status 77
                   3437: as_fn_error "C compiler cannot create executables
                   3438: See \`config.log' for more details." "$LINENO" 5; }; }
                   3439: else
                   3440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3441: $as_echo "yes" >&6; }
                   3442: fi
                   3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3444: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3446: $as_echo "$ac_file" >&6; }
                   3447: ac_exeext=$ac_cv_exeext
1.1       bertrand 3448: 
1.15      bertrand 3449: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3450: ac_clean_files=$ac_clean_files_save
                   3451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3452: $as_echo_n "checking for suffix of executables... " >&6; }
                   3453: if { { ac_try="$ac_link"
                   3454: case "(($ac_try" in
                   3455:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3456:   *) ac_try_echo=$ac_try;;
                   3457: esac
                   3458: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3459: $as_echo "$ac_try_echo"; } >&5
                   3460:   (eval "$ac_link") 2>&5
                   3461:   ac_status=$?
                   3462:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3463:   test $ac_status = 0; }; then :
                   3464:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3465: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3466: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3467: # `rm'.
                   3468: for ac_file in conftest.exe conftest conftest.*; do
                   3469:   test -f "$ac_file" || continue
                   3470:   case $ac_file in
                   3471:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3472:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3473:      break;;
                   3474:     * ) break;;
                   3475:   esac
                   3476: done
1.14      bertrand 3477: else
1.15      bertrand 3478:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3479: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3480: as_fn_error "cannot compute suffix of executables: cannot compile and link
                   3481: See \`config.log' for more details." "$LINENO" 5; }
                   3482: fi
                   3483: rm -f conftest conftest$ac_cv_exeext
                   3484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3485: $as_echo "$ac_cv_exeext" >&6; }
                   3486: 
                   3487: rm -f conftest.$ac_ext
                   3488: EXEEXT=$ac_cv_exeext
                   3489: ac_exeext=$EXEEXT
                   3490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3491: /* end confdefs.h.  */
1.15      bertrand 3492: #include <stdio.h>
1.14      bertrand 3493: int
                   3494: main ()
                   3495: {
1.15      bertrand 3496: FILE *f = fopen ("conftest.out", "w");
                   3497:  return ferror (f) || fclose (f) != 0;
                   3498: 
1.14      bertrand 3499:   ;
                   3500:   return 0;
                   3501: }
                   3502: _ACEOF
1.15      bertrand 3503: ac_clean_files="$ac_clean_files conftest.out"
                   3504: # Check that the compiler produces executables we can run.  If not, either
                   3505: # the compiler is broken, or we cross compile.
                   3506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3507: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3508: if test "$cross_compiling" != yes; then
                   3509:   { { ac_try="$ac_link"
1.1       bertrand 3510: case "(($ac_try" in
                   3511:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3512:   *) ac_try_echo=$ac_try;;
                   3513: esac
1.15      bertrand 3514: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3515: $as_echo "$ac_try_echo"; } >&5
                   3516:   (eval "$ac_link") 2>&5
                   3517:   ac_status=$?
                   3518:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3519:   test $ac_status = 0; }
                   3520:   if { ac_try='./conftest$ac_cv_exeext'
                   3521:   { { case "(($ac_try" in
                   3522:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3523:   *) ac_try_echo=$ac_try;;
                   3524: esac
                   3525: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3526: $as_echo "$ac_try_echo"; } >&5
                   3527:   (eval "$ac_try") 2>&5
1.1       bertrand 3528:   ac_status=$?
1.15      bertrand 3529:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3530:   test $ac_status = 0; }; }; then
                   3531:     cross_compiling=no
                   3532:   else
                   3533:     if test "$cross_compiling" = maybe; then
                   3534:    cross_compiling=yes
                   3535:     else
                   3536:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3537: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3538: as_fn_error "cannot run C compiled programs.
                   3539: If you meant to cross compile, use \`--host'.
                   3540: See \`config.log' for more details." "$LINENO" 5; }
                   3541:     fi
                   3542:   fi
1.14      bertrand 3543: fi
1.15      bertrand 3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3545: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3546: 
1.15      bertrand 3547: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3548: ac_clean_files=$ac_clean_files_save
                   3549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3550: $as_echo_n "checking for suffix of object files... " >&6; }
                   3551: if test "${ac_cv_objext+set}" = set; then :
                   3552:   $as_echo_n "(cached) " >&6
1.14      bertrand 3553: else
1.15      bertrand 3554:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3555: /* end confdefs.h.  */
                   3556: 
                   3557: int
                   3558: main ()
                   3559: {
1.15      bertrand 3560: 
1.1       bertrand 3561:   ;
                   3562:   return 0;
                   3563: }
                   3564: _ACEOF
1.15      bertrand 3565: rm -f conftest.o conftest.obj
                   3566: if { { ac_try="$ac_compile"
1.1       bertrand 3567: case "(($ac_try" in
                   3568:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3569:   *) ac_try_echo=$ac_try;;
                   3570: esac
1.15      bertrand 3571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3572: $as_echo "$ac_try_echo"; } >&5
                   3573:   (eval "$ac_compile") 2>&5
1.1       bertrand 3574:   ac_status=$?
1.15      bertrand 3575:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3576:   test $ac_status = 0; }; then :
                   3577:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3578:   test -f "$ac_file" || continue;
                   3579:   case $ac_file in
                   3580:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3581:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3582:        break;;
                   3583:   esac
                   3584: done
1.14      bertrand 3585: else
1.15      bertrand 3586:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3587: sed 's/^/| /' conftest.$ac_ext >&5
                   3588: 
1.15      bertrand 3589: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3590: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3591: as_fn_error "cannot compute suffix of object files: cannot compile
                   3592: See \`config.log' for more details." "$LINENO" 5; }
1.14      bertrand 3593: fi
1.15      bertrand 3594: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3595: fi
                   3596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3597: $as_echo "$ac_cv_objext" >&6; }
                   3598: OBJEXT=$ac_cv_objext
                   3599: ac_objext=$OBJEXT
                   3600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3601: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3602: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
                   3603:   $as_echo_n "(cached) " >&6
                   3604: else
                   3605:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3606: /* end confdefs.h.  */
                   3607: 
                   3608: int
                   3609: main ()
                   3610: {
                   3611: #ifndef __GNUC__
                   3612:        choke me
                   3613: #endif
1.14      bertrand 3614: 
1.15      bertrand 3615:   ;
                   3616:   return 0;
                   3617: }
                   3618: _ACEOF
                   3619: if ac_fn_c_try_compile "$LINENO"; then :
                   3620:   ac_compiler_gnu=yes
1.14      bertrand 3621: else
1.15      bertrand 3622:   ac_compiler_gnu=no
1.14      bertrand 3623: fi
1.15      bertrand 3624: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3625: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3626: 
1.15      bertrand 3627: fi
                   3628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3629: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3630: if test $ac_compiler_gnu = yes; then
                   3631:   GCC=yes
1.14      bertrand 3632: else
1.15      bertrand 3633:   GCC=
1.14      bertrand 3634: fi
1.15      bertrand 3635: ac_test_CFLAGS=${CFLAGS+set}
                   3636: ac_save_CFLAGS=$CFLAGS
                   3637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3638: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3639: if test "${ac_cv_prog_cc_g+set}" = set; then :
                   3640:   $as_echo_n "(cached) " >&6
                   3641: else
                   3642:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3643:    ac_c_werror_flag=yes
                   3644:    ac_cv_prog_cc_g=no
                   3645:    CFLAGS="-g"
                   3646:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3647: /* end confdefs.h.  */
1.14      bertrand 3648: 
1.15      bertrand 3649: int
                   3650: main ()
                   3651: {
1.14      bertrand 3652: 
1.15      bertrand 3653:   ;
                   3654:   return 0;
                   3655: }
                   3656: _ACEOF
                   3657: if ac_fn_c_try_compile "$LINENO"; then :
                   3658:   ac_cv_prog_cc_g=yes
                   3659: else
                   3660:   CFLAGS=""
                   3661:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3662: /* end confdefs.h.  */
1.14      bertrand 3663: 
1.15      bertrand 3664: int
                   3665: main ()
                   3666: {
1.14      bertrand 3667: 
1.15      bertrand 3668:   ;
                   3669:   return 0;
                   3670: }
                   3671: _ACEOF
                   3672: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3673: 
1.15      bertrand 3674: else
                   3675:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3676:     CFLAGS="-g"
                   3677:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3678: /* end confdefs.h.  */
1.14      bertrand 3679: 
1.15      bertrand 3680: int
                   3681: main ()
                   3682: {
1.14      bertrand 3683: 
1.15      bertrand 3684:   ;
                   3685:   return 0;
                   3686: }
                   3687: _ACEOF
                   3688: if ac_fn_c_try_compile "$LINENO"; then :
                   3689:   ac_cv_prog_cc_g=yes
                   3690: fi
                   3691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3692: fi
                   3693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3694: fi
                   3695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3696:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3697: fi
                   3698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3699: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3700: if test "$ac_test_CFLAGS" = set; then
                   3701:   CFLAGS=$ac_save_CFLAGS
                   3702: elif test $ac_cv_prog_cc_g = yes; then
                   3703:   if test "$GCC" = yes; then
                   3704:     CFLAGS="-g -O2"
                   3705:   else
                   3706:     CFLAGS="-g"
                   3707:   fi
                   3708: else
                   3709:   if test "$GCC" = yes; then
                   3710:     CFLAGS="-O2"
                   3711:   else
                   3712:     CFLAGS=
                   3713:   fi
                   3714: fi
                   3715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3716: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3717: if test "${ac_cv_prog_cc_c89+set}" = set; then :
                   3718:   $as_echo_n "(cached) " >&6
1.1       bertrand 3719: else
1.15      bertrand 3720:   ac_cv_prog_cc_c89=no
                   3721: ac_save_CC=$CC
                   3722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3723: /* end confdefs.h.  */
1.15      bertrand 3724: #include <stdarg.h>
                   3725: #include <stdio.h>
                   3726: #include <sys/types.h>
                   3727: #include <sys/stat.h>
                   3728: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3729: struct buf { int x; };
                   3730: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3731: static char *e (p, i)
                   3732:      char **p;
                   3733:      int i;
                   3734: {
                   3735:   return p[i];
                   3736: }
                   3737: static char *f (char * (*g) (char **, int), char **p, ...)
                   3738: {
                   3739:   char *s;
                   3740:   va_list v;
                   3741:   va_start (v,p);
                   3742:   s = g (p, va_arg (v,int));
                   3743:   va_end (v);
                   3744:   return s;
                   3745: }
                   3746: 
                   3747: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3748:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3749:    These don't provoke an error unfortunately, instead are silently treated
                   3750:    as 'x'.  The following induces an error, until -std is added to get
                   3751:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3752:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3753:    that's true only with -std.  */
                   3754: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3755: 
1.15      bertrand 3756: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3757:    inside strings and character constants.  */
                   3758: #define FOO(x) 'x'
                   3759: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3760: 
1.15      bertrand 3761: int test (int i, double x);
                   3762: struct s1 {int (*f) (int a);};
                   3763: struct s2 {int (*f) (double a);};
                   3764: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3765: int argc;
                   3766: char **argv;
1.14      bertrand 3767: int
                   3768: main ()
                   3769: {
1.15      bertrand 3770: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3771:   ;
                   3772:   return 0;
                   3773: }
                   3774: _ACEOF
1.15      bertrand 3775: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3776:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3777: do
                   3778:   CC="$ac_save_CC $ac_arg"
                   3779:   if ac_fn_c_try_compile "$LINENO"; then :
                   3780:   ac_cv_prog_cc_c89=$ac_arg
                   3781: fi
                   3782: rm -f core conftest.err conftest.$ac_objext
                   3783:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3784: done
                   3785: rm -f conftest.$ac_ext
                   3786: CC=$ac_save_CC
                   3787: 
                   3788: fi
                   3789: # AC_CACHE_VAL
                   3790: case "x$ac_cv_prog_cc_c89" in
                   3791:   x)
                   3792:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3793: $as_echo "none needed" >&6; } ;;
                   3794:   xno)
                   3795:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3796: $as_echo "unsupported" >&6; } ;;
                   3797:   *)
                   3798:     CC="$CC $ac_cv_prog_cc_c89"
                   3799:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3800: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3801: esac
1.15      bertrand 3802: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3803: 
                   3804: fi
                   3805: 
1.15      bertrand 3806: ac_ext=c
                   3807: ac_cpp='$CPP $CPPFLAGS'
                   3808: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3809: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3810: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3811: DEPDIR="${am__leading_dot}deps"
                   3812: 
                   3813: ac_config_commands="$ac_config_commands depfiles"
                   3814: 
                   3815: 
                   3816: am_make=${MAKE-make}
                   3817: cat > confinc << 'END'
                   3818: am__doit:
                   3819:    @echo this is the am__doit target
                   3820: .PHONY: am__doit
                   3821: END
                   3822: # If we don't find an include directive, just comment out the code.
                   3823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3824: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3825: am__include="#"
                   3826: am__quote=
                   3827: _am_result=none
                   3828: # First try GNU make style include.
                   3829: echo "include confinc" > confmf
                   3830: # Ignore all kinds of additional output from `make'.
                   3831: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3832: *the\ am__doit\ target*)
                   3833:   am__include=include
                   3834:   am__quote=
                   3835:   _am_result=GNU
                   3836:   ;;
                   3837: esac
                   3838: # Now try BSD make style include.
                   3839: if test "$am__include" = "#"; then
                   3840:    echo '.include "confinc"' > confmf
                   3841:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3842:    *the\ am__doit\ target*)
                   3843:      am__include=.include
                   3844:      am__quote="\""
                   3845:      _am_result=BSD
                   3846:      ;;
                   3847:    esac
1.14      bertrand 3848: fi
                   3849: 
                   3850: 
1.15      bertrand 3851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3852: $as_echo "$_am_result" >&6; }
                   3853: rm -f confinc confmf
                   3854: 
                   3855: # Check whether --enable-dependency-tracking was given.
                   3856: if test "${enable_dependency_tracking+set}" = set; then :
                   3857:   enableval=$enable_dependency_tracking;
                   3858: fi
                   3859: 
                   3860: if test "x$enable_dependency_tracking" != xno; then
                   3861:   am_depcomp="$ac_aux_dir/depcomp"
                   3862:   AMDEPBACKSLASH='\'
                   3863: fi
                   3864:  if test "x$enable_dependency_tracking" != xno; then
                   3865:   AMDEP_TRUE=
                   3866:   AMDEP_FALSE='#'
1.1       bertrand 3867: else
1.15      bertrand 3868:   AMDEP_TRUE='#'
                   3869:   AMDEP_FALSE=
1.14      bertrand 3870: fi
1.1       bertrand 3871: 
1.14      bertrand 3872: 
                   3873: 
1.15      bertrand 3874: depcc="$CC"   am_compiler_list=
1.14      bertrand 3875: 
1.15      bertrand 3876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3877: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   3878: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
                   3879:   $as_echo_n "(cached) " >&6
1.14      bertrand 3880: else
1.15      bertrand 3881:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3882:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3883:   # making bogus files that we don't know about and never remove.  For
                   3884:   # instance it was reported that on HP-UX the gcc test will end up
                   3885:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3886:   # in D'.
                   3887:   mkdir conftest.dir
                   3888:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3889:   # using a relative directory.
                   3890:   cp "$am_depcomp" conftest.dir
                   3891:   cd conftest.dir
                   3892:   # We will build objects and dependencies in a subdirectory because
                   3893:   # it helps to detect inapplicable dependency modes.  For instance
                   3894:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3895:   # side effect of compilation, but ICC will put the dependencies in
                   3896:   # the current directory while Tru64 will put them in the object
                   3897:   # directory.
                   3898:   mkdir sub
1.14      bertrand 3899: 
1.15      bertrand 3900:   am_cv_CC_dependencies_compiler_type=none
                   3901:   if test "$am_compiler_list" = ""; then
                   3902:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3903:   fi
                   3904:   am__universal=false
                   3905:   case " $depcc " in #(
                   3906:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3907:      esac
1.14      bertrand 3908: 
1.15      bertrand 3909:   for depmode in $am_compiler_list; do
                   3910:     # Setup a source with many dependencies, because some compilers
                   3911:     # like to wrap large dependency lists on column 80 (with \), and
                   3912:     # we should not choose a depcomp mode which is confused by this.
                   3913:     #
                   3914:     # We need to recreate these files for each test, as the compiler may
                   3915:     # overwrite some of them when testing with obscure command lines.
                   3916:     # This happens at least with the AIX C compiler.
                   3917:     : > sub/conftest.c
                   3918:     for i in 1 2 3 4 5 6; do
                   3919:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3920:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3921:       # Solaris 8's {/usr,}/bin/sh.
                   3922:       touch sub/conftst$i.h
                   3923:     done
                   3924:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3925: 
1.15      bertrand 3926:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3927:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3928:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3929:     # versions had trouble with output in subdirs
                   3930:     am__obj=sub/conftest.${OBJEXT-o}
                   3931:     am__minus_obj="-o $am__obj"
                   3932:     case $depmode in
                   3933:     gcc)
                   3934:       # This depmode causes a compiler race in universal mode.
                   3935:       test "$am__universal" = false || continue
                   3936:       ;;
                   3937:     nosideeffect)
                   3938:       # after this tag, mechanisms are not by side-effect, so they'll
                   3939:       # only be used when explicitly requested
                   3940:       if test "x$enable_dependency_tracking" = xyes; then
                   3941:    continue
                   3942:       else
                   3943:    break
                   3944:       fi
                   3945:       ;;
                   3946:     msvisualcpp | msvcmsys)
                   3947:       # This compiler won't grok `-c -o', but also, the minuso test has
                   3948:       # not run yet.  These depmodes are late enough in the game, and
                   3949:       # so weak that their functioning should not be impacted.
                   3950:       am__obj=conftest.${OBJEXT-o}
                   3951:       am__minus_obj=
                   3952:       ;;
                   3953:     none) break ;;
                   3954:     esac
                   3955:     if depmode=$depmode \
                   3956:        source=sub/conftest.c object=$am__obj \
                   3957:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   3958:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   3959:          >/dev/null 2>conftest.err &&
                   3960:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   3961:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   3962:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   3963:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   3964:       # icc doesn't choke on unknown options, it will just issue warnings
                   3965:       # or remarks (even with -Werror).  So we grep stderr for any message
                   3966:       # that says an option was ignored or not supported.
                   3967:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   3968:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   3969:       # The diagnosis changed in icc 8.0:
                   3970:       #   icc: Command line remark: option '-MP' not supported
                   3971:       if (grep 'ignoring option' conftest.err ||
                   3972:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   3973:         am_cv_CC_dependencies_compiler_type=$depmode
                   3974:         break
                   3975:       fi
                   3976:     fi
                   3977:   done
1.14      bertrand 3978: 
1.15      bertrand 3979:   cd ..
                   3980:   rm -rf conftest.dir
1.14      bertrand 3981: else
1.15      bertrand 3982:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 3983: fi
                   3984: 
1.15      bertrand 3985: fi
                   3986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   3987: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   3988: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 3989: 
1.15      bertrand 3990:  if
                   3991:   test "x$enable_dependency_tracking" != xno \
                   3992:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   3993:   am__fastdepCC_TRUE=
                   3994:   am__fastdepCC_FALSE='#'
1.1       bertrand 3995: else
1.15      bertrand 3996:   am__fastdepCC_TRUE='#'
                   3997:   am__fastdepCC_FALSE=
                   3998: fi
                   3999: 
1.1       bertrand 4000: 
                   4001: 
1.15      bertrand 4002: if test x"$CC" != x""; then
                   4003:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4004:            awk -F. '{ printf("%s", $1);}'`
                   4005:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4006:            awk -F. '{ printf("%s", $2);}'`
1.23    ! bertrand 4007:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4008:        OPTIMISATION_C=-O3
                   4009:    else
1.23    ! bertrand 4010:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
        !          4011:                then
1.15      bertrand 4012:            OPTIMISATION_C=-O3
                   4013:        else
1.23    ! bertrand 4014:            if test $GCC_VERSION_MAJEURE -ge 2; then
        !          4015:                OPTIMISATION_C=-O2
        !          4016:            else
        !          4017:                as_fn_error "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
        !          4018:            fi
1.15      bertrand 4019:        fi
                   4020:    fi
1.14      bertrand 4021: fi
                   4022: 
1.15      bertrand 4023: if test "x$CC" != xcc; then
                   4024:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4025: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4026: else
1.15      bertrand 4027:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4028: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4029: fi
1.15      bertrand 4030: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4031:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4032: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
                   4033:   $as_echo_n "(cached) " >&6
1.1       bertrand 4034: else
1.15      bertrand 4035:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4036: /* end confdefs.h.  */
                   4037: 
                   4038: int
                   4039: main ()
                   4040: {
1.15      bertrand 4041: 
1.1       bertrand 4042:   ;
                   4043:   return 0;
                   4044: }
                   4045: _ACEOF
1.15      bertrand 4046: # Make sure it works both with $CC and with simple cc.
                   4047: # We do the test twice because some compilers refuse to overwrite an
                   4048: # existing .o file with -o, though they will create one.
                   4049: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4050: rm -f conftest2.*
                   4051: if { { case "(($ac_try" in
                   4052:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4053:   *) ac_try_echo=$ac_try;;
                   4054: esac
                   4055: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4056: $as_echo "$ac_try_echo"; } >&5
                   4057:   (eval "$ac_try") 2>&5
                   4058:   ac_status=$?
                   4059:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4060:   test $ac_status = 0; } &&
                   4061:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4062:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4063:   *) ac_try_echo=$ac_try;;
                   4064: esac
                   4065: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4066: $as_echo "$ac_try_echo"; } >&5
                   4067:   (eval "$ac_try") 2>&5
                   4068:   ac_status=$?
                   4069:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4070:   test $ac_status = 0; };
                   4071: then
                   4072:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4073:   if test "x$CC" != xcc; then
                   4074:     # Test first that cc exists at all.
                   4075:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4076:   { { case "(($ac_try" in
                   4077:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4078:   *) ac_try_echo=$ac_try;;
                   4079: esac
                   4080: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4081: $as_echo "$ac_try_echo"; } >&5
                   4082:   (eval "$ac_try") 2>&5
                   4083:   ac_status=$?
                   4084:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4085:   test $ac_status = 0; }; }; then
                   4086:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4087:       rm -f conftest2.*
                   4088:       if { { case "(($ac_try" in
                   4089:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4090:   *) ac_try_echo=$ac_try;;
                   4091: esac
                   4092: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4093: $as_echo "$ac_try_echo"; } >&5
                   4094:   (eval "$ac_try") 2>&5
                   4095:   ac_status=$?
                   4096:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4097:   test $ac_status = 0; } &&
                   4098:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4099:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4100:   *) ac_try_echo=$ac_try;;
                   4101: esac
1.15      bertrand 4102: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4103: $as_echo "$ac_try_echo"; } >&5
                   4104:   (eval "$ac_try") 2>&5
1.14      bertrand 4105:   ac_status=$?
1.15      bertrand 4106:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4107:   test $ac_status = 0; };
                   4108:       then
                   4109:    # cc works too.
                   4110:    :
                   4111:       else
                   4112:    # cc exists but doesn't like -o.
                   4113:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4114:       fi
                   4115:     fi
                   4116:   fi
1.1       bertrand 4117: else
1.15      bertrand 4118:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4119: fi
                   4120: rm -f core conftest*
1.14      bertrand 4121: 
1.1       bertrand 4122: fi
1.15      bertrand 4123: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4125: $as_echo "yes" >&6; }
                   4126: else
                   4127:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4128: $as_echo "no" >&6; }
                   4129: 
                   4130: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4131: 
                   4132: fi
1.15      bertrand 4133: 
                   4134: # FIXME: we rely on the cache variable name because
                   4135: # there is no other way.
                   4136: set dummy $CC
                   4137: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4138: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4139: if test "$am_t" != yes; then
                   4140:    # Losing compiler, so override with the script.
                   4141:    # FIXME: It is wrong to rewrite CC.
                   4142:    # But if we don't then we get into trouble of one sort or another.
                   4143:    # A longer-term fix would be to have automake use am__CC in this case,
                   4144:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4145:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4146: fi
1.14      bertrand 4147: 
                   4148: 
1.15      bertrand 4149: 
                   4150: if test "$GCC" != yes; then
                   4151:    as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
                   4152: fi
                   4153: 
                   4154: ac_ext=cpp
                   4155: ac_cpp='$CXXCPP $CPPFLAGS'
                   4156: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4157: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4158: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4159: if test -z "$CXX"; then
                   4160:   if test -n "$CCC"; then
                   4161:     CXX=$CCC
                   4162:   else
                   4163:     if test -n "$ac_tool_prefix"; then
1.23    ! bertrand 4164:   for ac_prog in g++
1.15      bertrand 4165:   do
                   4166:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4167: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4169: $as_echo_n "checking for $ac_word... " >&6; }
                   4170: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4171:   $as_echo_n "(cached) " >&6
1.1       bertrand 4172: else
1.15      bertrand 4173:   if test -n "$CXX"; then
                   4174:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4175: else
1.15      bertrand 4176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4177: for as_dir in $PATH
                   4178: do
                   4179:   IFS=$as_save_IFS
                   4180:   test -z "$as_dir" && as_dir=.
                   4181:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4182:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4183:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4184:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4185:     break 2
                   4186:   fi
                   4187: done
                   4188:   done
                   4189: IFS=$as_save_IFS
1.14      bertrand 4190: 
                   4191: fi
                   4192: fi
1.15      bertrand 4193: CXX=$ac_cv_prog_CXX
                   4194: if test -n "$CXX"; then
                   4195:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4196: $as_echo "$CXX" >&6; }
1.14      bertrand 4197: else
1.15      bertrand 4198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4199: $as_echo "no" >&6; }
1.14      bertrand 4200: fi
                   4201: 
                   4202: 
1.15      bertrand 4203:     test -n "$CXX" && break
                   4204:   done
                   4205: fi
                   4206: if test -z "$CXX"; then
                   4207:   ac_ct_CXX=$CXX
1.23    ! bertrand 4208:   for ac_prog in g++
1.15      bertrand 4209: do
                   4210:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4211: set dummy $ac_prog; ac_word=$2
                   4212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4213: $as_echo_n "checking for $ac_word... " >&6; }
                   4214: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4215:   $as_echo_n "(cached) " >&6
                   4216: else
                   4217:   if test -n "$ac_ct_CXX"; then
                   4218:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4219: else
                   4220: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4221: for as_dir in $PATH
                   4222: do
                   4223:   IFS=$as_save_IFS
                   4224:   test -z "$as_dir" && as_dir=.
                   4225:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4226:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4227:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4228:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4229:     break 2
                   4230:   fi
                   4231: done
                   4232:   done
                   4233: IFS=$as_save_IFS
1.14      bertrand 4234: 
1.15      bertrand 4235: fi
                   4236: fi
                   4237: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4238: if test -n "$ac_ct_CXX"; then
                   4239:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4240: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4241: else
1.15      bertrand 4242:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4243: $as_echo "no" >&6; }
1.14      bertrand 4244: fi
                   4245: 
                   4246: 
1.15      bertrand 4247:   test -n "$ac_ct_CXX" && break
                   4248: done
1.14      bertrand 4249: 
1.15      bertrand 4250:   if test "x$ac_ct_CXX" = x; then
                   4251:     CXX="g++"
                   4252:   else
                   4253:     case $cross_compiling:$ac_tool_warned in
                   4254: yes:)
                   4255: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4256: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4257: ac_tool_warned=yes ;;
                   4258: esac
                   4259:     CXX=$ac_ct_CXX
                   4260:   fi
                   4261: fi
1.1       bertrand 4262: 
1.15      bertrand 4263:   fi
                   4264: fi
                   4265: # Provide some information about the compiler.
                   4266: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4267: set X $ac_compile
                   4268: ac_compiler=$2
                   4269: for ac_option in --version -v -V -qversion; do
                   4270:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4271: case "(($ac_try" in
                   4272:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4273:   *) ac_try_echo=$ac_try;;
                   4274: esac
1.15      bertrand 4275: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4276: $as_echo "$ac_try_echo"; } >&5
                   4277:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4278:   ac_status=$?
1.15      bertrand 4279:   if test -s conftest.err; then
                   4280:     sed '10a\
                   4281: ... rest of stderr output deleted ...
                   4282:          10q' conftest.err >conftest.er1
                   4283:     cat conftest.er1 >&5
                   4284:   fi
                   4285:   rm -f conftest.er1 conftest.err
                   4286:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4287:   test $ac_status = 0; }
                   4288: done
                   4289: 
                   4290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4291: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4292: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4293:   $as_echo_n "(cached) " >&6
1.14      bertrand 4294: else
1.15      bertrand 4295:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4296: /* end confdefs.h.  */
1.1       bertrand 4297: 
                   4298: int
                   4299: main ()
                   4300: {
1.15      bertrand 4301: #ifndef __GNUC__
                   4302:        choke me
                   4303: #endif
1.1       bertrand 4304: 
                   4305:   ;
                   4306:   return 0;
                   4307: }
                   4308: _ACEOF
1.15      bertrand 4309: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4310:   ac_compiler_gnu=yes
1.1       bertrand 4311: else
1.15      bertrand 4312:   ac_compiler_gnu=no
1.1       bertrand 4313: fi
1.14      bertrand 4314: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4315: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4316: 
1.15      bertrand 4317: fi
                   4318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4319: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4320: if test $ac_compiler_gnu = yes; then
                   4321:   GXX=yes
                   4322: else
                   4323:   GXX=
                   4324: fi
                   4325: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4326: ac_save_CXXFLAGS=$CXXFLAGS
                   4327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4328: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4329: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4330:   $as_echo_n "(cached) " >&6
                   4331: else
                   4332:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4333:    ac_cxx_werror_flag=yes
                   4334:    ac_cv_prog_cxx_g=no
                   4335:    CXXFLAGS="-g"
                   4336:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4337: /* end confdefs.h.  */
1.15      bertrand 4338: 
1.1       bertrand 4339: int
                   4340: main ()
                   4341: {
1.14      bertrand 4342: 
1.1       bertrand 4343:   ;
                   4344:   return 0;
                   4345: }
                   4346: _ACEOF
1.15      bertrand 4347: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4348:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4349: else
1.15      bertrand 4350:   CXXFLAGS=""
                   4351:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4352: /* end confdefs.h.  */
1.1       bertrand 4353: 
1.14      bertrand 4354: int
                   4355: main ()
                   4356: {
1.1       bertrand 4357: 
1.14      bertrand 4358:   ;
                   4359:   return 0;
                   4360: }
                   4361: _ACEOF
1.15      bertrand 4362: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4363: 
                   4364: else
1.15      bertrand 4365:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4366:     CXXFLAGS="-g"
                   4367:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4368: /* end confdefs.h.  */
1.1       bertrand 4369: 
1.14      bertrand 4370: int
                   4371: main ()
                   4372: {
1.1       bertrand 4373: 
1.14      bertrand 4374:   ;
                   4375:   return 0;
                   4376: }
                   4377: _ACEOF
1.15      bertrand 4378: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4379:   ac_cv_prog_cxx_g=yes
                   4380: fi
                   4381: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4382: fi
                   4383: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4384: fi
                   4385: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4386:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4387: fi
                   4388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4389: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4390: if test "$ac_test_CXXFLAGS" = set; then
                   4391:   CXXFLAGS=$ac_save_CXXFLAGS
                   4392: elif test $ac_cv_prog_cxx_g = yes; then
                   4393:   if test "$GXX" = yes; then
                   4394:     CXXFLAGS="-g -O2"
                   4395:   else
                   4396:     CXXFLAGS="-g"
                   4397:   fi
                   4398: else
                   4399:   if test "$GXX" = yes; then
                   4400:     CXXFLAGS="-O2"
                   4401:   else
                   4402:     CXXFLAGS=
                   4403:   fi
                   4404: fi
                   4405: ac_ext=c
                   4406: ac_cpp='$CPP $CPPFLAGS'
                   4407: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4408: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4409: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4410: 
                   4411: depcc="$CXX"  am_compiler_list=
                   4412: 
                   4413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4414: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4415: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4416:   $as_echo_n "(cached) " >&6
                   4417: else
                   4418:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4419:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4420:   # making bogus files that we don't know about and never remove.  For
                   4421:   # instance it was reported that on HP-UX the gcc test will end up
                   4422:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4423:   # in D'.
                   4424:   mkdir conftest.dir
                   4425:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4426:   # using a relative directory.
                   4427:   cp "$am_depcomp" conftest.dir
                   4428:   cd conftest.dir
                   4429:   # We will build objects and dependencies in a subdirectory because
                   4430:   # it helps to detect inapplicable dependency modes.  For instance
                   4431:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4432:   # side effect of compilation, but ICC will put the dependencies in
                   4433:   # the current directory while Tru64 will put them in the object
                   4434:   # directory.
                   4435:   mkdir sub
                   4436: 
                   4437:   am_cv_CXX_dependencies_compiler_type=none
                   4438:   if test "$am_compiler_list" = ""; then
                   4439:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4440:   fi
                   4441:   am__universal=false
                   4442:   case " $depcc " in #(
                   4443:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4444:      esac
                   4445: 
                   4446:   for depmode in $am_compiler_list; do
                   4447:     # Setup a source with many dependencies, because some compilers
                   4448:     # like to wrap large dependency lists on column 80 (with \), and
                   4449:     # we should not choose a depcomp mode which is confused by this.
                   4450:     #
                   4451:     # We need to recreate these files for each test, as the compiler may
                   4452:     # overwrite some of them when testing with obscure command lines.
                   4453:     # This happens at least with the AIX C compiler.
                   4454:     : > sub/conftest.c
                   4455:     for i in 1 2 3 4 5 6; do
                   4456:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4457:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4458:       # Solaris 8's {/usr,}/bin/sh.
                   4459:       touch sub/conftst$i.h
                   4460:     done
                   4461:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4462: 
                   4463:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4464:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4465:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4466:     # versions had trouble with output in subdirs
                   4467:     am__obj=sub/conftest.${OBJEXT-o}
                   4468:     am__minus_obj="-o $am__obj"
                   4469:     case $depmode in
                   4470:     gcc)
                   4471:       # This depmode causes a compiler race in universal mode.
                   4472:       test "$am__universal" = false || continue
                   4473:       ;;
                   4474:     nosideeffect)
                   4475:       # after this tag, mechanisms are not by side-effect, so they'll
                   4476:       # only be used when explicitly requested
                   4477:       if test "x$enable_dependency_tracking" = xyes; then
                   4478:    continue
                   4479:       else
                   4480:    break
                   4481:       fi
                   4482:       ;;
                   4483:     msvisualcpp | msvcmsys)
                   4484:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4485:       # not run yet.  These depmodes are late enough in the game, and
                   4486:       # so weak that their functioning should not be impacted.
                   4487:       am__obj=conftest.${OBJEXT-o}
                   4488:       am__minus_obj=
                   4489:       ;;
                   4490:     none) break ;;
                   4491:     esac
                   4492:     if depmode=$depmode \
                   4493:        source=sub/conftest.c object=$am__obj \
                   4494:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4495:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4496:          >/dev/null 2>conftest.err &&
                   4497:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4498:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4499:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4500:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4501:       # icc doesn't choke on unknown options, it will just issue warnings
                   4502:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4503:       # that says an option was ignored or not supported.
                   4504:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4505:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4506:       # The diagnosis changed in icc 8.0:
                   4507:       #   icc: Command line remark: option '-MP' not supported
                   4508:       if (grep 'ignoring option' conftest.err ||
                   4509:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4510:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4511:         break
                   4512:       fi
                   4513:     fi
                   4514:   done
                   4515: 
                   4516:   cd ..
                   4517:   rm -rf conftest.dir
                   4518: else
                   4519:   am_cv_CXX_dependencies_compiler_type=none
                   4520: fi
                   4521: 
                   4522: fi
                   4523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4524: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4525: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4526: 
                   4527:  if
                   4528:   test "x$enable_dependency_tracking" != xno \
                   4529:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4530:   am__fastdepCXX_TRUE=
                   4531:   am__fastdepCXX_FALSE='#'
                   4532: else
                   4533:   am__fastdepCXX_TRUE='#'
                   4534:   am__fastdepCXX_FALSE=
                   4535: fi
                   4536: 
                   4537: 
                   4538: 
                   4539: if test "$GXX" != yes; then
                   4540:    as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
                   4541: fi
                   4542: 
                   4543: ac_ext=f
                   4544: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4545: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4546: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4547: if test -n "$ac_tool_prefix"; then
1.23    ! bertrand 4548:   for ac_prog in gfortran
1.15      bertrand 4549:   do
                   4550:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4551: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4553: $as_echo_n "checking for $ac_word... " >&6; }
                   4554: if test "${ac_cv_prog_F77+set}" = set; then :
                   4555:   $as_echo_n "(cached) " >&6
                   4556: else
                   4557:   if test -n "$F77"; then
                   4558:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4559: else
                   4560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4561: for as_dir in $PATH
                   4562: do
                   4563:   IFS=$as_save_IFS
                   4564:   test -z "$as_dir" && as_dir=.
                   4565:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4566:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4567:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4568:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4569:     break 2
                   4570:   fi
                   4571: done
                   4572:   done
                   4573: IFS=$as_save_IFS
                   4574: 
                   4575: fi
                   4576: fi
                   4577: F77=$ac_cv_prog_F77
                   4578: if test -n "$F77"; then
                   4579:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4580: $as_echo "$F77" >&6; }
                   4581: else
                   4582:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4583: $as_echo "no" >&6; }
                   4584: fi
                   4585: 
                   4586: 
                   4587:     test -n "$F77" && break
                   4588:   done
                   4589: fi
                   4590: if test -z "$F77"; then
                   4591:   ac_ct_F77=$F77
1.23    ! bertrand 4592:   for ac_prog in gfortran
1.15      bertrand 4593: do
                   4594:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4595: set dummy $ac_prog; ac_word=$2
                   4596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4597: $as_echo_n "checking for $ac_word... " >&6; }
                   4598: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4599:   $as_echo_n "(cached) " >&6
                   4600: else
                   4601:   if test -n "$ac_ct_F77"; then
                   4602:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4603: else
                   4604: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4605: for as_dir in $PATH
                   4606: do
                   4607:   IFS=$as_save_IFS
                   4608:   test -z "$as_dir" && as_dir=.
                   4609:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4610:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4611:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4612:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4613:     break 2
                   4614:   fi
                   4615: done
                   4616:   done
                   4617: IFS=$as_save_IFS
                   4618: 
                   4619: fi
                   4620: fi
                   4621: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4622: if test -n "$ac_ct_F77"; then
                   4623:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4624: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4625: else
1.15      bertrand 4626:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4627: $as_echo "no" >&6; }
                   4628: fi
                   4629: 
                   4630: 
                   4631:   test -n "$ac_ct_F77" && break
                   4632: done
1.1       bertrand 4633: 
1.15      bertrand 4634:   if test "x$ac_ct_F77" = x; then
                   4635:     F77=""
                   4636:   else
                   4637:     case $cross_compiling:$ac_tool_warned in
                   4638: yes:)
                   4639: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4640: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4641: ac_tool_warned=yes ;;
                   4642: esac
                   4643:     F77=$ac_ct_F77
                   4644:   fi
1.14      bertrand 4645: fi
1.1       bertrand 4646: 
                   4647: 
1.15      bertrand 4648: # Provide some information about the compiler.
                   4649: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4650: set X $ac_compile
                   4651: ac_compiler=$2
                   4652: for ac_option in --version -v -V -qversion; do
                   4653:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4654: case "(($ac_try" in
                   4655:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4656:   *) ac_try_echo=$ac_try;;
                   4657: esac
1.15      bertrand 4658: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4659: $as_echo "$ac_try_echo"; } >&5
                   4660:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4661:   ac_status=$?
1.15      bertrand 4662:   if test -s conftest.err; then
                   4663:     sed '10a\
                   4664: ... rest of stderr output deleted ...
                   4665:          10q' conftest.err >conftest.er1
                   4666:     cat conftest.er1 >&5
                   4667:   fi
                   4668:   rm -f conftest.er1 conftest.err
                   4669:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4670:   test $ac_status = 0; }
                   4671: done
                   4672: rm -f a.out
                   4673: 
                   4674: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4675: # input file.  (Note that this only needs to work for GNU compilers.)
                   4676: ac_save_ext=$ac_ext
                   4677: ac_ext=F
                   4678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4679: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4680: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4681:   $as_echo_n "(cached) " >&6
1.1       bertrand 4682: else
1.15      bertrand 4683:   cat > conftest.$ac_ext <<_ACEOF
                   4684:       program main
                   4685: #ifndef __GNUC__
                   4686:        choke me
                   4687: #endif
1.14      bertrand 4688: 
1.15      bertrand 4689:       end
                   4690: _ACEOF
                   4691: if ac_fn_f77_try_compile "$LINENO"; then :
                   4692:   ac_compiler_gnu=yes
                   4693: else
                   4694:   ac_compiler_gnu=no
1.1       bertrand 4695: fi
1.15      bertrand 4696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4697: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4698: 
                   4699: fi
1.15      bertrand 4700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4701: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4702: ac_ext=$ac_save_ext
                   4703: ac_test_FFLAGS=${FFLAGS+set}
                   4704: ac_save_FFLAGS=$FFLAGS
                   4705: FFLAGS=
                   4706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4707: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4708: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4709:   $as_echo_n "(cached) " >&6
                   4710: else
                   4711:   FFLAGS=-g
                   4712: cat > conftest.$ac_ext <<_ACEOF
                   4713:       program main
1.1       bertrand 4714: 
1.15      bertrand 4715:       end
1.14      bertrand 4716: _ACEOF
1.15      bertrand 4717: if ac_fn_f77_try_compile "$LINENO"; then :
                   4718:   ac_cv_prog_f77_g=yes
1.1       bertrand 4719: else
1.15      bertrand 4720:   ac_cv_prog_f77_g=no
1.1       bertrand 4721: fi
1.15      bertrand 4722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4723: 
                   4724: fi
1.15      bertrand 4725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4726: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4727: if test "$ac_test_FFLAGS" = set; then
                   4728:   FFLAGS=$ac_save_FFLAGS
                   4729: elif test $ac_cv_prog_f77_g = yes; then
                   4730:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4731:     FFLAGS="-g -O2"
                   4732:   else
                   4733:     FFLAGS="-g"
                   4734:   fi
                   4735: else
                   4736:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4737:     FFLAGS="-O2"
                   4738:   else
                   4739:     FFLAGS=
                   4740:   fi
1.1       bertrand 4741: fi
                   4742: 
1.15      bertrand 4743: if test $ac_compiler_gnu = yes; then
                   4744:   G77=yes
1.1       bertrand 4745: else
1.15      bertrand 4746:   G77=
1.1       bertrand 4747: fi
1.15      bertrand 4748: ac_ext=c
                   4749: ac_cpp='$CPP $CPPFLAGS'
                   4750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4753: 
                   4754: 
1.15      bertrand 4755: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                   4756:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
                   4757: fi
1.14      bertrand 4758: 
1.15      bertrand 4759: ac_ext=${ac_fc_srcext-f}
                   4760: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4761: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4762: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4763: if test -n "$ac_tool_prefix"; then
1.23    ! bertrand 4764:   for ac_prog in gfortran
1.15      bertrand 4765:   do
                   4766:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4767: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4769: $as_echo_n "checking for $ac_word... " >&6; }
                   4770: if test "${ac_cv_prog_FC+set}" = set; then :
                   4771:   $as_echo_n "(cached) " >&6
                   4772: else
                   4773:   if test -n "$FC"; then
                   4774:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4775: else
1.15      bertrand 4776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4777: for as_dir in $PATH
                   4778: do
                   4779:   IFS=$as_save_IFS
                   4780:   test -z "$as_dir" && as_dir=.
                   4781:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4782:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4783:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4784:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4785:     break 2
                   4786:   fi
                   4787: done
                   4788:   done
                   4789: IFS=$as_save_IFS
1.1       bertrand 4790: 
                   4791: fi
1.15      bertrand 4792: fi
                   4793: FC=$ac_cv_prog_FC
                   4794: if test -n "$FC"; then
                   4795:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4796: $as_echo "$FC" >&6; }
1.14      bertrand 4797: else
1.15      bertrand 4798:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4799: $as_echo "no" >&6; }
1.14      bertrand 4800: fi
                   4801: 
1.1       bertrand 4802: 
1.15      bertrand 4803:     test -n "$FC" && break
                   4804:   done
                   4805: fi
                   4806: if test -z "$FC"; then
                   4807:   ac_ct_FC=$FC
1.23    ! bertrand 4808:   for ac_prog in gfortran
1.15      bertrand 4809: do
                   4810:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4811: set dummy $ac_prog; ac_word=$2
                   4812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4813: $as_echo_n "checking for $ac_word... " >&6; }
                   4814: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4815:   $as_echo_n "(cached) " >&6
                   4816: else
                   4817:   if test -n "$ac_ct_FC"; then
                   4818:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4819: else
                   4820: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4821: for as_dir in $PATH
                   4822: do
                   4823:   IFS=$as_save_IFS
                   4824:   test -z "$as_dir" && as_dir=.
                   4825:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4826:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4827:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4828:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4829:     break 2
                   4830:   fi
                   4831: done
                   4832:   done
                   4833: IFS=$as_save_IFS
1.1       bertrand 4834: 
1.15      bertrand 4835: fi
                   4836: fi
                   4837: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4838: if test -n "$ac_ct_FC"; then
                   4839:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4840: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4841: else
1.15      bertrand 4842:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4843: $as_echo "no" >&6; }
1.1       bertrand 4844: fi
1.14      bertrand 4845: 
1.1       bertrand 4846: 
1.15      bertrand 4847:   test -n "$ac_ct_FC" && break
                   4848: done
1.1       bertrand 4849: 
1.15      bertrand 4850:   if test "x$ac_ct_FC" = x; then
                   4851:     FC=""
                   4852:   else
                   4853:     case $cross_compiling:$ac_tool_warned in
                   4854: yes:)
                   4855: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4856: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4857: ac_tool_warned=yes ;;
1.14      bertrand 4858: esac
1.15      bertrand 4859:     FC=$ac_ct_FC
                   4860:   fi
1.14      bertrand 4861: fi
                   4862: 
                   4863: 
1.15      bertrand 4864: # Provide some information about the compiler.
                   4865: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4866: set X $ac_compile
                   4867: ac_compiler=$2
                   4868: for ac_option in --version -v -V -qversion; do
                   4869:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4870: case "(($ac_try" in
                   4871:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4872:   *) ac_try_echo=$ac_try;;
                   4873: esac
1.15      bertrand 4874: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4875: $as_echo "$ac_try_echo"; } >&5
                   4876:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4877:   ac_status=$?
1.15      bertrand 4878:   if test -s conftest.err; then
                   4879:     sed '10a\
                   4880: ... rest of stderr output deleted ...
                   4881:          10q' conftest.err >conftest.er1
                   4882:     cat conftest.er1 >&5
                   4883:   fi
                   4884:   rm -f conftest.er1 conftest.err
                   4885:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4886:   test $ac_status = 0; }
                   4887: done
                   4888: rm -f a.out
                   4889: 
                   4890: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4891: # input file.  (Note that this only needs to work for GNU compilers.)
                   4892: ac_save_ext=$ac_ext
                   4893: ac_ext=F
                   4894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4895: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4896: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4897:   $as_echo_n "(cached) " >&6
1.14      bertrand 4898: else
1.15      bertrand 4899:   cat > conftest.$ac_ext <<_ACEOF
                   4900:       program main
                   4901: #ifndef __GNUC__
                   4902:        choke me
                   4903: #endif
1.14      bertrand 4904: 
1.15      bertrand 4905:       end
                   4906: _ACEOF
                   4907: if ac_fn_fc_try_compile "$LINENO"; then :
                   4908:   ac_compiler_gnu=yes
                   4909: else
                   4910:   ac_compiler_gnu=no
1.14      bertrand 4911: fi
                   4912: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4913: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4914: 
1.15      bertrand 4915: fi
                   4916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4917: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4918: ac_ext=$ac_save_ext
                   4919: ac_test_FCFLAGS=${FCFLAGS+set}
                   4920: ac_save_FCFLAGS=$FCFLAGS
                   4921: FCFLAGS=
                   4922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4923: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4924: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4925:   $as_echo_n "(cached) " >&6
                   4926: else
                   4927:   FCFLAGS=-g
                   4928: cat > conftest.$ac_ext <<_ACEOF
                   4929:       program main
1.1       bertrand 4930: 
1.15      bertrand 4931:       end
1.1       bertrand 4932: _ACEOF
1.15      bertrand 4933: if ac_fn_fc_try_compile "$LINENO"; then :
                   4934:   ac_cv_prog_fc_g=yes
1.1       bertrand 4935: else
1.15      bertrand 4936:   ac_cv_prog_fc_g=no
1.1       bertrand 4937: fi
1.14      bertrand 4938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4939: 
1.15      bertrand 4940: fi
                   4941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4942: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4943: if test "$ac_test_FCFLAGS" = set; then
                   4944:   FCFLAGS=$ac_save_FCFLAGS
                   4945: elif test $ac_cv_prog_fc_g = yes; then
                   4946:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4947:     FCFLAGS="-g -O2"
                   4948:   else
                   4949:     FCFLAGS="-g"
                   4950:   fi
1.1       bertrand 4951: else
1.15      bertrand 4952:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4953:     FCFLAGS="-O2"
                   4954:   else
                   4955:     FCFLAGS=
                   4956:   fi
1.1       bertrand 4957: fi
                   4958: 
1.15      bertrand 4959: ac_ext=c
                   4960: ac_cpp='$CPP $CPPFLAGS'
                   4961: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4962: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4963: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4964: 
                   4965: 
1.15      bertrand 4966: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                   4967:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 4968: fi
                   4969: 
1.15      bertrand 4970: if test x"$FC" != x""; then
                   4971:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4972:            awk -F. '{ printf("%s", $1);}'`
                   4973:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4974:            awk -F. '{ printf("%s", $2);}'`
1.23    ! bertrand 4975:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4976:        OPTIMISATION_F=-O3
                   4977:    else
1.23    ! bertrand 4978:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 4979:            OPTIMISATION_F=-O3
                   4980:        else
1.23    ! bertrand 4981:            if test $GCC_VERSION_MAJEURE -ge 3; then
        !          4982:                OPTIMISATION_F=-O2
        !          4983:            else
        !          4984:                as_fn_error "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
        !          4985:            fi
1.14      bertrand 4986:        fi
                   4987:    fi
                   4988: fi
1.1       bertrand 4989: 
                   4990: 
1.15      bertrand 4991: ac_ext=c
                   4992: ac_cpp='$CPP $CPPFLAGS'
                   4993: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4994: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4995: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   4997: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   4998: # On Suns, sometimes $CPP names a directory.
                   4999: if test -n "$CPP" && test -d "$CPP"; then
                   5000:   CPP=
                   5001: fi
                   5002: if test -z "$CPP"; then
                   5003:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   5004:   $as_echo_n "(cached) " >&6
                   5005: else
                   5006:       # Double quotes because CPP needs to be expanded
                   5007:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5008:     do
                   5009:       ac_preproc_ok=false
                   5010: for ac_c_preproc_warn_flag in '' yes
                   5011: do
                   5012:   # Use a header file that comes with gcc, so configuring glibc
                   5013:   # with a fresh cross-compiler works.
                   5014:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5015:   # <limits.h> exists even on freestanding compilers.
                   5016:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5017:   # not just through cpp. "Syntax error" is here to catch this case.
                   5018:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5019: /* end confdefs.h.  */
1.15      bertrand 5020: #ifdef __STDC__
                   5021: # include <limits.h>
                   5022: #else
                   5023: # include <assert.h>
                   5024: #endif
                   5025:             Syntax error
1.1       bertrand 5026: _ACEOF
1.15      bertrand 5027: if ac_fn_c_try_cpp "$LINENO"; then :
                   5028: 
1.1       bertrand 5029: else
1.15      bertrand 5030:   # Broken: fails on valid input.
                   5031: continue
1.1       bertrand 5032: fi
1.15      bertrand 5033: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5034: 
1.15      bertrand 5035:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5036:   # can be detected and how.
                   5037:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5038: /* end confdefs.h.  */
                   5039: #include <ac_nonexistent.h>
                   5040: _ACEOF
                   5041: if ac_fn_c_try_cpp "$LINENO"; then :
                   5042:   # Broken: success on invalid input.
                   5043: continue
                   5044: else
                   5045:   # Passes both tests.
                   5046: ac_preproc_ok=:
                   5047: break
1.1       bertrand 5048: fi
1.15      bertrand 5049: rm -f conftest.err conftest.$ac_ext
1.14      bertrand 5050: 
1.15      bertrand 5051: done
                   5052: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5053: rm -f conftest.err conftest.$ac_ext
                   5054: if $ac_preproc_ok; then :
                   5055:   break
1.1       bertrand 5056: fi
                   5057: 
1.15      bertrand 5058:     done
                   5059:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5060: 
1.15      bertrand 5061: fi
                   5062:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5063: else
1.15      bertrand 5064:   ac_cv_prog_CPP=$CPP
                   5065: fi
                   5066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5067: $as_echo "$CPP" >&6; }
                   5068: ac_preproc_ok=false
                   5069: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5070: do
1.15      bertrand 5071:   # Use a header file that comes with gcc, so configuring glibc
                   5072:   # with a fresh cross-compiler works.
                   5073:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5074:   # <limits.h> exists even on freestanding compilers.
                   5075:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5076:   # not just through cpp. "Syntax error" is here to catch this case.
                   5077:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5078: /* end confdefs.h.  */
                   5079: #ifdef __STDC__
                   5080: # include <limits.h>
                   5081: #else
                   5082: # include <assert.h>
                   5083: #endif
                   5084:             Syntax error
                   5085: _ACEOF
                   5086: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5087: 
1.15      bertrand 5088: else
                   5089:   # Broken: fails on valid input.
                   5090: continue
                   5091: fi
                   5092: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5093: 
1.15      bertrand 5094:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5095:   # can be detected and how.
                   5096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5097: /* end confdefs.h.  */
                   5098: #include <ac_nonexistent.h>
                   5099: _ACEOF
                   5100: if ac_fn_c_try_cpp "$LINENO"; then :
                   5101:   # Broken: success on invalid input.
                   5102: continue
                   5103: else
                   5104:   # Passes both tests.
                   5105: ac_preproc_ok=:
                   5106: break
                   5107: fi
                   5108: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5109: 
                   5110: done
1.15      bertrand 5111: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5112: rm -f conftest.err conftest.$ac_ext
                   5113: if $ac_preproc_ok; then :
1.1       bertrand 5114: 
1.15      bertrand 5115: else
                   5116:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5117: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5118: as_fn_error "C preprocessor \"$CPP\" fails sanity check
                   5119: See \`config.log' for more details." "$LINENO" 5; }
                   5120: fi
1.14      bertrand 5121: 
1.15      bertrand 5122: ac_ext=c
                   5123: ac_cpp='$CPP $CPPFLAGS'
                   5124: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5125: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5126: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5127: 
                   5128: 
1.15      bertrand 5129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5130: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5131: 
                   5132: 
1.15      bertrand 5133: # Check whether --with-x was given.
                   5134: if test "${with_x+set}" = set; then :
                   5135:   withval=$with_x;
1.1       bertrand 5136: fi
1.14      bertrand 5137: 
1.15      bertrand 5138: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5139: if test "x$with_x" = xno; then
                   5140:   # The user explicitly disabled X.
                   5141:   have_x=disabled
1.1       bertrand 5142: else
1.15      bertrand 5143:   case $x_includes,$x_libraries in #(
                   5144:     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5145:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5146:   $as_echo_n "(cached) " >&6
1.1       bertrand 5147: else
1.15      bertrand 5148:   # One or both of the vars are not set, and there is no cached value.
                   5149: ac_x_includes=no ac_x_libraries=no
                   5150: rm -f -r conftest.dir
                   5151: if mkdir conftest.dir; then
                   5152:   cd conftest.dir
                   5153:   cat >Imakefile <<'_ACEOF'
                   5154: incroot:
                   5155:    @echo incroot='${INCROOT}'
                   5156: usrlibdir:
                   5157:    @echo usrlibdir='${USRLIBDIR}'
                   5158: libdir:
                   5159:    @echo libdir='${LIBDIR}'
                   5160: _ACEOF
                   5161:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
                   5162:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   5163:     for ac_var in incroot usrlibdir libdir; do
                   5164:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5165:     done
                   5166:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5167:     for ac_extension in a so sl dylib la dll; do
                   5168:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5169:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5170:    ac_im_usrlibdir=$ac_im_libdir; break
                   5171:       fi
                   5172:     done
                   5173:     # Screen out bogus values from the imake configuration.  They are
                   5174:     # bogus both because they are the default anyway, and because
                   5175:     # using them would break gcc on systems where it needs fixed includes.
                   5176:     case $ac_im_incroot in
                   5177:    /usr/include) ac_x_includes= ;;
                   5178:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5179:     esac
                   5180:     case $ac_im_usrlibdir in
                   5181:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5182:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5183:     esac
                   5184:   fi
                   5185:   cd ..
                   5186:   rm -f -r conftest.dir
                   5187: fi
                   5188: 
                   5189: # Standard set of common directories for X headers.
                   5190: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5191: ac_x_header_dirs='
                   5192: /usr/X11/include
                   5193: /usr/X11R7/include
                   5194: /usr/X11R6/include
                   5195: /usr/X11R5/include
                   5196: /usr/X11R4/include
1.1       bertrand 5197: 
1.15      bertrand 5198: /usr/include/X11
                   5199: /usr/include/X11R7
                   5200: /usr/include/X11R6
                   5201: /usr/include/X11R5
                   5202: /usr/include/X11R4
1.1       bertrand 5203: 
1.15      bertrand 5204: /usr/local/X11/include
                   5205: /usr/local/X11R7/include
                   5206: /usr/local/X11R6/include
                   5207: /usr/local/X11R5/include
                   5208: /usr/local/X11R4/include
1.1       bertrand 5209: 
1.15      bertrand 5210: /usr/local/include/X11
                   5211: /usr/local/include/X11R7
                   5212: /usr/local/include/X11R6
                   5213: /usr/local/include/X11R5
                   5214: /usr/local/include/X11R4
1.1       bertrand 5215: 
1.15      bertrand 5216: /usr/X386/include
                   5217: /usr/x386/include
                   5218: /usr/XFree86/include/X11
1.1       bertrand 5219: 
1.15      bertrand 5220: /usr/include
                   5221: /usr/local/include
                   5222: /usr/unsupported/include
                   5223: /usr/athena/include
                   5224: /usr/local/x11r5/include
                   5225: /usr/lpp/Xamples/include
1.1       bertrand 5226: 
1.15      bertrand 5227: /usr/openwin/include
                   5228: /usr/openwin/share/include'
1.1       bertrand 5229: 
1.15      bertrand 5230: if test "$ac_x_includes" = no; then
                   5231:   # Guess where to find include files, by looking for Xlib.h.
                   5232:   # First, try using that file with no special directory specified.
                   5233:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5234: /* end confdefs.h.  */
                   5235: #include <X11/Xlib.h>
                   5236: _ACEOF
                   5237: if ac_fn_c_try_cpp "$LINENO"; then :
                   5238:   # We can compile using X headers with no special include directory.
                   5239: ac_x_includes=
1.1       bertrand 5240: else
1.15      bertrand 5241:   for ac_dir in $ac_x_header_dirs; do
                   5242:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5243:     ac_x_includes=$ac_dir
                   5244:     break
                   5245:   fi
                   5246: done
1.1       bertrand 5247: fi
1.15      bertrand 5248: rm -f conftest.err conftest.$ac_ext
                   5249: fi # $ac_x_includes = no
1.1       bertrand 5250: 
1.15      bertrand 5251: if test "$ac_x_libraries" = no; then
                   5252:   # Check for the libraries.
                   5253:   # See if we find them without any special options.
                   5254:   # Don't add to $LIBS permanently.
                   5255:   ac_save_LIBS=$LIBS
                   5256:   LIBS="-lX11 $LIBS"
                   5257:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5258: /* end confdefs.h.  */
1.15      bertrand 5259: #include <X11/Xlib.h>
1.14      bertrand 5260: int
                   5261: main ()
                   5262: {
1.15      bertrand 5263: XrmInitialize ()
1.14      bertrand 5264:   ;
                   5265:   return 0;
                   5266: }
1.1       bertrand 5267: _ACEOF
1.15      bertrand 5268: if ac_fn_c_try_link "$LINENO"; then :
                   5269:   LIBS=$ac_save_LIBS
                   5270: # We can link X programs with no special library path.
                   5271: ac_x_libraries=
1.1       bertrand 5272: else
1.15      bertrand 5273:   LIBS=$ac_save_LIBS
                   5274: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5275: do
                   5276:   # Don't even attempt the hair of trying to link an X program!
                   5277:   for ac_extension in a so sl dylib la dll; do
                   5278:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5279:       ac_x_libraries=$ac_dir
                   5280:       break 2
                   5281:     fi
                   5282:   done
                   5283: done
                   5284: fi
                   5285: rm -f core conftest.err conftest.$ac_objext \
                   5286:     conftest$ac_exeext conftest.$ac_ext
                   5287: fi # $ac_x_libraries = no
1.1       bertrand 5288: 
1.15      bertrand 5289: case $ac_x_includes,$ac_x_libraries in #(
                   5290:   no,* | *,no | *\'*)
                   5291:     # Didn't find X, or a directory has "'" in its name.
                   5292:     ac_cv_have_x="have_x=no";; #(
                   5293:   *)
                   5294:     # Record where we found X for the cache.
                   5295:     ac_cv_have_x="have_x=yes\
                   5296:    ac_x_includes='$ac_x_includes'\
                   5297:    ac_x_libraries='$ac_x_libraries'"
                   5298: esac
1.1       bertrand 5299: fi
1.15      bertrand 5300: ;; #(
                   5301:     *) have_x=yes;;
                   5302:   esac
                   5303:   eval "$ac_cv_have_x"
                   5304: fi # $with_x != no
1.1       bertrand 5305: 
1.15      bertrand 5306: if test "$have_x" != yes; then
                   5307:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5308: $as_echo "$have_x" >&6; }
                   5309:   no_x=yes
1.14      bertrand 5310: else
1.15      bertrand 5311:   # If each of the values was on the command line, it overrides each guess.
                   5312:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5313:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5314:   # Update the cache value to reflect the command line values.
                   5315:   ac_cv_have_x="have_x=yes\
                   5316:    ac_x_includes='$x_includes'\
                   5317:    ac_x_libraries='$x_libraries'"
                   5318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5319: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5320: fi
1.1       bertrand 5321: 
1.15      bertrand 5322: if test "$no_x" = yes; then
                   5323:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5324: 
1.15      bertrand 5325: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5326: 
1.15      bertrand 5327:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5328: else
1.15      bertrand 5329:   if test -n "$x_includes"; then
                   5330:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5331:   fi
                   5332: 
                   5333:   # It would also be nice to do this for all -L options, not just this one.
                   5334:   if test -n "$x_libraries"; then
                   5335:     X_LIBS="$X_LIBS -L$x_libraries"
                   5336:     # For Solaris; some versions of Sun CC require a space after -R and
                   5337:     # others require no space.  Words are not sufficient . . . .
                   5338:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5339: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5340:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5341:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5342:     ac_c_werror_flag=yes
                   5343:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5344: /* end confdefs.h.  */
1.1       bertrand 5345: 
1.15      bertrand 5346: int
                   5347: main ()
                   5348: {
1.1       bertrand 5349: 
1.15      bertrand 5350:   ;
                   5351:   return 0;
                   5352: }
                   5353: _ACEOF
                   5354: if ac_fn_c_try_link "$LINENO"; then :
                   5355:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5356: $as_echo "no" >&6; }
                   5357:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5358: else
1.15      bertrand 5359:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5360:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5361: /* end confdefs.h.  */
1.1       bertrand 5362: 
1.14      bertrand 5363: int
                   5364: main ()
                   5365: {
1.15      bertrand 5366: 
                   5367:   ;
1.14      bertrand 5368:   return 0;
                   5369: }
                   5370: _ACEOF
1.15      bertrand 5371: if ac_fn_c_try_link "$LINENO"; then :
                   5372:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5373: $as_echo "yes" >&6; }
                   5374:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5375: else
1.15      bertrand 5376:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5377: $as_echo "neither works" >&6; }
1.14      bertrand 5378: fi
1.15      bertrand 5379: rm -f core conftest.err conftest.$ac_objext \
                   5380:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5381: fi
1.15      bertrand 5382: rm -f core conftest.err conftest.$ac_objext \
                   5383:     conftest$ac_exeext conftest.$ac_ext
                   5384:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5385:     LIBS=$ac_xsave_LIBS
                   5386:   fi
1.1       bertrand 5387: 
1.15      bertrand 5388:   # Check for system-dependent libraries X programs must link with.
                   5389:   # Do this before checking for the system-independent R6 libraries
                   5390:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5391: 
1.15      bertrand 5392:   if test "$ISC" = yes; then
                   5393:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5394:   else
                   5395:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5396:     # libraries were built with DECnet support.  And Karl Berry says
                   5397:     # the Alpha needs dnet_stub (dnet does not exist).
                   5398:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5399:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5400: /* end confdefs.h.  */
1.1       bertrand 5401: 
1.15      bertrand 5402: /* Override any GCC internal prototype to avoid an error.
                   5403:    Use char because int might match the return type of a GCC
                   5404:    builtin and then its argument prototype would still apply.  */
                   5405: #ifdef __cplusplus
                   5406: extern "C"
                   5407: #endif
                   5408: char XOpenDisplay ();
                   5409: int
                   5410: main ()
                   5411: {
                   5412: return XOpenDisplay ();
                   5413:   ;
                   5414:   return 0;
                   5415: }
1.1       bertrand 5416: _ACEOF
1.15      bertrand 5417: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5418: 
                   5419: else
1.15      bertrand 5420:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5421: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5422: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5423:   $as_echo_n "(cached) " >&6
                   5424: else
                   5425:   ac_check_lib_save_LIBS=$LIBS
                   5426: LIBS="-ldnet  $LIBS"
                   5427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5428: /* end confdefs.h.  */
1.14      bertrand 5429: 
1.15      bertrand 5430: /* Override any GCC internal prototype to avoid an error.
                   5431:    Use char because int might match the return type of a GCC
                   5432:    builtin and then its argument prototype would still apply.  */
                   5433: #ifdef __cplusplus
                   5434: extern "C"
                   5435: #endif
                   5436: char dnet_ntoa ();
                   5437: int
                   5438: main ()
                   5439: {
                   5440: return dnet_ntoa ();
                   5441:   ;
                   5442:   return 0;
                   5443: }
1.1       bertrand 5444: _ACEOF
1.15      bertrand 5445: if ac_fn_c_try_link "$LINENO"; then :
                   5446:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5447: else
1.15      bertrand 5448:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5449: fi
1.15      bertrand 5450: rm -f core conftest.err conftest.$ac_objext \
                   5451:     conftest$ac_exeext conftest.$ac_ext
                   5452: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5453: fi
1.15      bertrand 5454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5455: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5456: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5457:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5458: fi
                   5459: 
1.15      bertrand 5460:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5461:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5462: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5463: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5464:   $as_echo_n "(cached) " >&6
1.14      bertrand 5465: else
1.15      bertrand 5466:   ac_check_lib_save_LIBS=$LIBS
                   5467: LIBS="-ldnet_stub  $LIBS"
                   5468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5469: /* end confdefs.h.  */
1.15      bertrand 5470: 
                   5471: /* Override any GCC internal prototype to avoid an error.
                   5472:    Use char because int might match the return type of a GCC
                   5473:    builtin and then its argument prototype would still apply.  */
                   5474: #ifdef __cplusplus
                   5475: extern "C"
                   5476: #endif
                   5477: char dnet_ntoa ();
1.1       bertrand 5478: int
                   5479: main ()
                   5480: {
1.15      bertrand 5481: return dnet_ntoa ();
1.1       bertrand 5482:   ;
                   5483:   return 0;
                   5484: }
                   5485: _ACEOF
1.15      bertrand 5486: if ac_fn_c_try_link "$LINENO"; then :
                   5487:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5488: else
1.15      bertrand 5489:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5490: fi
                   5491: rm -f core conftest.err conftest.$ac_objext \
                   5492:     conftest$ac_exeext conftest.$ac_ext
                   5493: LIBS=$ac_check_lib_save_LIBS
                   5494: fi
                   5495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5496: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5497: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5498:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5499: fi
1.14      bertrand 5500: 
1.15      bertrand 5501:     fi
1.1       bertrand 5502: fi
1.15      bertrand 5503: rm -f core conftest.err conftest.$ac_objext \
                   5504:     conftest$ac_exeext conftest.$ac_ext
                   5505:     LIBS="$ac_xsave_LIBS"
                   5506: 
                   5507:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5508:     # to get the SysV transport functions.
                   5509:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5510:     # needs -lnsl.
                   5511:     # The nsl library prevents programs from opening the X display
                   5512:     # on Irix 5.2, according to T.E. Dickey.
                   5513:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5514:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5515:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5516: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5517: 
                   5518: fi
                   5519: 
1.15      bertrand 5520:     if test $ac_cv_func_gethostbyname = no; then
                   5521:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5522: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5523: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5524:   $as_echo_n "(cached) " >&6
1.1       bertrand 5525: else
1.15      bertrand 5526:   ac_check_lib_save_LIBS=$LIBS
                   5527: LIBS="-lnsl  $LIBS"
                   5528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5529: /* end confdefs.h.  */
1.15      bertrand 5530: 
                   5531: /* Override any GCC internal prototype to avoid an error.
                   5532:    Use char because int might match the return type of a GCC
                   5533:    builtin and then its argument prototype would still apply.  */
                   5534: #ifdef __cplusplus
                   5535: extern "C"
                   5536: #endif
                   5537: char gethostbyname ();
1.1       bertrand 5538: int
                   5539: main ()
                   5540: {
1.15      bertrand 5541: return gethostbyname ();
1.1       bertrand 5542:   ;
                   5543:   return 0;
                   5544: }
                   5545: _ACEOF
1.15      bertrand 5546: if ac_fn_c_try_link "$LINENO"; then :
                   5547:   ac_cv_lib_nsl_gethostbyname=yes
                   5548: else
                   5549:   ac_cv_lib_nsl_gethostbyname=no
                   5550: fi
                   5551: rm -f core conftest.err conftest.$ac_objext \
                   5552:     conftest$ac_exeext conftest.$ac_ext
                   5553: LIBS=$ac_check_lib_save_LIBS
                   5554: fi
                   5555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5556: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5557: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5558:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5559: fi
                   5560: 
                   5561:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5562:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5563: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5564: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5565:   $as_echo_n "(cached) " >&6
                   5566: else
                   5567:   ac_check_lib_save_LIBS=$LIBS
                   5568: LIBS="-lbsd  $LIBS"
                   5569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5570: /* end confdefs.h.  */
1.15      bertrand 5571: 
                   5572: /* Override any GCC internal prototype to avoid an error.
                   5573:    Use char because int might match the return type of a GCC
                   5574:    builtin and then its argument prototype would still apply.  */
                   5575: #ifdef __cplusplus
                   5576: extern "C"
                   5577: #endif
                   5578: char gethostbyname ();
1.1       bertrand 5579: int
                   5580: main ()
                   5581: {
1.15      bertrand 5582: return gethostbyname ();
1.1       bertrand 5583:   ;
                   5584:   return 0;
                   5585: }
                   5586: _ACEOF
1.15      bertrand 5587: if ac_fn_c_try_link "$LINENO"; then :
                   5588:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5589: else
1.15      bertrand 5590:   ac_cv_lib_bsd_gethostbyname=no
                   5591: fi
                   5592: rm -f core conftest.err conftest.$ac_objext \
                   5593:     conftest$ac_exeext conftest.$ac_ext
                   5594: LIBS=$ac_check_lib_save_LIBS
                   5595: fi
                   5596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5597: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5598: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5599:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5600: fi
                   5601: 
                   5602:       fi
                   5603:     fi
                   5604: 
                   5605:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5606:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5607:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5608:     # on later versions), says Simon Leinen: it contains gethostby*
                   5609:     # variants that don't use the name server (or something).  -lsocket
                   5610:     # must be given before -lnsl if both are needed.  We assume that
                   5611:     # if connect needs -lnsl, so does gethostbyname.
                   5612:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5613: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5614: 
1.1       bertrand 5615: fi
                   5616: 
1.15      bertrand 5617:     if test $ac_cv_func_connect = no; then
                   5618:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5619: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5620: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5621:   $as_echo_n "(cached) " >&6
1.14      bertrand 5622: else
1.15      bertrand 5623:   ac_check_lib_save_LIBS=$LIBS
                   5624: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5626: /* end confdefs.h.  */
1.1       bertrand 5627: 
1.15      bertrand 5628: /* Override any GCC internal prototype to avoid an error.
                   5629:    Use char because int might match the return type of a GCC
                   5630:    builtin and then its argument prototype would still apply.  */
                   5631: #ifdef __cplusplus
                   5632: extern "C"
                   5633: #endif
                   5634: char connect ();
1.14      bertrand 5635: int
                   5636: main ()
                   5637: {
1.15      bertrand 5638: return connect ();
1.14      bertrand 5639:   ;
                   5640:   return 0;
                   5641: }
                   5642: _ACEOF
1.15      bertrand 5643: if ac_fn_c_try_link "$LINENO"; then :
                   5644:   ac_cv_lib_socket_connect=yes
                   5645: else
                   5646:   ac_cv_lib_socket_connect=no
                   5647: fi
                   5648: rm -f core conftest.err conftest.$ac_objext \
                   5649:     conftest$ac_exeext conftest.$ac_ext
                   5650: LIBS=$ac_check_lib_save_LIBS
                   5651: fi
                   5652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5653: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5654: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5655:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5656: fi
                   5657: 
                   5658:     fi
                   5659: 
                   5660:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5661:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5662: if test "x$ac_cv_func_remove" = x""yes; then :
                   5663: 
                   5664: fi
                   5665: 
                   5666:     if test $ac_cv_func_remove = no; then
                   5667:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5668: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5669: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5670:   $as_echo_n "(cached) " >&6
                   5671: else
                   5672:   ac_check_lib_save_LIBS=$LIBS
                   5673: LIBS="-lposix  $LIBS"
                   5674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5675: /* end confdefs.h.  */
1.15      bertrand 5676: 
                   5677: /* Override any GCC internal prototype to avoid an error.
                   5678:    Use char because int might match the return type of a GCC
                   5679:    builtin and then its argument prototype would still apply.  */
                   5680: #ifdef __cplusplus
                   5681: extern "C"
                   5682: #endif
                   5683: char remove ();
1.1       bertrand 5684: int
                   5685: main ()
                   5686: {
1.15      bertrand 5687: return remove ();
1.1       bertrand 5688:   ;
                   5689:   return 0;
                   5690: }
                   5691: _ACEOF
1.15      bertrand 5692: if ac_fn_c_try_link "$LINENO"; then :
                   5693:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5694: else
1.15      bertrand 5695:   ac_cv_lib_posix_remove=no
                   5696: fi
                   5697: rm -f core conftest.err conftest.$ac_objext \
                   5698:     conftest$ac_exeext conftest.$ac_ext
                   5699: LIBS=$ac_check_lib_save_LIBS
                   5700: fi
                   5701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5702: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5703: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5704:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5705: fi
1.1       bertrand 5706: 
1.15      bertrand 5707:     fi
1.14      bertrand 5708: 
1.15      bertrand 5709:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5710:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5711: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5712: 
                   5713: fi
                   5714: 
1.15      bertrand 5715:     if test $ac_cv_func_shmat = no; then
                   5716:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5717: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5718: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5719:   $as_echo_n "(cached) " >&6
                   5720: else
                   5721:   ac_check_lib_save_LIBS=$LIBS
                   5722: LIBS="-lipc  $LIBS"
                   5723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5724: /* end confdefs.h.  */
1.15      bertrand 5725: 
                   5726: /* Override any GCC internal prototype to avoid an error.
                   5727:    Use char because int might match the return type of a GCC
                   5728:    builtin and then its argument prototype would still apply.  */
                   5729: #ifdef __cplusplus
                   5730: extern "C"
                   5731: #endif
                   5732: char shmat ();
1.1       bertrand 5733: int
                   5734: main ()
                   5735: {
1.15      bertrand 5736: return shmat ();
1.1       bertrand 5737:   ;
                   5738:   return 0;
                   5739: }
                   5740: _ACEOF
1.15      bertrand 5741: if ac_fn_c_try_link "$LINENO"; then :
                   5742:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5743: else
1.15      bertrand 5744:   ac_cv_lib_ipc_shmat=no
                   5745: fi
                   5746: rm -f core conftest.err conftest.$ac_objext \
                   5747:     conftest$ac_exeext conftest.$ac_ext
                   5748: LIBS=$ac_check_lib_save_LIBS
                   5749: fi
                   5750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5751: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5752: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5753:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5754: fi
1.14      bertrand 5755: 
1.15      bertrand 5756:     fi
                   5757:   fi
1.1       bertrand 5758: 
1.15      bertrand 5759:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5760:   ac_save_LDFLAGS=$LDFLAGS
                   5761:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5762:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5763:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5764:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5765:   # These have to be linked with before -lX11, unlike the other
                   5766:   # libraries we check for below, so use a different variable.
                   5767:   # John Interrante, Karl Berry
                   5768:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5769: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5770: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5771:   $as_echo_n "(cached) " >&6
1.1       bertrand 5772: else
1.15      bertrand 5773:   ac_check_lib_save_LIBS=$LIBS
                   5774: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5776: /* end confdefs.h.  */
1.15      bertrand 5777: 
                   5778: /* Override any GCC internal prototype to avoid an error.
                   5779:    Use char because int might match the return type of a GCC
                   5780:    builtin and then its argument prototype would still apply.  */
                   5781: #ifdef __cplusplus
                   5782: extern "C"
                   5783: #endif
                   5784: char IceConnectionNumber ();
1.1       bertrand 5785: int
                   5786: main ()
                   5787: {
1.15      bertrand 5788: return IceConnectionNumber ();
1.1       bertrand 5789:   ;
                   5790:   return 0;
                   5791: }
                   5792: _ACEOF
1.15      bertrand 5793: if ac_fn_c_try_link "$LINENO"; then :
                   5794:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5795: else
1.15      bertrand 5796:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5797: fi
                   5798: rm -f core conftest.err conftest.$ac_objext \
                   5799:     conftest$ac_exeext conftest.$ac_ext
                   5800: LIBS=$ac_check_lib_save_LIBS
                   5801: fi
                   5802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5803: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5804: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5805:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5806: fi
                   5807: 
                   5808:   LDFLAGS=$ac_save_LDFLAGS
                   5809: 
                   5810: fi
                   5811: 
1.14      bertrand 5812: 
1.15      bertrand 5813: if test "$ac_x_includes" != "no"; then
                   5814:    if test x"$ac_x_includes" != x; then
                   5815:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5816:        includeX="-I$ac_x_includes"
                   5817:    fi
1.1       bertrand 5818: fi
1.15      bertrand 5819: if test "$ac_x_libraries" != "no"; then
                   5820:    if test x"$ac_x_libraries" != x; then
                   5821:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5822:    fi
1.1       bertrand 5823: fi
1.15      bertrand 5824: 
                   5825: # Check whether --enable-optimization was given.
                   5826: if test "${enable_optimization+set}" = set; then :
                   5827:   enableval=$enable_optimization;
                   5828: if test "$enableval" = "no"; then
                   5829:    CFLAGS=
                   5830:    FFLAGS=
                   5831:    CXXFLAGS=
                   5832:    FCFLAGS=
                   5833: else
                   5834:    CFLAGS="$CFLAGS $enable_optimization"
                   5835:    FFLAGS="$FFLAGS $enable_optimization"
                   5836:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5837: fi
1.15      bertrand 5838: else
1.14      bertrand 5839: 
1.15      bertrand 5840:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5841:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5842:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5843: 
                   5844: 
1.15      bertrand 5845: fi
1.1       bertrand 5846: 
                   5847: 
1.15      bertrand 5848: # Check whether --enable-final-encoding was given.
                   5849: if test "${enable_final_encoding+set}" = set; then :
                   5850:   enableval=$enable_final_encoding;
                   5851: if test "$enableval" = "no"; then
                   5852:    FINAL_ENCODING="\$(shell locale charmap | \
                   5853:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.1       bertrand 5854: else
1.15      bertrand 5855:    FINAL_ENCODING="$enable_final_encoding"
                   5856: fi
1.1       bertrand 5857: else
1.15      bertrand 5858:   FINAL_ENCODING="\$(shell locale charmap | \
                   5859:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5860: fi
                   5861: 
1.14      bertrand 5862: 
1.15      bertrand 5863: # Check whether --enable-tex was given.
                   5864: if test "${enable_tex+set}" = set; then :
                   5865:   enableval=$enable_tex;
                   5866: if test "$enableval" = "no"; then
                   5867:    TEX_SUPPORT=no
                   5868: else
                   5869:    TEX_SUPPORT=yes
1.1       bertrand 5870: fi
1.15      bertrand 5871: else
                   5872:   TEX_SUPPORT=guessed
                   5873: fi
                   5874: 
1.14      bertrand 5875: 
1.15      bertrand 5876: # Check whether --enable-vim was given.
                   5877: if test "${enable_vim+set}" = set; then :
                   5878:   enableval=$enable_vim;
                   5879: if test "$enableval" = "no"; then
                   5880:    VIM_SUPPORT=no
                   5881: else
                   5882:    VIM_SUPPORT=yes
                   5883: fi
                   5884: else
                   5885:   VIM_SUPPORT=guessed
1.1       bertrand 5886: fi
                   5887: 
1.15      bertrand 5888: 
                   5889: # Check whether --enable-embedded-gnuplot was given.
                   5890: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5891:   enableval=$enable_embedded_gnuplot;
                   5892: if test "$enableval" = "no"; then
                   5893:    MYGNUPLOT=no
                   5894: else
                   5895:    MYGNUPLOT=yes
                   5896: fi
1.1       bertrand 5897: else
                   5898: 
1.15      bertrand 5899: MYGNUPLOT=yes
                   5900: fi
                   5901: 
1.14      bertrand 5902: 
1.15      bertrand 5903: # Check whether --enable-gnuplot was given.
                   5904: if test "${enable_gnuplot+set}" = set; then :
                   5905:   enableval=$enable_gnuplot;
                   5906: if test "$enableval" = "no"; then
                   5907:    GNUPLOT_SUPPORT=no
                   5908:    MYGNUPLOT=no
                   5909:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5910: else
                   5911:    GNUPLOT_SUPPORT=yes
                   5912:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5913: fi
1.1       bertrand 5914: else
                   5915: 
1.15      bertrand 5916: if test "$MYGNUPLOT" = "yes"; then
                   5917:    GNUPLOT_SUPPORT=yes
                   5918:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5919: else
                   5920:    GNUPLOT_SUPPORT=guessed
                   5921:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5922: fi
1.1       bertrand 5923: fi
                   5924: 
1.15      bertrand 5925: 
                   5926: # Check whether --enable-motif was given.
                   5927: if test "${enable_motif+set}" = set; then :
                   5928:   enableval=$enable_motif;
                   5929: if test "$enableval" = "no"; then
                   5930:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5931: else
                   5932:    CFLAGS_ORIG=$CFLAGS
                   5933:    LIBS_ORIG=$LIBS
                   5934:    CFLAGS="$CFLAGS $X_CFLAGS"
                   5935:    LIBS="$LIB $X_LIBS"
                   5936:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   5937: $as_echo_n "checking for main in -lXm... " >&6; }
                   5938: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   5939:   $as_echo_n "(cached) " >&6
1.1       bertrand 5940: else
1.15      bertrand 5941:   ac_check_lib_save_LIBS=$LIBS
                   5942: LIBS="-lXm  $LIBS"
                   5943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5944: /* end confdefs.h.  */
1.14      bertrand 5945: 
                   5946: 
1.1       bertrand 5947: int
                   5948: main ()
                   5949: {
1.15      bertrand 5950: return main ();
1.1       bertrand 5951:   ;
                   5952:   return 0;
                   5953: }
                   5954: _ACEOF
1.15      bertrand 5955: if ac_fn_c_try_link "$LINENO"; then :
                   5956:   ac_cv_lib_Xm_main=yes
                   5957: else
                   5958:   ac_cv_lib_Xm_main=no
                   5959: fi
                   5960: rm -f core conftest.err conftest.$ac_objext \
                   5961:     conftest$ac_exeext conftest.$ac_ext
                   5962: LIBS=$ac_check_lib_save_LIBS
                   5963: fi
                   5964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   5965: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   5966: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   5967:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 5968: else
1.15      bertrand 5969:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5970: fi
1.14      bertrand 5971: 
1.15      bertrand 5972:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   5973:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   5974: Motif flag is disabled.
                   5975: " >&5
                   5976: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   5977: Motif flag is disabled.
                   5978: " >&2;}
                   5979:    fi
                   5980:    LIBS=$LIBS_ORIG
                   5981:    CFLAGS=$CFLAGS_ORIG
                   5982: fi
                   5983: else
                   5984:   MOTIF_SUPPORT=guessed
1.1       bertrand 5985: fi
                   5986: 
1.15      bertrand 5987: 
                   5988: # Check whether --enable-experimental was given.
                   5989: if test "${enable_experimental+set}" = set; then :
                   5990:   enableval=$enable_experimental;
                   5991: if test "$enableval" = "no"; then
                   5992:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   5993: else
                   5994:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   5995: fi
1.14      bertrand 5996: else
1.15      bertrand 5997:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   5998: fi
                   5999: 
1.1       bertrand 6000: 
1.15      bertrand 6001: # Check whether --enable-debug was given.
                   6002: if test "${enable_debug+set}" = set; then :
                   6003:   enableval=$enable_debug;
                   6004: if test "$enableval" = "no"; then
                   6005:    DEBUG=""
                   6006: else
                   6007:    DEBUG="-DDEBUG_MEMOIRE"
                   6008: fi
                   6009: else
                   6010:   DEBUG=""
1.14      bertrand 6011: fi
1.1       bertrand 6012: 
1.15      bertrand 6013: 
                   6014: # Check whether --enable-profile was given.
                   6015: if test "${enable_profile+set}" = set; then :
                   6016:   enableval=$enable_profile;
                   6017: if test "$enableval" = "no"; then
                   6018:    PROFILAGE=""
                   6019: else
                   6020:    PROFILAGE="-pg"
                   6021: fi
                   6022: else
                   6023:   PROFILAGE=""
1.1       bertrand 6024: fi
                   6025: 
1.14      bertrand 6026: 
                   6027: 
1.15      bertrand 6028: 
                   6029: if test ! -d tools; then
                   6030:    mkdir tools
                   6031: fi
                   6032: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6033:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6034:            (cd "$srcdir/tools" && tar -xf -)
                   6035: fi
                   6036: if test ! -d "$srcdir"/tools/$READLINE; then
                   6037:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6038:            (cd "$srcdir/tools" && tar -xf -)
                   6039: fi
                   6040: if test ! -d "$srcdir"/tools/$UNITS; then
                   6041:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6042:            (cd "$srcdir/tools" && tar -xf -)
                   6043: fi
                   6044: if test ! -d "$srcdir"/tools/$GSL; then
                   6045:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6046:            (cd "$srcdir/tools" && tar -xf -)
                   6047: fi
                   6048: if test ! -d "$srcdir"/tools/$GPP; then
                   6049:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6050:            (cd "$srcdir/tools" && tar -xf -)
                   6051: fi
                   6052: if test ! -d "$srcdir"/tools/$FILE; then
                   6053:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6054:            (cd "$srcdir/tools" && tar -xf - )
                   6055:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6056: fi
                   6057: if test ! -d "$srcdir"/tools/$ICONV; then
                   6058:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6059:            (cd "$srcdir/tools" && tar -xf -)
                   6060: fi
                   6061: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6062:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6063:            (cd "$srcdir/tools" && tar -xf -)
                   6064: fi
                   6065: if test ! -d tools/$OPENSSL; then
                   6066:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6067:            (cd tools && tar -xf -)
1.1       bertrand 6068: fi
                   6069: 
                   6070: 
                   6071: 
1.15      bertrand 6072: # Check whether --enable-final-run-path was given.
                   6073: if test "${enable_final_run_path+set}" = set; then :
                   6074:   enableval=$enable_final_run_path;
                   6075:    if test "x$enable_final_run_path" = "x"; then
                   6076:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6077: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
                   6078:        as_fn_error "\"You should specify final path !\"" "$LINENO" 5
                   6079:    else
                   6080:        RUNPATH="$enable_final_run_path"
                   6081:    fi
1.1       bertrand 6082: 
                   6083: else
1.15      bertrand 6084:   RUNPATH="\${prefix}"
1.1       bertrand 6085: 
                   6086: fi
                   6087: 
1.15      bertrand 6088: 
                   6089: 
                   6090: 
                   6091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6092: $as_echo_n "checking whether ln -s works... " >&6; }
                   6093: LN_S=$as_ln_s
                   6094: if test "$LN_S" = "ln -s"; then
                   6095:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6096: $as_echo "yes" >&6; }
                   6097: else
                   6098:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6099: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6100: fi
                   6101: 
1.15      bertrand 6102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6103: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6104: set x ${MAKE-make}
                   6105: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   6106: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   6107:   $as_echo_n "(cached) " >&6
1.1       bertrand 6108: else
1.15      bertrand 6109:   cat >conftest.make <<\_ACEOF
                   6110: SHELL = /bin/sh
                   6111: all:
                   6112:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6113: _ACEOF
1.15      bertrand 6114: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   6115: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6116:   *@@@%%%=?*=@@@%%%*)
                   6117:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6118:   *)
                   6119:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6120: esac
1.15      bertrand 6121: rm -f conftest.make
                   6122: fi
                   6123: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6125: $as_echo "yes" >&6; }
                   6126:   SET_MAKE=
                   6127: else
                   6128:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6129: $as_echo "no" >&6; }
                   6130:   SET_MAKE="MAKE=${MAKE-make}"
                   6131: fi
1.1       bertrand 6132: 
1.15      bertrand 6133: if test -n "$ac_tool_prefix"; then
                   6134:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6135: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6137: $as_echo_n "checking for $ac_word... " >&6; }
                   6138: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6139:   $as_echo_n "(cached) " >&6
                   6140: else
                   6141:   if test -n "$RANLIB"; then
                   6142:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6143: else
1.15      bertrand 6144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6145: for as_dir in $PATH
                   6146: do
                   6147:   IFS=$as_save_IFS
                   6148:   test -z "$as_dir" && as_dir=.
                   6149:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6150:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6151:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6152:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6153:     break 2
                   6154:   fi
                   6155: done
                   6156:   done
                   6157: IFS=$as_save_IFS
1.1       bertrand 6158: 
                   6159: fi
1.15      bertrand 6160: fi
                   6161: RANLIB=$ac_cv_prog_RANLIB
                   6162: if test -n "$RANLIB"; then
                   6163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6164: $as_echo "$RANLIB" >&6; }
                   6165: else
                   6166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6167: $as_echo "no" >&6; }
                   6168: fi
                   6169: 
1.1       bertrand 6170: 
1.15      bertrand 6171: fi
                   6172: if test -z "$ac_cv_prog_RANLIB"; then
                   6173:   ac_ct_RANLIB=$RANLIB
                   6174:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6175: set dummy ranlib; ac_word=$2
                   6176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6177: $as_echo_n "checking for $ac_word... " >&6; }
                   6178: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6179:   $as_echo_n "(cached) " >&6
                   6180: else
                   6181:   if test -n "$ac_ct_RANLIB"; then
                   6182:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6183: else
                   6184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6185: for as_dir in $PATH
                   6186: do
                   6187:   IFS=$as_save_IFS
                   6188:   test -z "$as_dir" && as_dir=.
                   6189:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6190:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6191:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6192:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6193:     break 2
                   6194:   fi
                   6195: done
1.14      bertrand 6196:   done
1.15      bertrand 6197: IFS=$as_save_IFS
                   6198: 
                   6199: fi
                   6200: fi
                   6201: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6202: if test -n "$ac_ct_RANLIB"; then
                   6203:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6204: $as_echo "$ac_ct_RANLIB" >&6; }
                   6205: else
                   6206:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6207: $as_echo "no" >&6; }
                   6208: fi
                   6209: 
                   6210:   if test "x$ac_ct_RANLIB" = x; then
                   6211:     RANLIB=":"
                   6212:   else
                   6213:     case $cross_compiling:$ac_tool_warned in
                   6214: yes:)
                   6215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6216: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6217: ac_tool_warned=yes ;;
                   6218: esac
                   6219:     RANLIB=$ac_ct_RANLIB
                   6220:   fi
1.14      bertrand 6221: else
1.15      bertrand 6222:   RANLIB="$ac_cv_prog_RANLIB"
                   6223: fi
1.1       bertrand 6224: 
                   6225: 
1.15      bertrand 6226: # Extract the first word of "nawk", so it can be a program name with args.
                   6227: set dummy nawk; ac_word=$2
                   6228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6229: $as_echo_n "checking for $ac_word... " >&6; }
                   6230: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6231:   $as_echo_n "(cached) " >&6
                   6232: else
                   6233:   if test -n "$AWK"; then
                   6234:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6235: else
                   6236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6237: for as_dir in $PATH
                   6238: do
                   6239:   IFS=$as_save_IFS
                   6240:   test -z "$as_dir" && as_dir=.
                   6241:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6242:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6243:     ac_cv_prog_AWK="yes"
                   6244:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6245:     break 2
                   6246:   fi
                   6247: done
                   6248:   done
                   6249: IFS=$as_save_IFS
1.1       bertrand 6250: 
1.15      bertrand 6251:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6252: fi
                   6253: fi
                   6254: AWK=$ac_cv_prog_AWK
                   6255: if test -n "$AWK"; then
                   6256:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6257: $as_echo "$AWK" >&6; }
1.1       bertrand 6258: else
1.15      bertrand 6259:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6260: $as_echo "no" >&6; }
                   6261: fi
                   6262: 
1.1       bertrand 6263: 
1.15      bertrand 6264: if test "$AWK" = no; then
                   6265:    as_fn_error "Can not find nawk !" "$LINENO" 5
1.1       bertrand 6266: fi
                   6267: 
1.15      bertrand 6268: # Extract the first word of "sed", so it can be a program name with args.
                   6269: set dummy sed; ac_word=$2
                   6270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6271: $as_echo_n "checking for $ac_word... " >&6; }
                   6272: if test "${ac_cv_prog_SED+set}" = set; then :
                   6273:   $as_echo_n "(cached) " >&6
                   6274: else
                   6275:   if test -n "$SED"; then
                   6276:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6277: else
                   6278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6279: for as_dir in $PATH
                   6280: do
                   6281:   IFS=$as_save_IFS
                   6282:   test -z "$as_dir" && as_dir=.
                   6283:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6284:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6285:     ac_cv_prog_SED="yes"
                   6286:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6287:     break 2
                   6288:   fi
                   6289: done
1.14      bertrand 6290:   done
1.15      bertrand 6291: IFS=$as_save_IFS
1.1       bertrand 6292: 
1.15      bertrand 6293:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6294: fi
1.15      bertrand 6295: fi
                   6296: SED=$ac_cv_prog_SED
                   6297: if test -n "$SED"; then
                   6298:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6299: $as_echo "$SED" >&6; }
                   6300: else
                   6301:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6302: $as_echo "no" >&6; }
1.14      bertrand 6303: fi
1.1       bertrand 6304: 
                   6305: 
1.15      bertrand 6306: if test "$SED" = no; then
                   6307:    as_fn_error "Can not find sed !" "$LINENO" 5
                   6308: fi
1.14      bertrand 6309: 
1.15      bertrand 6310: if test "$TEX_SUPPORT" = guessed; then
                   6311:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6312: 
1.15      bertrand 6313:    # Extract the first word of "tex", so it can be a program name with args.
                   6314: set dummy tex; ac_word=$2
                   6315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6316: $as_echo_n "checking for $ac_word... " >&6; }
                   6317: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6318:   $as_echo_n "(cached) " >&6
1.1       bertrand 6319: else
1.15      bertrand 6320:   if test -n "$TEX"; then
                   6321:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6322: else
1.15      bertrand 6323: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6324: for as_dir in $PATH
                   6325: do
                   6326:   IFS=$as_save_IFS
                   6327:   test -z "$as_dir" && as_dir=.
                   6328:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6329:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6330:     ac_cv_prog_TEX="yes"
                   6331:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6332:     break 2
                   6333:   fi
                   6334: done
                   6335:   done
                   6336: IFS=$as_save_IFS
1.1       bertrand 6337: 
1.15      bertrand 6338:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6339: fi
                   6340: fi
1.15      bertrand 6341: TEX=$ac_cv_prog_TEX
                   6342: if test -n "$TEX"; then
                   6343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6344: $as_echo "$TEX" >&6; }
                   6345: else
                   6346:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6347: $as_echo "no" >&6; }
1.1       bertrand 6348: fi
1.14      bertrand 6349: 
                   6350: 
1.15      bertrand 6351:    if test "$TEX" = no; then
                   6352:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6353: Download at http://tex.loria.fr/
                   6354: " >&5
                   6355: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6356: Download at http://tex.loria.fr/
                   6357: " >&2;}
                   6358:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6359:    fi
1.14      bertrand 6360: 
1.15      bertrand 6361:    # Extract the first word of "latex", so it can be a program name with args.
                   6362: set dummy latex; ac_word=$2
                   6363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6364: $as_echo_n "checking for $ac_word... " >&6; }
                   6365: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6366:   $as_echo_n "(cached) " >&6
1.1       bertrand 6367: else
1.15      bertrand 6368:   if test -n "$LATEX"; then
                   6369:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6370: else
1.15      bertrand 6371: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6372: for as_dir in $PATH
                   6373: do
                   6374:   IFS=$as_save_IFS
                   6375:   test -z "$as_dir" && as_dir=.
                   6376:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6377:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6378:     ac_cv_prog_LATEX="yes"
                   6379:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6380:     break 2
                   6381:   fi
                   6382: done
                   6383:   done
                   6384: IFS=$as_save_IFS
1.1       bertrand 6385: 
1.15      bertrand 6386:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6387: fi
                   6388: fi
1.15      bertrand 6389: LATEX=$ac_cv_prog_LATEX
                   6390: if test -n "$LATEX"; then
                   6391:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6392: $as_echo "$LATEX" >&6; }
                   6393: else
                   6394:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6395: $as_echo "no" >&6; }
                   6396: fi
1.14      bertrand 6397: 
1.1       bertrand 6398: 
1.15      bertrand 6399:    if test "$LATEX" = no; then
                   6400:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6401: Download at http://tex.loria.fr/
                   6402: " >&5
                   6403: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6404: Download at http://tex.loria.fr/
                   6405: " >&2;}
                   6406:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6407:    fi
1.1       bertrand 6408: 
1.15      bertrand 6409:    # Extract the first word of "dvips", so it can be a program name with args.
                   6410: set dummy dvips; ac_word=$2
                   6411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6412: $as_echo_n "checking for $ac_word... " >&6; }
                   6413: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6414:   $as_echo_n "(cached) " >&6
                   6415: else
                   6416:   if test -n "$DVIPS"; then
                   6417:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6418: else
                   6419: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6420: for as_dir in $PATH
                   6421: do
                   6422:   IFS=$as_save_IFS
                   6423:   test -z "$as_dir" && as_dir=.
                   6424:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6425:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6426:     ac_cv_prog_DVIPS="yes"
                   6427:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6428:     break 2
                   6429:   fi
                   6430: done
                   6431:   done
                   6432: IFS=$as_save_IFS
1.1       bertrand 6433: 
1.15      bertrand 6434:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6435: fi
1.1       bertrand 6436: fi
1.15      bertrand 6437: DVIPS=$ac_cv_prog_DVIPS
                   6438: if test -n "$DVIPS"; then
                   6439:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6440: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6441: else
1.15      bertrand 6442:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6443: $as_echo "no" >&6; }
                   6444: fi
1.1       bertrand 6445: 
                   6446: 
1.15      bertrand 6447:    if test "$DVIPS" = no; then
                   6448:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6449: Download at http://tex.loria.fr/
                   6450: " >&5
                   6451: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6452: Download at http://tex.loria.fr/
                   6453: " >&2;}
                   6454:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6455:    fi
1.1       bertrand 6456: 
1.15      bertrand 6457:    # Extract the first word of "gs", so it can be a program name with args.
                   6458: set dummy gs; ac_word=$2
                   6459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6460: $as_echo_n "checking for $ac_word... " >&6; }
                   6461: if test "${ac_cv_prog_GS+set}" = set; then :
                   6462:   $as_echo_n "(cached) " >&6
                   6463: else
                   6464:   if test -n "$GS"; then
                   6465:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6466: else
1.15      bertrand 6467: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6468: for as_dir in $PATH
                   6469: do
                   6470:   IFS=$as_save_IFS
                   6471:   test -z "$as_dir" && as_dir=.
                   6472:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6473:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6474:     ac_cv_prog_GS="yes"
                   6475:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6476:     break 2
                   6477:   fi
                   6478: done
                   6479:   done
                   6480: IFS=$as_save_IFS
1.1       bertrand 6481: 
1.15      bertrand 6482:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6483: fi
                   6484: fi
                   6485: GS=$ac_cv_prog_GS
                   6486: if test -n "$GS"; then
                   6487:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6488: $as_echo "$GS" >&6; }
                   6489: else
                   6490:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6491: $as_echo "no" >&6; }
1.1       bertrand 6492: fi
                   6493: 
1.15      bertrand 6494: 
                   6495:    if test "$GS" = no; then
                   6496:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6497: Download at http://ftp.lip6.fr/
                   6498: " >&5
                   6499: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6500: Download at http://ftp.lip6.fr/
                   6501: " >&2;}
                   6502:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6503:    fi
                   6504: 
                   6505:    # Extract the first word of "gv", so it can be a program name with args.
                   6506: set dummy gv; ac_word=$2
                   6507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6508: $as_echo_n "checking for $ac_word... " >&6; }
                   6509: if test "${ac_cv_prog_GV+set}" = set; then :
                   6510:   $as_echo_n "(cached) " >&6
                   6511: else
                   6512:   if test -n "$GV"; then
                   6513:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6514: else
                   6515: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6516: for as_dir in $PATH
                   6517: do
                   6518:   IFS=$as_save_IFS
                   6519:   test -z "$as_dir" && as_dir=.
                   6520:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6521:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6522:     ac_cv_prog_GV="yes"
                   6523:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6524:     break 2
                   6525:   fi
                   6526: done
1.14      bertrand 6527:   done
1.15      bertrand 6528: IFS=$as_save_IFS
1.1       bertrand 6529: 
1.15      bertrand 6530:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6531: fi
1.1       bertrand 6532: fi
1.15      bertrand 6533: GV=$ac_cv_prog_GV
                   6534: if test -n "$GV"; then
                   6535:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6536: $as_echo "$GV" >&6; }
                   6537: else
                   6538:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6539: $as_echo "no" >&6; }
1.1       bertrand 6540: fi
1.14      bertrand 6541: 
                   6542: 
1.15      bertrand 6543:    if test "$GV" = no; then
                   6544:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6545: Download at http://ftp.lip6.fr/
                   6546: " >&5
                   6547: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6548: Download at http://ftp.lip6.fr/
                   6549: " >&2;}
                   6550:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6551:    fi
1.1       bertrand 6552: else
1.15      bertrand 6553:    if test "$TEX_SUPPORT" = no; then
                   6554:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6555:    else
                   6556:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6557:    fi
1.1       bertrand 6558: fi
                   6559: 
1.15      bertrand 6560: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6561:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6562: set dummy gnuplot; ac_word=$2
                   6563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6564: $as_echo_n "checking for $ac_word... " >&6; }
                   6565: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6566:   $as_echo_n "(cached) " >&6
1.14      bertrand 6567: else
1.15      bertrand 6568:   if test -n "$GNUPLOT_P"; then
                   6569:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6570: else
1.15      bertrand 6571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6572: for as_dir in $PATH
                   6573: do
                   6574:   IFS=$as_save_IFS
                   6575:   test -z "$as_dir" && as_dir=.
                   6576:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6577:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6578:     ac_cv_prog_GNUPLOT_P="yes"
                   6579:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6580:     break 2
                   6581:   fi
                   6582: done
                   6583:   done
                   6584: IFS=$as_save_IFS
1.1       bertrand 6585: 
1.15      bertrand 6586:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6587: fi
                   6588: fi
1.15      bertrand 6589: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6590: if test -n "$GNUPLOT_P"; then
                   6591:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6592: $as_echo "$GNUPLOT_P" >&6; }
                   6593: else
                   6594:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6595: $as_echo "no" >&6; }
1.1       bertrand 6596: fi
                   6597: 
                   6598: 
1.15      bertrand 6599:    if test "$GNUPLOT_P" = no; then
                   6600:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6601: Download at http://www.gnuplot.vt.edu/
                   6602: " >&5
                   6603: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6604: Download at http://www.gnuplot.vt.edu/
                   6605: " >&2;}
                   6606:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6607:    else
                   6608:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6609:    fi
                   6610: else
                   6611:    if test "$GNUPLOT_SUPPORT" = no; then
                   6612:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6613:    else
                   6614:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6615:    fi
                   6616: fi
1.1       bertrand 6617: 
1.15      bertrand 6618: if test "$VIM_SUPPORT" = guessed; then
                   6619:    # Extract the first word of "vim", so it can be a program name with args.
                   6620: set dummy vim; ac_word=$2
                   6621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6622: $as_echo_n "checking for $ac_word... " >&6; }
                   6623: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6624:   $as_echo_n "(cached) " >&6
1.1       bertrand 6625: else
1.15      bertrand 6626:   if test -n "$VIM"; then
                   6627:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6628: else
1.15      bertrand 6629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6630: for as_dir in $PATH
                   6631: do
                   6632:   IFS=$as_save_IFS
                   6633:   test -z "$as_dir" && as_dir=.
                   6634:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6635:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6636:     ac_cv_prog_VIM="yes"
                   6637:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6638:     break 2
                   6639:   fi
                   6640: done
                   6641:   done
                   6642: IFS=$as_save_IFS
1.1       bertrand 6643: 
1.15      bertrand 6644:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6645: fi
                   6646: fi
1.15      bertrand 6647: VIM=$ac_cv_prog_VIM
                   6648: if test -n "$VIM"; then
                   6649:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6650: $as_echo "$VIM" >&6; }
1.1       bertrand 6651: else
1.15      bertrand 6652:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6653: $as_echo "no" >&6; }
                   6654: fi
1.1       bertrand 6655: 
                   6656: 
1.15      bertrand 6657:    if test "$VIM" = no; then
                   6658:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6659: Download at http://www.vim.org/
                   6660: " >&5
                   6661: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6662: Download at http://www.vim.org/
                   6663: " >&2;}
                   6664:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6665:    else
                   6666:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6667:    fi
1.1       bertrand 6668: else
1.15      bertrand 6669:    if test "$VIM_SUPPORT" = no; then
                   6670:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6671:    else
                   6672:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6673:    fi
1.1       bertrand 6674: fi
                   6675: 
1.15      bertrand 6676: if test "$MOTIF_SUPPORT" = guessed; then
                   6677:    CFLAGS_ORIG=$CFLAGS
                   6678:    LIBS_ORIG=$LIBS
                   6679:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6680:    LIBS="$LIB $X_LIBS"
                   6681:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6682: $as_echo_n "checking for main in -lXm... " >&6; }
                   6683: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6684:   $as_echo_n "(cached) " >&6
1.1       bertrand 6685: else
1.15      bertrand 6686:   ac_check_lib_save_LIBS=$LIBS
                   6687: LIBS="-lXm  $LIBS"
                   6688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6689: /* end confdefs.h.  */
1.1       bertrand 6690: 
                   6691: 
1.14      bertrand 6692: int
                   6693: main ()
                   6694: {
1.15      bertrand 6695: return main ();
1.14      bertrand 6696:   ;
                   6697:   return 0;
                   6698: }
                   6699: _ACEOF
1.15      bertrand 6700: if ac_fn_c_try_link "$LINENO"; then :
                   6701:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6702: else
1.15      bertrand 6703:   ac_cv_lib_Xm_main=no
                   6704: fi
                   6705: rm -f core conftest.err conftest.$ac_objext \
                   6706:     conftest$ac_exeext conftest.$ac_ext
                   6707: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6708: fi
1.15      bertrand 6709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6710: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6711: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6712:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6713: else
1.15      bertrand 6714:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6715: fi
1.14      bertrand 6716: 
1.15      bertrand 6717:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6718:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6719: Motif flag is disabled.
                   6720: " >&5
                   6721: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6722: Motif flag is disabled.
                   6723: " >&2;}
                   6724:    fi
                   6725:    LIBS=$LIBS_ORIG
                   6726:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6727: fi
                   6728: 
1.15      bertrand 6729: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6730:    CFLAGS_ORIG=$CFLAGS
                   6731:    LIBS_ORIG=$LIBS
                   6732:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6733:    LIBS="$LIB $X_LIBS"
                   6734:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6735: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6736: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6737:   $as_echo_n "(cached) " >&6
                   6738: else
                   6739:   ac_check_lib_save_LIBS=$LIBS
                   6740: LIBS="-lXpm  $LIBS"
                   6741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6742: /* end confdefs.h.  */
                   6743: 
1.1       bertrand 6744: 
                   6745: int
                   6746: main ()
                   6747: {
1.15      bertrand 6748: return main ();
1.1       bertrand 6749:   ;
                   6750:   return 0;
                   6751: }
                   6752: _ACEOF
1.15      bertrand 6753: if ac_fn_c_try_link "$LINENO"; then :
                   6754:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6755: else
1.15      bertrand 6756:   ac_cv_lib_Xpm_main=no
                   6757: fi
                   6758: rm -f core conftest.err conftest.$ac_objext \
                   6759:     conftest$ac_exeext conftest.$ac_ext
                   6760: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6761: fi
1.15      bertrand 6762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6763: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6764: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6765:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6766: else
                   6767:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6768: fi
1.15      bertrand 6769: 
                   6770:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6771:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6772:    else
                   6773:        libX=""
                   6774:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6775: Motif flag is disabled.
                   6776: " >&5
                   6777: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6778: Motif flag is disabled.
                   6779: " >&2;}
                   6780:    fi
                   6781:    LIBS=$LIBS_ORIG
                   6782:    CFLAGS=$CFLAGS_ORIG
                   6783: else
                   6784:    libX=""
1.1       bertrand 6785: fi
1.14      bertrand 6786: 
                   6787: 
                   6788: 
1.1       bertrand 6789: 
                   6790: 
1.15      bertrand 6791: 
                   6792: 
                   6793: 
                   6794: 
                   6795: 
                   6796: 
                   6797: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6798: 
                   6799: 
                   6800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6801: $as_echo_n "checking for main in -lm... " >&6; }
                   6802: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6803:   $as_echo_n "(cached) " >&6
1.1       bertrand 6804: else
1.15      bertrand 6805:   ac_check_lib_save_LIBS=$LIBS
                   6806: LIBS="-lm  $LIBS"
                   6807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6808: /* end confdefs.h.  */
1.15      bertrand 6809: 
                   6810: 
1.1       bertrand 6811: int
                   6812: main ()
                   6813: {
1.15      bertrand 6814: return main ();
1.1       bertrand 6815:   ;
                   6816:   return 0;
                   6817: }
                   6818: _ACEOF
1.15      bertrand 6819: if ac_fn_c_try_link "$LINENO"; then :
                   6820:   ac_cv_lib_m_main=yes
1.1       bertrand 6821: else
1.15      bertrand 6822:   ac_cv_lib_m_main=no
                   6823: fi
                   6824: rm -f core conftest.err conftest.$ac_objext \
                   6825:     conftest$ac_exeext conftest.$ac_ext
                   6826: LIBS=$ac_check_lib_save_LIBS
                   6827: fi
                   6828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6829: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6830: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6831:   cat >>confdefs.h <<_ACEOF
                   6832: #define HAVE_LIBM 1
                   6833: _ACEOF
1.14      bertrand 6834: 
1.15      bertrand 6835:   LIBS="-lm $LIBS"
1.1       bertrand 6836: 
1.15      bertrand 6837: else
                   6838:   as_fn_error "Can not find libm !" "$LINENO" 5
1.1       bertrand 6839: fi
                   6840: 
1.15      bertrand 6841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6842: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6843: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6844:   $as_echo_n "(cached) " >&6
1.1       bertrand 6845: else
1.15      bertrand 6846:   ac_check_lib_save_LIBS=$LIBS
                   6847: LIBS="-lpthread  $LIBS"
                   6848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6849: /* end confdefs.h.  */
1.15      bertrand 6850: 
                   6851: 
1.14      bertrand 6852: int
                   6853: main ()
                   6854: {
1.15      bertrand 6855: return main ();
1.14      bertrand 6856:   ;
                   6857:   return 0;
                   6858: }
                   6859: _ACEOF
1.15      bertrand 6860: if ac_fn_c_try_link "$LINENO"; then :
                   6861:   ac_cv_lib_pthread_main=yes
                   6862: else
                   6863:   ac_cv_lib_pthread_main=no
                   6864: fi
                   6865: rm -f core conftest.err conftest.$ac_objext \
                   6866:     conftest$ac_exeext conftest.$ac_ext
                   6867: LIBS=$ac_check_lib_save_LIBS
                   6868: fi
                   6869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   6870: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   6871: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   6872:   cat >>confdefs.h <<_ACEOF
                   6873: #define HAVE_LIBPTHREAD 1
1.14      bertrand 6874: _ACEOF
                   6875: 
1.15      bertrand 6876:   LIBS="-lpthread $LIBS"
                   6877: 
1.1       bertrand 6878: else
1.15      bertrand 6879:   as_fn_error "Can not find libpthread !" "$LINENO" 5
                   6880: fi
1.14      bertrand 6881: 
1.1       bertrand 6882: 
1.15      bertrand 6883: if test "$CYGWIN" != yes; then
                   6884:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   6885: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   6886: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   6887:   $as_echo_n "(cached) " >&6
1.1       bertrand 6888: else
1.15      bertrand 6889:   ac_check_lib_save_LIBS=$LIBS
                   6890: LIBS="-ldl  $LIBS"
                   6891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6892: /* end confdefs.h.  */
                   6893: 
1.15      bertrand 6894: /* Override any GCC internal prototype to avoid an error.
                   6895:    Use char because int might match the return type of a GCC
                   6896:    builtin and then its argument prototype would still apply.  */
                   6897: #ifdef __cplusplus
                   6898: extern "C"
                   6899: #endif
                   6900: char dlopen ();
1.1       bertrand 6901: int
                   6902: main ()
                   6903: {
1.15      bertrand 6904: return dlopen ();
1.1       bertrand 6905:   ;
                   6906:   return 0;
                   6907: }
                   6908: _ACEOF
1.15      bertrand 6909: if ac_fn_c_try_link "$LINENO"; then :
                   6910:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 6911: else
1.15      bertrand 6912:   ac_cv_lib_dl_dlopen=no
                   6913: fi
                   6914: rm -f core conftest.err conftest.$ac_objext \
                   6915:     conftest$ac_exeext conftest.$ac_ext
                   6916: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6917: fi
1.15      bertrand 6918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   6919: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   6920: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   6921:   LIBS="$LIBS -ldl"
1.14      bertrand 6922: else
1.15      bertrand 6923:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   6924: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 6925: fi
                   6926: 
1.14      bertrand 6927: fi
1.1       bertrand 6928: 
1.15      bertrand 6929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   6930: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   6931: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   6932:   $as_echo_n "(cached) " >&6
                   6933: else
                   6934:   ac_check_lib_save_LIBS=$LIBS
                   6935: LIBS="-lrt  $LIBS"
                   6936: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6937: /* end confdefs.h.  */
1.15      bertrand 6938: 
                   6939: /* Override any GCC internal prototype to avoid an error.
                   6940:    Use char because int might match the return type of a GCC
                   6941:    builtin and then its argument prototype would still apply.  */
                   6942: #ifdef __cplusplus
                   6943: extern "C"
                   6944: #endif
                   6945: char nanosleep ();
1.1       bertrand 6946: int
                   6947: main ()
                   6948: {
1.15      bertrand 6949: return nanosleep ();
1.1       bertrand 6950:   ;
                   6951:   return 0;
                   6952: }
                   6953: _ACEOF
1.15      bertrand 6954: if ac_fn_c_try_link "$LINENO"; then :
                   6955:   ac_cv_lib_rt_nanosleep=yes
                   6956: else
                   6957:   ac_cv_lib_rt_nanosleep=no
                   6958: fi
                   6959: rm -f core conftest.err conftest.$ac_objext \
                   6960:     conftest$ac_exeext conftest.$ac_ext
                   6961: LIBS=$ac_check_lib_save_LIBS
                   6962: fi
                   6963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   6964: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   6965: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   6966:   LIBS="$LIBS -lrt"
1.1       bertrand 6967: else
1.15      bertrand 6968:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   6969: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   6970: fi
1.1       bertrand 6971: 
                   6972: 
1.15      bertrand 6973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   6974: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   6975: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   6976:   $as_echo_n "(cached) " >&6
1.1       bertrand 6977: else
1.15      bertrand 6978:   ac_check_lib_save_LIBS=$LIBS
                   6979: LIBS="-lsocket  $LIBS"
                   6980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6981: /* end confdefs.h.  */
1.15      bertrand 6982: 
                   6983: /* Override any GCC internal prototype to avoid an error.
                   6984:    Use char because int might match the return type of a GCC
                   6985:    builtin and then its argument prototype would still apply.  */
                   6986: #ifdef __cplusplus
                   6987: extern "C"
                   6988: #endif
                   6989: char bind ();
1.1       bertrand 6990: int
                   6991: main ()
                   6992: {
1.15      bertrand 6993: return bind ();
1.1       bertrand 6994:   ;
                   6995:   return 0;
                   6996: }
                   6997: _ACEOF
1.15      bertrand 6998: if ac_fn_c_try_link "$LINENO"; then :
                   6999:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7000: else
1.15      bertrand 7001:   ac_cv_lib_socket_bind=no
1.1       bertrand 7002: fi
1.15      bertrand 7003: rm -f core conftest.err conftest.$ac_objext \
                   7004:     conftest$ac_exeext conftest.$ac_ext
                   7005: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7006: fi
1.15      bertrand 7007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7008: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7009: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7010:   LIBS="$LIBS -lsocket"
                   7011: else
                   7012:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7013: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7014: fi
                   7015: 
                   7016: 
1.15      bertrand 7017: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7018: 
                   7019: # Check whether --with-mysql was given.
                   7020: if test "${with_mysql+set}" = set; then :
                   7021:   withval=$with_mysql;
                   7022: else
                   7023:   with_mysql=check
                   7024: fi
1.14      bertrand 7025: 
                   7026: 
1.15      bertrand 7027: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7028:    libMySQLinc="-I/usr/include"
                   7029:    libMySQLlib="-L/usr/lib"
1.14      bertrand 7030: 
1.15      bertrand 7031:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7032: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7033:    saved_CFLAGS="$CFLAGS"
                   7034:    CFLAGS="$CFLAGS $libMySQLinc"
                   7035:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7036: /* end confdefs.h.  */
1.15      bertrand 7037: #include "mysql.h"
1.1       bertrand 7038: int
                   7039: main ()
                   7040: {
1.15      bertrand 7041: 
1.1       bertrand 7042:   ;
                   7043:   return 0;
                   7044: }
                   7045: _ACEOF
1.15      bertrand 7046: if ac_fn_c_try_compile "$LINENO"; then :
                   7047:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7048: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7049:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7050: else
1.15      bertrand 7051:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7052: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7053: fi
1.14      bertrand 7054: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7055:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7056: 
1.15      bertrand 7057:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7058:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7059: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7060:        saved_CFLAGS="$CFLAGS"
                   7061:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7062:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7063: /* end confdefs.h.  */
1.15      bertrand 7064: #include "mysql.h"
1.1       bertrand 7065: int
                   7066: main ()
                   7067: {
                   7068: 
                   7069:   ;
                   7070:   return 0;
                   7071: }
                   7072: _ACEOF
1.15      bertrand 7073: if ac_fn_c_try_compile "$LINENO"; then :
                   7074:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7075: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7076:                        libMySQLinc=$libMySQLinc
                   7077: else
                   7078:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7079: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7080: fi
                   7081: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7082:        CFLAGS=$saved_CFLAGS
                   7083:        libMySQLinc=$libMySQLinc/mysql
                   7084:    fi
                   7085: 
                   7086:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7087:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7088: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7089:        saved_CFLAGS="$CFLAGS"
                   7090:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7091:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7092: /* end confdefs.h.  */
1.15      bertrand 7093: #include "mysql.h"
1.1       bertrand 7094: int
                   7095: main ()
                   7096: {
                   7097: 
                   7098:   ;
                   7099:   return 0;
                   7100: }
                   7101: _ACEOF
1.15      bertrand 7102: if ac_fn_c_try_compile "$LINENO"; then :
                   7103:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7104: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7105:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7106: else
1.15      bertrand 7107:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7108: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7109: fi
                   7110: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7111:        CFLAGS=$saved_CFLAGS
                   7112:        libMySQLinc=$libMySQLinc/../local/include
                   7113:        libMySQLlib=$libMySQLlib/../local/lib
                   7114:    fi
1.1       bertrand 7115: 
1.15      bertrand 7116:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7117:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7118: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7119:        saved_CFLAGS="$CFLAGS"
                   7120:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7121:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7122: /* end confdefs.h.  */
1.15      bertrand 7123: #include "mysql.h"
1.1       bertrand 7124: int
                   7125: main ()
                   7126: {
                   7127: 
                   7128:   ;
                   7129:   return 0;
                   7130: }
                   7131: _ACEOF
1.15      bertrand 7132: if ac_fn_c_try_compile "$LINENO"; then :
                   7133:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7134: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7135:                        libMySQLinc=$libMySQLinc/mysql
                   7136: else
                   7137:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7138: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7139: fi
                   7140: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7141:        CFLAGS=$saved_CFLAGS
                   7142:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7143:        libMySQLlib=$libMySQLlib/../local/lib
                   7144:    fi
                   7145: else
                   7146:    if test "x$with_mysql" != xno; then
                   7147:        libMySQLinc="-I$with_mysql/include"
                   7148:        libMySQLlib="-L$with_mysql/lib"
                   7149: 
                   7150:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7151: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7152:        saved_CFLAGS="$CFLAGS"
                   7153:        CFLAGS="$CFLAGS $libMySQLinc"
                   7154:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7155: /* end confdefs.h.  */
1.15      bertrand 7156: #include "mysql.h"
1.1       bertrand 7157: int
                   7158: main ()
                   7159: {
                   7160: 
                   7161:   ;
                   7162:   return 0;
                   7163: }
                   7164: _ACEOF
1.15      bertrand 7165: if ac_fn_c_try_compile "$LINENO"; then :
                   7166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7167: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7168:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7169: else
1.15      bertrand 7170:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7171: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7172: fi
                   7173: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7174:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7175: 
1.15      bertrand 7176:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7177:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7178: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7179:            saved_CFLAGS="$CFLAGS"
                   7180:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7181:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7182: /* end confdefs.h.  */
1.15      bertrand 7183: #include "mysql.h"
1.1       bertrand 7184: int
                   7185: main ()
                   7186: {
                   7187: 
                   7188:   ;
                   7189:   return 0;
                   7190: }
                   7191: _ACEOF
1.15      bertrand 7192: if ac_fn_c_try_compile "$LINENO"; then :
                   7193:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7194: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7195:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7196: else
1.15      bertrand 7197:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7198: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7199: fi
                   7200: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7201:            CFLAGS=$saved_CFLAGS
                   7202:            libMySQLinc=$libMySQLinc/mysql
                   7203:        fi
                   7204:    else
                   7205:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7206:    fi
                   7207: fi
1.14      bertrand 7208: 
1.15      bertrand 7209: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7210:    MYSQL_LIB=no
1.14      bertrand 7211: 
1.15      bertrand 7212:    if test $MYSQL_LIB = no; then
                   7213:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7214: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7215:        saved_LIBS="$LIBS"
                   7216:        LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
                   7217:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7218: /* end confdefs.h.  */
1.15      bertrand 7219: #include "mysql.h"
1.1       bertrand 7220: int
                   7221: main ()
                   7222: {
1.15      bertrand 7223: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7224:   ;
                   7225:   return 0;
                   7226: }
                   7227: _ACEOF
1.15      bertrand 7228: if ac_fn_c_try_link "$LINENO"; then :
                   7229:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7230: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7231: else
1.15      bertrand 7232:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7233: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7234: fi
                   7235: rm -f core conftest.err conftest.$ac_objext \
                   7236:     conftest$ac_exeext conftest.$ac_ext
                   7237:        LIBS=$saved_LIBS;
                   7238:        libMySQLlib="$libMySQLlib -lmysqlclient_r"
                   7239:    fi
1.14      bertrand 7240: 
1.15      bertrand 7241:    if test $MYSQL_LIB = no; then
                   7242:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7243:    fi
1.14      bertrand 7244: fi
1.15      bertrand 7245: 
                   7246: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7247:    libMySQLinc=
                   7248:    libMySQLlib=
1.1       bertrand 7249: fi
1.14      bertrand 7250: 
                   7251: 
                   7252: 
1.1       bertrand 7253: 
                   7254: 
1.15      bertrand 7255: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7256: 
                   7257: # Check whether --with-postgresql was given.
                   7258: if test "${with_postgresql+set}" = set; then :
                   7259:   withval=$with_postgresql;
1.14      bertrand 7260: else
1.15      bertrand 7261:   with_postgresql=check
                   7262: fi
                   7263: 
                   7264: 
                   7265: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7266: # no [--without], valeur [--with=valeur].
                   7267: 
                   7268: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7269:    libPgSQLinc="-I/usr/include"
                   7270:    libPgSQLlib="-L/usr/lib"
                   7271: 
                   7272:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7273: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7274:    saved_CFLAGS="$CFLAGS"
                   7275:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7276:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7277: /* end confdefs.h.  */
1.15      bertrand 7278: #include "libpq-fe.h"
1.1       bertrand 7279: int
                   7280: main ()
                   7281: {
1.15      bertrand 7282: 
1.1       bertrand 7283:   ;
                   7284:   return 0;
                   7285: }
                   7286: _ACEOF
1.15      bertrand 7287: if ac_fn_c_try_compile "$LINENO"; then :
                   7288:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7289: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7290: else
1.15      bertrand 7291:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7292: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7293: fi
1.14      bertrand 7294: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7295:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7296: 
1.15      bertrand 7297:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7298:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7299: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7300:        saved_CFLAGS="$CFLAGS"
                   7301:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7302:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7303: /* end confdefs.h.  */
1.15      bertrand 7304: #include "libpq-fe.h"
1.1       bertrand 7305: int
                   7306: main ()
                   7307: {
                   7308: 
                   7309:   ;
                   7310:   return 0;
                   7311: }
                   7312: _ACEOF
1.15      bertrand 7313: if ac_fn_c_try_compile "$LINENO"; then :
                   7314:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7315: $as_echo "yes" >&6; };
                   7316:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7317: else
                   7318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7319: $as_echo "no" >&6; };
                   7320:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7321: fi
                   7322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7323:        CFLAGS=$saved_CFLAGS
                   7324:        libPgSQLinc=$libPgSQLinc/postgresql
                   7325:    fi
                   7326: 
                   7327:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7328:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7329: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7330:        saved_CFLAGS="$CFLAGS"
                   7331:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7332:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7333: /* end confdefs.h.  */
1.15      bertrand 7334: #include "libpq-fe.h"
1.1       bertrand 7335: int
                   7336: main ()
                   7337: {
                   7338: 
                   7339:   ;
                   7340:   return 0;
                   7341: }
                   7342: _ACEOF
1.15      bertrand 7343: if ac_fn_c_try_compile "$LINENO"; then :
                   7344:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7345: $as_echo "yes" >&6; };
                   7346:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7347: else
1.15      bertrand 7348:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7349: $as_echo "no" >&6; };
                   7350:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7351: fi
                   7352: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7353:        CFLAGS=$saved_CFLAGS
                   7354:        libPgSQLinc=$libPgSQLinc/pgsql
                   7355:    fi
1.1       bertrand 7356: 
1.15      bertrand 7357:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7358:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7359: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7360:        saved_CFLAGS="$CFLAGS"
                   7361:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7362:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7363: /* end confdefs.h.  */
1.15      bertrand 7364: #include "libpq-fe.h"
1.1       bertrand 7365: int
                   7366: main ()
                   7367: {
                   7368: 
                   7369:   ;
                   7370:   return 0;
                   7371: }
                   7372: _ACEOF
1.15      bertrand 7373: if ac_fn_c_try_compile "$LINENO"; then :
                   7374:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7375: $as_echo "yes" >&6; };
                   7376:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7377: else
                   7378:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7379: $as_echo "no" >&6; };
                   7380:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7381: fi
                   7382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7383:        CFLAGS=$saved_CFLAGS
                   7384:        libPgSQLinc=$libPgSQLinc/../local/include
                   7385:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7386:    fi
                   7387: 
                   7388:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7389:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7390: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7391:        saved_CFLAGS="$CFLAGS"
                   7392:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7393:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7394: /* end confdefs.h.  */
1.15      bertrand 7395: #include "libpq-fe.h"
1.1       bertrand 7396: int
                   7397: main ()
                   7398: {
                   7399: 
                   7400:   ;
                   7401:   return 0;
                   7402: }
                   7403: _ACEOF
1.15      bertrand 7404: if ac_fn_c_try_compile "$LINENO"; then :
                   7405:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7406: $as_echo "yes" >&6; };
                   7407:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7408: else
1.15      bertrand 7409:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7410: $as_echo "no" >&6; };
                   7411:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7412: fi
                   7413: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7414:        CFLAGS=$saved_CFLAGS
                   7415:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7416:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7417:    fi
1.14      bertrand 7418: 
1.15      bertrand 7419:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7420:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7421: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7422:        saved_CFLAGS="$CFLAGS"
                   7423:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7424:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7425: /* end confdefs.h.  */
1.15      bertrand 7426: #include "libpq-fe.h"
1.1       bertrand 7427: int
                   7428: main ()
                   7429: {
                   7430: 
                   7431:   ;
                   7432:   return 0;
                   7433: }
                   7434: _ACEOF
1.15      bertrand 7435: if ac_fn_c_try_compile "$LINENO"; then :
                   7436:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7437: $as_echo "yes" >&6; };
                   7438:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7439: else
1.15      bertrand 7440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7441: $as_echo "no" >&6; };
                   7442:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7443: fi
                   7444: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7445:        CFLAGS=$saved_CFLAGS
                   7446:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7447:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7448:    fi
1.14      bertrand 7449: else
1.15      bertrand 7450:    if test "x$with_postgresql" != xno; then
                   7451:        libPgSQLinc="-I$with_postgresql/include"
                   7452:        libPgSQLlib="-L$with_postgresql/lib"
                   7453: 
                   7454:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7455: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7456:        saved_CFLAGS="$CFLAGS"
                   7457:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7458:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7459: /* end confdefs.h.  */
1.15      bertrand 7460: #include "libpq-fe.h"
1.1       bertrand 7461: int
                   7462: main ()
                   7463: {
                   7464: 
                   7465:   ;
                   7466:   return 0;
                   7467: }
                   7468: _ACEOF
1.15      bertrand 7469: if ac_fn_c_try_compile "$LINENO"; then :
                   7470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7471: $as_echo "yes" >&6; };
                   7472:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7473: else
1.15      bertrand 7474:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7475: $as_echo "no" >&6; };
                   7476:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7477: fi
1.15      bertrand 7478: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7479:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7480: 
1.15      bertrand 7481:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7482:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7483: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7484:            saved_CFLAGS="$CFLAGS"
                   7485:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7486:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7487: /* end confdefs.h.  */
1.15      bertrand 7488: #include "libpq-fe.h"
1.1       bertrand 7489: int
                   7490: main ()
                   7491: {
1.15      bertrand 7492: 
1.1       bertrand 7493:   ;
                   7494:   return 0;
                   7495: }
                   7496: _ACEOF
1.15      bertrand 7497: if ac_fn_c_try_compile "$LINENO"; then :
                   7498:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7499: $as_echo "yes" >&6; };
                   7500:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7501: else
1.15      bertrand 7502:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7503: $as_echo "no" >&6; };
                   7504:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7505: fi
                   7506: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7507:            CFLAGS=$saved_CFLAGS
                   7508:            libPgSQLinc=$libPgSQLinc/postgresql
                   7509:        fi
1.14      bertrand 7510: 
1.15      bertrand 7511:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7512:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7513: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7514:            saved_CFLAGS="$CFLAGS"
                   7515:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7516:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7517: /* end confdefs.h.  */
1.15      bertrand 7518: #include "libpq-fe.h"
1.1       bertrand 7519: int
                   7520: main ()
                   7521: {
1.15      bertrand 7522: 
1.1       bertrand 7523:   ;
                   7524:   return 0;
                   7525: }
                   7526: _ACEOF
1.15      bertrand 7527: if ac_fn_c_try_compile "$LINENO"; then :
                   7528:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7529: $as_echo "yes" >&6; };
                   7530:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7531: else
1.15      bertrand 7532:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7533: $as_echo "no" >&6; };
                   7534:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7535: fi
1.15      bertrand 7536: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7537:            CFLAGS=$saved_CFLAGS
                   7538:            libPgSQLinc=$libPgSQLinc/pgsql
                   7539:        fi
                   7540:    else
                   7541:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7542:    fi
1.1       bertrand 7543: fi
                   7544: 
1.15      bertrand 7545: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7546:    POSTGRESQL_LIB=no
1.1       bertrand 7547: 
1.15      bertrand 7548:    if test $POSTGRESQL_LIB = no; then
                   7549:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7550: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7551:        saved_LIBS="$LIBS"
                   7552:        LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
                   7553:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7554: /* end confdefs.h.  */
1.15      bertrand 7555: #include "libpq-fe.h"
1.1       bertrand 7556: int
                   7557: main ()
                   7558: {
1.15      bertrand 7559: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7560:             PQconnectdb(conninfo);
1.1       bertrand 7561:   ;
                   7562:   return 0;
                   7563: }
                   7564: _ACEOF
1.15      bertrand 7565: if ac_fn_c_try_link "$LINENO"; then :
                   7566:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7567: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7568: else
1.15      bertrand 7569:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7570: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7571: fi
                   7572: rm -f core conftest.err conftest.$ac_objext \
                   7573:     conftest$ac_exeext conftest.$ac_ext
                   7574:        LIBS=$saved_LIBS;
                   7575:        libPgSQLlib="$libPgSQLlib -lpq"
                   7576:    fi
                   7577: fi
                   7578: 
                   7579: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7580:    libPgSQLinc=
                   7581:    libPgSQLlib=
                   7582: fi
                   7583: 
                   7584: 
                   7585: 
                   7586: 
1.14      bertrand 7587: 
1.15      bertrand 7588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7589: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7590: if test "${ac_cv_path_GREP+set}" = set; then :
                   7591:   $as_echo_n "(cached) " >&6
                   7592: else
                   7593:   if test -z "$GREP"; then
                   7594:   ac_path_GREP_found=false
                   7595:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7596:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7597: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7598: do
                   7599:   IFS=$as_save_IFS
                   7600:   test -z "$as_dir" && as_dir=.
                   7601:     for ac_prog in grep ggrep; do
                   7602:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7603:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7604:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7605: # Check for GNU ac_path_GREP and select it if it is found.
                   7606:   # Check for GNU $ac_path_GREP
                   7607: case `"$ac_path_GREP" --version 2>&1` in
                   7608: *GNU*)
                   7609:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7610: *)
                   7611:   ac_count=0
                   7612:   $as_echo_n 0123456789 >"conftest.in"
                   7613:   while :
                   7614:   do
                   7615:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7616:     mv "conftest.tmp" "conftest.in"
                   7617:     cp "conftest.in" "conftest.nl"
                   7618:     $as_echo 'GREP' >> "conftest.nl"
                   7619:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7620:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7621:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7622:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7623:       # Best one so far, save it but keep looking for a better one
                   7624:       ac_cv_path_GREP="$ac_path_GREP"
                   7625:       ac_path_GREP_max=$ac_count
                   7626:     fi
                   7627:     # 10*(2^10) chars as input seems more than enough
                   7628:     test $ac_count -gt 10 && break
                   7629:   done
                   7630:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7631: esac
1.14      bertrand 7632: 
1.15      bertrand 7633:       $ac_path_GREP_found && break 3
                   7634:     done
                   7635:   done
                   7636:   done
                   7637: IFS=$as_save_IFS
                   7638:   if test -z "$ac_cv_path_GREP"; then
                   7639:     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7640:   fi
                   7641: else
                   7642:   ac_cv_path_GREP=$GREP
1.1       bertrand 7643: fi
                   7644: 
                   7645: fi
1.15      bertrand 7646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7647: $as_echo "$ac_cv_path_GREP" >&6; }
                   7648:  GREP="$ac_cv_path_GREP"
                   7649: 
                   7650: 
                   7651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7652: $as_echo_n "checking for egrep... " >&6; }
                   7653: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7654:   $as_echo_n "(cached) " >&6
                   7655: else
                   7656:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7657:    then ac_cv_path_EGREP="$GREP -E"
                   7658:    else
                   7659:      if test -z "$EGREP"; then
                   7660:   ac_path_EGREP_found=false
                   7661:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7662:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7663: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7664: do
                   7665:   IFS=$as_save_IFS
                   7666:   test -z "$as_dir" && as_dir=.
                   7667:     for ac_prog in egrep; do
                   7668:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7669:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7670:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7671: # Check for GNU ac_path_EGREP and select it if it is found.
                   7672:   # Check for GNU $ac_path_EGREP
                   7673: case `"$ac_path_EGREP" --version 2>&1` in
                   7674: *GNU*)
                   7675:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7676: *)
                   7677:   ac_count=0
                   7678:   $as_echo_n 0123456789 >"conftest.in"
                   7679:   while :
                   7680:   do
                   7681:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7682:     mv "conftest.tmp" "conftest.in"
                   7683:     cp "conftest.in" "conftest.nl"
                   7684:     $as_echo 'EGREP' >> "conftest.nl"
                   7685:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7686:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7687:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7688:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7689:       # Best one so far, save it but keep looking for a better one
                   7690:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7691:       ac_path_EGREP_max=$ac_count
                   7692:     fi
                   7693:     # 10*(2^10) chars as input seems more than enough
                   7694:     test $ac_count -gt 10 && break
                   7695:   done
                   7696:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7697: esac
                   7698: 
                   7699:       $ac_path_EGREP_found && break 3
                   7700:     done
                   7701:   done
                   7702:   done
                   7703: IFS=$as_save_IFS
                   7704:   if test -z "$ac_cv_path_EGREP"; then
                   7705:     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7706:   fi
1.1       bertrand 7707: else
1.15      bertrand 7708:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7709: fi
                   7710: 
1.15      bertrand 7711:    fi
1.1       bertrand 7712: fi
1.15      bertrand 7713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7714: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7715:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7716: 
                   7717: 
1.15      bertrand 7718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7719: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7720: if test "${ac_cv_header_stdc+set}" = set; then :
                   7721:   $as_echo_n "(cached) " >&6
1.1       bertrand 7722: else
1.15      bertrand 7723:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7724: /* end confdefs.h.  */
                   7725: #include <stdlib.h>
                   7726: #include <stdarg.h>
                   7727: #include <string.h>
                   7728: #include <float.h>
                   7729: 
                   7730: int
                   7731: main ()
                   7732: {
                   7733: 
                   7734:   ;
                   7735:   return 0;
                   7736: }
                   7737: _ACEOF
1.15      bertrand 7738: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7739:   ac_cv_header_stdc=yes
                   7740: else
1.15      bertrand 7741:   ac_cv_header_stdc=no
1.1       bertrand 7742: fi
                   7743: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7744: 
                   7745: if test $ac_cv_header_stdc = yes; then
                   7746:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7747:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7748: /* end confdefs.h.  */
                   7749: #include <string.h>
                   7750: 
                   7751: _ACEOF
                   7752: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7753:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7754: 
1.1       bertrand 7755: else
                   7756:   ac_cv_header_stdc=no
                   7757: fi
                   7758: rm -f conftest*
                   7759: 
                   7760: fi
                   7761: 
                   7762: if test $ac_cv_header_stdc = yes; then
                   7763:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7764:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7765: /* end confdefs.h.  */
                   7766: #include <stdlib.h>
                   7767: 
                   7768: _ACEOF
                   7769: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7770:   $EGREP "free" >/dev/null 2>&1; then :
                   7771: 
1.1       bertrand 7772: else
                   7773:   ac_cv_header_stdc=no
                   7774: fi
                   7775: rm -f conftest*
                   7776: 
                   7777: fi
                   7778: 
                   7779: if test $ac_cv_header_stdc = yes; then
                   7780:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 7781:   if test "$cross_compiling" = yes; then :
1.1       bertrand 7782:   :
                   7783: else
1.15      bertrand 7784:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7785: /* end confdefs.h.  */
                   7786: #include <ctype.h>
                   7787: #include <stdlib.h>
                   7788: #if ((' ' & 0x0FF) == 0x020)
                   7789: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7790: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7791: #else
                   7792: # define ISLOWER(c) \
                   7793:           (('a' <= (c) && (c) <= 'i') \
                   7794:             || ('j' <= (c) && (c) <= 'r') \
                   7795:             || ('s' <= (c) && (c) <= 'z'))
                   7796: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7797: #endif
                   7798: 
                   7799: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   7800: int
                   7801: main ()
                   7802: {
                   7803:   int i;
                   7804:   for (i = 0; i < 256; i++)
                   7805:     if (XOR (islower (i), ISLOWER (i))
                   7806:    || toupper (i) != TOUPPER (i))
                   7807:       return 2;
                   7808:   return 0;
                   7809: }
                   7810: _ACEOF
1.15      bertrand 7811: if ac_fn_c_try_run "$LINENO"; then :
                   7812: 
1.14      bertrand 7813: else
1.15      bertrand 7814:   ac_cv_header_stdc=no
                   7815: fi
                   7816: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7817:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7818: fi
1.1       bertrand 7819: 
                   7820: fi
                   7821: fi
1.15      bertrand 7822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   7823: $as_echo "$ac_cv_header_stdc" >&6; }
                   7824: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 7825: 
1.15      bertrand 7826: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 7827: 
1.1       bertrand 7828: fi
                   7829: 
1.15      bertrand 7830: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   7831: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   7832:          inttypes.h stdint.h unistd.h
                   7833: do :
                   7834:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   7835: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   7836: "
                   7837: eval as_val=\$$as_ac_Header
                   7838:    if test "x$as_val" = x""yes; then :
                   7839:   cat >>confdefs.h <<_ACEOF
                   7840: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 7841: _ACEOF
1.1       bertrand 7842: 
                   7843: fi
                   7844: 
1.15      bertrand 7845: done
                   7846: 
                   7847: 
                   7848: # The cast to long int works around a bug in the HP C Compiler
                   7849: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7850: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7851: # This bug is HP SR number 8606223364.
                   7852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   7853: $as_echo_n "checking size of void *... " >&6; }
                   7854: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   7855:   $as_echo_n "(cached) " >&6
                   7856: else
                   7857:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 7858: 
                   7859: else
1.15      bertrand 7860:   if test "$ac_cv_type_void_p" = yes; then
                   7861:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7862: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7863: { as_fn_set_status 77
                   7864: as_fn_error "cannot compute sizeof (void *)
                   7865: See \`config.log' for more details." "$LINENO" 5; }; }
                   7866:    else
                   7867:      ac_cv_sizeof_void_p=0
                   7868:    fi
                   7869: fi
1.1       bertrand 7870: 
                   7871: fi
1.15      bertrand 7872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   7873: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   7874: 
1.1       bertrand 7875: 
                   7876: 
1.15      bertrand 7877: cat >>confdefs.h <<_ACEOF
                   7878: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 7879: _ACEOF
1.1       bertrand 7880: 
1.15      bertrand 7881: 
                   7882: # The cast to long int works around a bug in the HP C Compiler
                   7883: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7884: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7885: # This bug is HP SR number 8606223364.
                   7886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   7887: $as_echo_n "checking size of char... " >&6; }
                   7888: if test "${ac_cv_sizeof_char+set}" = set; then :
                   7889:   $as_echo_n "(cached) " >&6
                   7890: else
                   7891:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   7892: 
                   7893: else
                   7894:   if test "$ac_cv_type_char" = yes; then
                   7895:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7896: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7897: { as_fn_set_status 77
                   7898: as_fn_error "cannot compute sizeof (char)
                   7899: See \`config.log' for more details." "$LINENO" 5; }; }
                   7900:    else
                   7901:      ac_cv_sizeof_char=0
                   7902:    fi
                   7903: fi
                   7904: 
1.1       bertrand 7905: fi
1.15      bertrand 7906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   7907: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 7908: 
                   7909: 
                   7910: 
1.15      bertrand 7911: cat >>confdefs.h <<_ACEOF
                   7912: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   7913: _ACEOF
1.1       bertrand 7914: 
                   7915: 
1.15      bertrand 7916: # The cast to long int works around a bug in the HP C Compiler
                   7917: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7918: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7919: # This bug is HP SR number 8606223364.
                   7920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   7921: $as_echo_n "checking size of short int... " >&6; }
                   7922: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   7923:   $as_echo_n "(cached) " >&6
                   7924: else
                   7925:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 7926: 
1.15      bertrand 7927: else
                   7928:   if test "$ac_cv_type_short_int" = yes; then
                   7929:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7930: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7931: { as_fn_set_status 77
                   7932: as_fn_error "cannot compute sizeof (short int)
                   7933: See \`config.log' for more details." "$LINENO" 5; }; }
                   7934:    else
                   7935:      ac_cv_sizeof_short_int=0
                   7936:    fi
                   7937: fi
1.1       bertrand 7938: 
1.15      bertrand 7939: fi
                   7940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   7941: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 7942: 
                   7943: 
                   7944: 
1.15      bertrand 7945: cat >>confdefs.h <<_ACEOF
                   7946: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   7947: _ACEOF
1.1       bertrand 7948: 
                   7949: 
1.15      bertrand 7950: # The cast to long int works around a bug in the HP C Compiler
                   7951: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7952: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7953: # This bug is HP SR number 8606223364.
                   7954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   7955: $as_echo_n "checking size of int... " >&6; }
                   7956: if test "${ac_cv_sizeof_int+set}" = set; then :
                   7957:   $as_echo_n "(cached) " >&6
                   7958: else
                   7959:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 7960: 
1.15      bertrand 7961: else
                   7962:   if test "$ac_cv_type_int" = yes; then
                   7963:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7964: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7965: { as_fn_set_status 77
                   7966: as_fn_error "cannot compute sizeof (int)
                   7967: See \`config.log' for more details." "$LINENO" 5; }; }
                   7968:    else
                   7969:      ac_cv_sizeof_int=0
                   7970:    fi
                   7971: fi
1.1       bertrand 7972: 
1.15      bertrand 7973: fi
                   7974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   7975: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 7976: 
                   7977: 
                   7978: 
1.15      bertrand 7979: cat >>confdefs.h <<_ACEOF
                   7980: #define SIZEOF_INT $ac_cv_sizeof_int
                   7981: _ACEOF
1.1       bertrand 7982: 
                   7983: 
1.15      bertrand 7984: # The cast to long int works around a bug in the HP C Compiler
                   7985: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7986: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7987: # This bug is HP SR number 8606223364.
                   7988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   7989: $as_echo_n "checking size of long int... " >&6; }
                   7990: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   7991:   $as_echo_n "(cached) " >&6
                   7992: else
                   7993:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 7994: 
1.14      bertrand 7995: else
1.15      bertrand 7996:   if test "$ac_cv_type_long_int" = yes; then
                   7997:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7998: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7999: { as_fn_set_status 77
                   8000: as_fn_error "cannot compute sizeof (long int)
                   8001: See \`config.log' for more details." "$LINENO" 5; }; }
                   8002:    else
                   8003:      ac_cv_sizeof_long_int=0
                   8004:    fi
                   8005: fi
1.1       bertrand 8006: 
                   8007: fi
1.15      bertrand 8008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8009: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8010: 
1.1       bertrand 8011: 
                   8012: 
1.15      bertrand 8013: cat >>confdefs.h <<_ACEOF
                   8014: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8015: _ACEOF
1.15      bertrand 8016: 
                   8017: 
                   8018: # The cast to long int works around a bug in the HP C Compiler
                   8019: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8020: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8021: # This bug is HP SR number 8606223364.
                   8022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8023: $as_echo_n "checking size of long long int... " >&6; }
                   8024: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8025:   $as_echo_n "(cached) " >&6
                   8026: else
                   8027:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8028: 
1.14      bertrand 8029: else
1.15      bertrand 8030:   if test "$ac_cv_type_long_long_int" = yes; then
                   8031:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8032: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8033: { as_fn_set_status 77
                   8034: as_fn_error "cannot compute sizeof (long long int)
                   8035: See \`config.log' for more details." "$LINENO" 5; }; }
                   8036:    else
                   8037:      ac_cv_sizeof_long_long_int=0
                   8038:    fi
                   8039: fi
1.1       bertrand 8040: 
1.14      bertrand 8041: fi
1.15      bertrand 8042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8043: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8044: 
                   8045: 
                   8046: 
                   8047: cat >>confdefs.h <<_ACEOF
                   8048: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8049: _ACEOF
1.1       bertrand 8050: 
                   8051: 
1.15      bertrand 8052: # The cast to long int works around a bug in the HP C Compiler
                   8053: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8054: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8055: # This bug is HP SR number 8606223364.
                   8056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8057: $as_echo_n "checking size of float... " >&6; }
                   8058: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8059:   $as_echo_n "(cached) " >&6
                   8060: else
                   8061:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8062: 
                   8063: else
1.15      bertrand 8064:   if test "$ac_cv_type_float" = yes; then
                   8065:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8066: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8067: { as_fn_set_status 77
                   8068: as_fn_error "cannot compute sizeof (float)
                   8069: See \`config.log' for more details." "$LINENO" 5; }; }
                   8070:    else
                   8071:      ac_cv_sizeof_float=0
                   8072:    fi
1.14      bertrand 8073: fi
                   8074: 
1.1       bertrand 8075: fi
1.15      bertrand 8076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8077: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8078: 
                   8079: 
                   8080: 
                   8081: cat >>confdefs.h <<_ACEOF
                   8082: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8083: _ACEOF
1.1       bertrand 8084: 
                   8085: 
1.15      bertrand 8086: # The cast to long int works around a bug in the HP C Compiler
                   8087: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8088: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8089: # This bug is HP SR number 8606223364.
                   8090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8091: $as_echo_n "checking size of double... " >&6; }
                   8092: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8093:   $as_echo_n "(cached) " >&6
                   8094: else
                   8095:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8096: 
1.15      bertrand 8097: else
                   8098:   if test "$ac_cv_type_double" = yes; then
                   8099:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8101: { as_fn_set_status 77
                   8102: as_fn_error "cannot compute sizeof (double)
                   8103: See \`config.log' for more details." "$LINENO" 5; }; }
                   8104:    else
                   8105:      ac_cv_sizeof_double=0
                   8106:    fi
                   8107: fi
1.1       bertrand 8108: 
1.15      bertrand 8109: fi
                   8110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8111: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8112: 
1.1       bertrand 8113: 
                   8114: 
1.15      bertrand 8115: cat >>confdefs.h <<_ACEOF
                   8116: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8117: _ACEOF
1.15      bertrand 8118: 
                   8119: 
                   8120: # The cast to long int works around a bug in the HP C Compiler
                   8121: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8122: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8123: # This bug is HP SR number 8606223364.
                   8124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8125: $as_echo_n "checking size of long double... " >&6; }
                   8126: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8127:   $as_echo_n "(cached) " >&6
                   8128: else
                   8129:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8130: 
1.14      bertrand 8131: else
1.15      bertrand 8132:   if test "$ac_cv_type_long_double" = yes; then
                   8133:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8134: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8135: { as_fn_set_status 77
                   8136: as_fn_error "cannot compute sizeof (long double)
                   8137: See \`config.log' for more details." "$LINENO" 5; }; }
                   8138:    else
                   8139:      ac_cv_sizeof_long_double=0
                   8140:    fi
                   8141: fi
1.1       bertrand 8142: 
                   8143: fi
1.15      bertrand 8144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8145: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8146: 
1.1       bertrand 8147: 
                   8148: 
1.15      bertrand 8149: cat >>confdefs.h <<_ACEOF
                   8150: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8151: _ACEOF
                   8152: 
                   8153: 
1.15      bertrand 8154: 
                   8155: ac_header_dirent=no
                   8156: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8157:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8159: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   8160: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
                   8161:   $as_echo_n "(cached) " >&6
1.1       bertrand 8162: else
1.15      bertrand 8163:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8164: /* end confdefs.h.  */
                   8165: #include <sys/types.h>
1.15      bertrand 8166: #include <$ac_hdr>
1.1       bertrand 8167: 
1.15      bertrand 8168: int
                   8169: main ()
                   8170: {
                   8171: if ((DIR *) 0)
                   8172: return 0;
                   8173:   ;
                   8174:   return 0;
                   8175: }
1.1       bertrand 8176: _ACEOF
1.15      bertrand 8177: if ac_fn_c_try_compile "$LINENO"; then :
                   8178:   eval "$as_ac_Header=yes"
1.1       bertrand 8179: else
1.15      bertrand 8180:   eval "$as_ac_Header=no"
                   8181: fi
                   8182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8183: fi
1.15      bertrand 8184: eval ac_res=\$$as_ac_Header
                   8185:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8186: $as_echo "$ac_res" >&6; }
                   8187: eval as_val=\$$as_ac_Header
                   8188:    if test "x$as_val" = x""yes; then :
                   8189:   cat >>confdefs.h <<_ACEOF
                   8190: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8191: _ACEOF
1.1       bertrand 8192: 
1.15      bertrand 8193: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8194: fi
                   8195: 
1.15      bertrand 8196: done
                   8197: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8198: if test $ac_header_dirent = dirent.h; then
                   8199:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8200: $as_echo_n "checking for library containing opendir... " >&6; }
                   8201: if test "${ac_cv_search_opendir+set}" = set; then :
                   8202:   $as_echo_n "(cached) " >&6
                   8203: else
                   8204:   ac_func_search_save_LIBS=$LIBS
                   8205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8206: /* end confdefs.h.  */
                   8207: 
                   8208: /* Override any GCC internal prototype to avoid an error.
                   8209:    Use char because int might match the return type of a GCC
                   8210:    builtin and then its argument prototype would still apply.  */
                   8211: #ifdef __cplusplus
                   8212: extern "C"
                   8213: #endif
                   8214: char opendir ();
                   8215: int
                   8216: main ()
                   8217: {
                   8218: return opendir ();
                   8219:   ;
                   8220:   return 0;
                   8221: }
1.14      bertrand 8222: _ACEOF
1.15      bertrand 8223: for ac_lib in '' dir; do
                   8224:   if test -z "$ac_lib"; then
                   8225:     ac_res="none required"
                   8226:   else
                   8227:     ac_res=-l$ac_lib
                   8228:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8229:   fi
                   8230:   if ac_fn_c_try_link "$LINENO"; then :
                   8231:   ac_cv_search_opendir=$ac_res
                   8232: fi
                   8233: rm -f core conftest.err conftest.$ac_objext \
                   8234:     conftest$ac_exeext
                   8235:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8236:   break
                   8237: fi
                   8238: done
                   8239: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8240: 
1.15      bertrand 8241: else
                   8242:   ac_cv_search_opendir=no
                   8243: fi
                   8244: rm conftest.$ac_ext
                   8245: LIBS=$ac_func_search_save_LIBS
                   8246: fi
                   8247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8248: $as_echo "$ac_cv_search_opendir" >&6; }
                   8249: ac_res=$ac_cv_search_opendir
                   8250: if test "$ac_res" != no; then :
                   8251:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8252: 
1.14      bertrand 8253: fi
1.1       bertrand 8254: 
                   8255: else
1.15      bertrand 8256:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8257: $as_echo_n "checking for library containing opendir... " >&6; }
                   8258: if test "${ac_cv_search_opendir+set}" = set; then :
                   8259:   $as_echo_n "(cached) " >&6
                   8260: else
                   8261:   ac_func_search_save_LIBS=$LIBS
                   8262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8263: /* end confdefs.h.  */
1.15      bertrand 8264: 
                   8265: /* Override any GCC internal prototype to avoid an error.
                   8266:    Use char because int might match the return type of a GCC
                   8267:    builtin and then its argument prototype would still apply.  */
                   8268: #ifdef __cplusplus
                   8269: extern "C"
                   8270: #endif
                   8271: char opendir ();
1.1       bertrand 8272: int
                   8273: main ()
                   8274: {
1.15      bertrand 8275: return opendir ();
1.1       bertrand 8276:   ;
                   8277:   return 0;
                   8278: }
                   8279: _ACEOF
1.15      bertrand 8280: for ac_lib in '' x; do
                   8281:   if test -z "$ac_lib"; then
                   8282:     ac_res="none required"
                   8283:   else
                   8284:     ac_res=-l$ac_lib
                   8285:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8286:   fi
                   8287:   if ac_fn_c_try_link "$LINENO"; then :
                   8288:   ac_cv_search_opendir=$ac_res
                   8289: fi
                   8290: rm -f core conftest.err conftest.$ac_objext \
                   8291:     conftest$ac_exeext
                   8292:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8293:   break
                   8294: fi
                   8295: done
                   8296: if test "${ac_cv_search_opendir+set}" = set; then :
                   8297: 
1.1       bertrand 8298: else
1.15      bertrand 8299:   ac_cv_search_opendir=no
                   8300: fi
                   8301: rm conftest.$ac_ext
                   8302: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8303: fi
1.15      bertrand 8304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8305: $as_echo "$ac_cv_search_opendir" >&6; }
                   8306: ac_res=$ac_cv_search_opendir
                   8307: if test "$ac_res" != no; then :
                   8308:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8309: 
1.1       bertrand 8310: fi
                   8311: 
                   8312: fi
                   8313: 
1.15      bertrand 8314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8315: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8316: if test "${ac_cv_header_stdc+set}" = set; then :
                   8317:   $as_echo_n "(cached) " >&6
1.1       bertrand 8318: else
1.15      bertrand 8319:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8320: /* end confdefs.h.  */
1.15      bertrand 8321: #include <stdlib.h>
                   8322: #include <stdarg.h>
                   8323: #include <string.h>
                   8324: #include <float.h>
                   8325: 
1.1       bertrand 8326: int
                   8327: main ()
                   8328: {
1.15      bertrand 8329: 
1.1       bertrand 8330:   ;
                   8331:   return 0;
                   8332: }
                   8333: _ACEOF
1.15      bertrand 8334: if ac_fn_c_try_compile "$LINENO"; then :
                   8335:   ac_cv_header_stdc=yes
1.14      bertrand 8336: else
1.15      bertrand 8337:   ac_cv_header_stdc=no
                   8338: fi
                   8339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8340: 
                   8341: if test $ac_cv_header_stdc = yes; then
                   8342:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8343:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8344: /* end confdefs.h.  */
                   8345: #include <string.h>
                   8346: 
                   8347: _ACEOF
                   8348: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8349:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8350: 
1.15      bertrand 8351: else
                   8352:   ac_cv_header_stdc=no
1.1       bertrand 8353: fi
1.15      bertrand 8354: rm -f conftest*
1.14      bertrand 8355: 
1.1       bertrand 8356: fi
                   8357: 
1.15      bertrand 8358: if test $ac_cv_header_stdc = yes; then
                   8359:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8360:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8361: /* end confdefs.h.  */
                   8362: #include <stdlib.h>
                   8363: 
1.14      bertrand 8364: _ACEOF
1.15      bertrand 8365: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8366:   $EGREP "free" >/dev/null 2>&1; then :
                   8367: 
                   8368: else
                   8369:   ac_cv_header_stdc=no
                   8370: fi
                   8371: rm -f conftest*
1.1       bertrand 8372: 
                   8373: fi
                   8374: 
1.15      bertrand 8375: if test $ac_cv_header_stdc = yes; then
                   8376:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8377:   if test "$cross_compiling" = yes; then :
                   8378:   :
1.1       bertrand 8379: else
1.15      bertrand 8380:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8381: /* end confdefs.h.  */
1.15      bertrand 8382: #include <ctype.h>
                   8383: #include <stdlib.h>
                   8384: #if ((' ' & 0x0FF) == 0x020)
                   8385: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8386: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8387: #else
                   8388: # define ISLOWER(c) \
                   8389:           (('a' <= (c) && (c) <= 'i') \
                   8390:             || ('j' <= (c) && (c) <= 'r') \
                   8391:             || ('s' <= (c) && (c) <= 'z'))
                   8392: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8393: #endif
1.1       bertrand 8394: 
1.15      bertrand 8395: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8396: int
                   8397: main ()
                   8398: {
1.15      bertrand 8399:   int i;
                   8400:   for (i = 0; i < 256; i++)
                   8401:     if (XOR (islower (i), ISLOWER (i))
                   8402:    || toupper (i) != TOUPPER (i))
                   8403:       return 2;
1.1       bertrand 8404:   return 0;
                   8405: }
                   8406: _ACEOF
1.15      bertrand 8407: if ac_fn_c_try_run "$LINENO"; then :
                   8408: 
1.14      bertrand 8409: else
1.15      bertrand 8410:   ac_cv_header_stdc=no
                   8411: fi
                   8412: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8413:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8414: fi
1.14      bertrand 8415: 
1.1       bertrand 8416: fi
                   8417: fi
1.15      bertrand 8418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8419: $as_echo "$ac_cv_header_stdc" >&6; }
                   8420: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8421: 
1.15      bertrand 8422: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8423: 
                   8424: fi
                   8425: 
1.15      bertrand 8426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8427: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8428: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8429:   $as_echo_n "(cached) " >&6
1.1       bertrand 8430: else
1.15      bertrand 8431:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8432: /* end confdefs.h.  */
1.14      bertrand 8433: #include <sys/types.h>
1.15      bertrand 8434: #include <sys/wait.h>
                   8435: #ifndef WEXITSTATUS
                   8436: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8437: #endif
                   8438: #ifndef WIFEXITED
                   8439: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8440: #endif
1.1       bertrand 8441: 
                   8442: int
                   8443: main ()
                   8444: {
1.15      bertrand 8445:   int s;
                   8446:   wait (&s);
                   8447:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8448:   ;
                   8449:   return 0;
                   8450: }
                   8451: _ACEOF
1.15      bertrand 8452: if ac_fn_c_try_compile "$LINENO"; then :
                   8453:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8454: else
1.15      bertrand 8455:   ac_cv_header_sys_wait_h=no
                   8456: fi
                   8457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8458: fi
                   8459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8460: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8461: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8462: 
1.15      bertrand 8463: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8464: 
                   8465: fi
                   8466: 
1.15      bertrand 8467: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8468:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8469:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8470: do :
                   8471:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8472: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   8473: eval as_val=\$$as_ac_Header
                   8474:    if test "x$as_val" = x""yes; then :
                   8475:   cat >>confdefs.h <<_ACEOF
                   8476: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8477: _ACEOF
                   8478: 
                   8479: fi
                   8480: 
1.15      bertrand 8481: done
                   8482: 
1.1       bertrand 8483: 
1.15      bertrand 8484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8485: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8486: if test "${ac_cv_c_const+set}" = set; then :
                   8487:   $as_echo_n "(cached) " >&6
1.1       bertrand 8488: else
1.15      bertrand 8489:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8490: /* end confdefs.h.  */
                   8491: 
                   8492: int
                   8493: main ()
                   8494: {
1.15      bertrand 8495: /* FIXME: Include the comments suggested by Paul. */
                   8496: #ifndef __cplusplus
                   8497:   /* Ultrix mips cc rejects this.  */
                   8498:   typedef int charset[2];
                   8499:   const charset cs;
                   8500:   /* SunOS 4.1.1 cc rejects this.  */
                   8501:   char const *const *pcpcc;
                   8502:   char **ppc;
                   8503:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8504:   struct point {int x, y;};
                   8505:   static struct point const zero = {0,0};
                   8506:   /* AIX XL C 1.02.0.0 rejects this.
                   8507:      It does not let you subtract one const X* pointer from another in
                   8508:      an arm of an if-expression whose if-part is not a constant
                   8509:      expression */
                   8510:   const char *g = "string";
                   8511:   pcpcc = &g + (g ? g-g : 0);
                   8512:   /* HPUX 7.0 cc rejects these. */
                   8513:   ++pcpcc;
                   8514:   ppc = (char**) pcpcc;
                   8515:   pcpcc = (char const *const *) ppc;
                   8516:   { /* SCO 3.2v4 cc rejects this.  */
                   8517:     char *t;
                   8518:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8519: 
                   8520:     *t++ = 0;
                   8521:     if (s) return 0;
                   8522:   }
                   8523:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8524:     int x[] = {25, 17};
                   8525:     const int *foo = &x[0];
                   8526:     ++foo;
                   8527:   }
                   8528:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8529:     typedef const int *iptr;
                   8530:     iptr p = 0;
                   8531:     ++p;
                   8532:   }
                   8533:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8534:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8535:     struct s { int j; const int *ap[3]; };
                   8536:     struct s *b; b->j = 5;
                   8537:   }
                   8538:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8539:     const int foo = 10;
                   8540:     if (!foo) return 0;
                   8541:   }
                   8542:   return !cs[0] && !zero.x;
                   8543: #endif
                   8544: 
1.14      bertrand 8545:   ;
1.1       bertrand 8546:   return 0;
                   8547: }
                   8548: _ACEOF
1.15      bertrand 8549: if ac_fn_c_try_compile "$LINENO"; then :
                   8550:   ac_cv_c_const=yes
1.14      bertrand 8551: else
1.15      bertrand 8552:   ac_cv_c_const=no
1.1       bertrand 8553: fi
1.14      bertrand 8554: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8555: fi
1.15      bertrand 8556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8557: $as_echo "$ac_cv_c_const" >&6; }
                   8558: if test $ac_cv_c_const = no; then
1.1       bertrand 8559: 
1.15      bertrand 8560: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8561: 
1.15      bertrand 8562: fi
1.1       bertrand 8563: 
1.15      bertrand 8564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8565: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8566: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8567:   $as_echo_n "(cached) " >&6
1.1       bertrand 8568: else
1.15      bertrand 8569:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8570: /* end confdefs.h.  */
1.15      bertrand 8571: #include <sys/types.h>
                   8572: 
1.1       bertrand 8573: _ACEOF
1.15      bertrand 8574: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8575:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8576:   ac_cv_type_uid_t=yes
1.1       bertrand 8577: else
1.15      bertrand 8578:   ac_cv_type_uid_t=no
                   8579: fi
                   8580: rm -f conftest*
1.14      bertrand 8581: 
1.1       bertrand 8582: fi
1.15      bertrand 8583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8584: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8585: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8586: 
1.15      bertrand 8587: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8588: 
                   8589: 
1.15      bertrand 8590: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8591: 
                   8592: fi
                   8593: 
1.15      bertrand 8594: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8595: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8596: 
                   8597: else
1.15      bertrand 8598: 
                   8599: cat >>confdefs.h <<_ACEOF
                   8600: #define pid_t int
1.14      bertrand 8601: _ACEOF
                   8602: 
1.15      bertrand 8603: fi
1.14      bertrand 8604: 
1.15      bertrand 8605: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8606: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8607: 
1.15      bertrand 8608: else
1.1       bertrand 8609: 
1.15      bertrand 8610: cat >>confdefs.h <<_ACEOF
                   8611: #define size_t unsigned int
1.1       bertrand 8612: _ACEOF
1.14      bertrand 8613: 
1.1       bertrand 8614: fi
                   8615: 
1.15      bertrand 8616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8617: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8618: if test "${ac_cv_header_time+set}" = set; then :
                   8619:   $as_echo_n "(cached) " >&6
1.1       bertrand 8620: else
1.15      bertrand 8621:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8622: /* end confdefs.h.  */
1.15      bertrand 8623: #include <sys/types.h>
                   8624: #include <sys/time.h>
                   8625: #include <time.h>
1.1       bertrand 8626: 
1.14      bertrand 8627: int
                   8628: main ()
                   8629: {
1.15      bertrand 8630: if ((struct tm *) 0)
                   8631: return 0;
1.14      bertrand 8632:   ;
                   8633:   return 0;
                   8634: }
1.1       bertrand 8635: _ACEOF
1.15      bertrand 8636: if ac_fn_c_try_compile "$LINENO"; then :
                   8637:   ac_cv_header_time=yes
1.1       bertrand 8638: else
1.15      bertrand 8639:   ac_cv_header_time=no
1.1       bertrand 8640: fi
1.15      bertrand 8641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8642: fi
1.15      bertrand 8643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8644: $as_echo "$ac_cv_header_time" >&6; }
                   8645: if test $ac_cv_header_time = yes; then
1.1       bertrand 8646: 
1.15      bertrand 8647: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8648: 
                   8649: fi
                   8650: 
1.15      bertrand 8651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8652: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8653: if test "${ac_cv_struct_tm+set}" = set; then :
                   8654:   $as_echo_n "(cached) " >&6
1.1       bertrand 8655: else
1.15      bertrand 8656:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8657: /* end confdefs.h.  */
1.15      bertrand 8658: #include <sys/types.h>
                   8659: #include <time.h>
1.1       bertrand 8660: 
                   8661: int
                   8662: main ()
                   8663: {
1.15      bertrand 8664: struct tm tm;
                   8665:                     int *p = &tm.tm_sec;
                   8666:                     return !p;
1.1       bertrand 8667:   ;
                   8668:   return 0;
                   8669: }
                   8670: _ACEOF
1.15      bertrand 8671: if ac_fn_c_try_compile "$LINENO"; then :
                   8672:   ac_cv_struct_tm=time.h
1.1       bertrand 8673: else
1.15      bertrand 8674:   ac_cv_struct_tm=sys/time.h
                   8675: fi
                   8676: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8677: fi
                   8678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8679: $as_echo "$ac_cv_struct_tm" >&6; }
                   8680: if test $ac_cv_struct_tm = sys/time.h; then
                   8681: 
                   8682: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8683: 
1.1       bertrand 8684: fi
                   8685: 
                   8686: 
1.15      bertrand 8687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8688: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8689: if test "${ac_cv_type_signal+set}" = set; then :
                   8690:   $as_echo_n "(cached) " >&6
1.1       bertrand 8691: else
1.15      bertrand 8692:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8693: /* end confdefs.h.  */
1.15      bertrand 8694: #include <sys/types.h>
                   8695: #include <signal.h>
1.1       bertrand 8696: 
                   8697: int
                   8698: main ()
                   8699: {
1.15      bertrand 8700: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8701:   ;
                   8702:   return 0;
                   8703: }
                   8704: _ACEOF
1.15      bertrand 8705: if ac_fn_c_try_compile "$LINENO"; then :
                   8706:   ac_cv_type_signal=int
1.1       bertrand 8707: else
1.15      bertrand 8708:   ac_cv_type_signal=void
1.1       bertrand 8709: fi
1.15      bertrand 8710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8711: fi
1.15      bertrand 8712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8713: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8714: 
1.15      bertrand 8715: cat >>confdefs.h <<_ACEOF
                   8716: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8717: _ACEOF
1.1       bertrand 8718: 
1.15      bertrand 8719: 
                   8720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8721: $as_echo_n "checking for working strcoll... " >&6; }
                   8722: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8723:   $as_echo_n "(cached) " >&6
                   8724: else
                   8725:   if test "$cross_compiling" = yes; then :
                   8726:   ac_cv_func_strcoll_works=no
                   8727: else
                   8728:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8729: /* end confdefs.h.  */
                   8730: $ac_includes_default
                   8731: int
                   8732: main ()
                   8733: {
                   8734: return (strcoll ("abc", "def") >= 0 ||
                   8735:     strcoll ("ABC", "DEF") >= 0 ||
                   8736:     strcoll ("123", "456") >= 0)
                   8737:   ;
                   8738:   return 0;
                   8739: }
                   8740: _ACEOF
                   8741: if ac_fn_c_try_run "$LINENO"; then :
                   8742:   ac_cv_func_strcoll_works=yes
                   8743: else
                   8744:   ac_cv_func_strcoll_works=no
                   8745: fi
                   8746: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8747:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8748: fi
1.1       bertrand 8749: 
                   8750: fi
1.15      bertrand 8751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   8752: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   8753: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 8754: 
1.15      bertrand 8755: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 8756: 
1.15      bertrand 8757: fi
1.1       bertrand 8758: 
1.15      bertrand 8759: for ac_func in strftime
                   8760: do :
                   8761:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   8762: if test "x$ac_cv_func_strftime" = x""yes; then :
                   8763:   cat >>confdefs.h <<_ACEOF
                   8764: #define HAVE_STRFTIME 1
                   8765: _ACEOF
1.1       bertrand 8766: 
                   8767: else
1.15      bertrand 8768:   # strftime is in -lintl on SCO UNIX.
                   8769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   8770: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   8771: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   8772:   $as_echo_n "(cached) " >&6
                   8773: else
                   8774:   ac_check_lib_save_LIBS=$LIBS
                   8775: LIBS="-lintl  $LIBS"
                   8776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8777: /* end confdefs.h.  */
                   8778: 
                   8779: /* Override any GCC internal prototype to avoid an error.
                   8780:    Use char because int might match the return type of a GCC
                   8781:    builtin and then its argument prototype would still apply.  */
                   8782: #ifdef __cplusplus
                   8783: extern "C"
                   8784: #endif
1.15      bertrand 8785: char strftime ();
1.1       bertrand 8786: int
                   8787: main ()
                   8788: {
1.15      bertrand 8789: return strftime ();
1.1       bertrand 8790:   ;
                   8791:   return 0;
                   8792: }
                   8793: _ACEOF
1.15      bertrand 8794: if ac_fn_c_try_link "$LINENO"; then :
                   8795:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 8796: else
1.15      bertrand 8797:   ac_cv_lib_intl_strftime=no
                   8798: fi
                   8799: rm -f core conftest.err conftest.$ac_objext \
                   8800:     conftest$ac_exeext conftest.$ac_ext
                   8801: LIBS=$ac_check_lib_save_LIBS
                   8802: fi
                   8803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   8804: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   8805: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   8806:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   8807: 
                   8808: LIBS="-lintl $LIBS"
                   8809: fi
                   8810: 
                   8811: fi
                   8812: done
                   8813: 
                   8814: for ac_func in vprintf
                   8815: do :
                   8816:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   8817: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   8818:   cat >>confdefs.h <<_ACEOF
                   8819: #define HAVE_VPRINTF 1
                   8820: _ACEOF
                   8821: 
                   8822: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   8823: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   8824: 
                   8825: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 8826: 
                   8827: fi
                   8828: 
                   8829: fi
1.15      bertrand 8830: done
                   8831: 
                   8832: 
                   8833: for ac_func in ftime getcwd putenv select strcspn strdup \
                   8834:        strerror strspn strstr strtod
                   8835: do :
                   8836:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8837: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   8838: eval as_val=\$$as_ac_var
                   8839:    if test "x$as_val" = x""yes; then :
1.1       bertrand 8840:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 8841: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 8842: _ACEOF
                   8843: 
                   8844: fi
                   8845: done
                   8846: 
                   8847: 
1.18      bertrand 8848: ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static"
1.17      bertrand 8849: 
1.15      bertrand 8850: 
                   8851: 
1.1       bertrand 8852: subdirs="$subdirs tools/$NCURSES"
                   8853: 
                   8854: subdirs="$subdirs tools/$READLINE"
                   8855: 
                   8856: subdirs="$subdirs tools/$GSL"
                   8857: 
                   8858: subdirs="$subdirs tools/$GPP"
                   8859: 
                   8860: subdirs="$subdirs tools/$FILE"
                   8861: 
                   8862: subdirs="$subdirs tools/$ICONV"
                   8863: 
1.9       bertrand 8864: subdirs="$subdirs tools/$SQLITE"
                   8865: 
1.17      bertrand 8866: subdirs="$subdirs tools/$UNITS"
                   8867: 
1.15      bertrand 8868: 
                   8869: 
                   8870: # Check whether --with-openssl_arch was given.
                   8871: if test "${with_openssl_arch+set}" = set; then :
                   8872:   withval=$with_openssl_arch;
                   8873: else
                   8874:   with_openssl_arch=none
                   8875: fi
                   8876: 
                   8877: 
                   8878: if test "x$with_openssl_arch" = xnone; then
                   8879:    (cd tools/$OPENSSL && ./config)
                   8880: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   8881:    (cd tools/$OPENSSL && ./Configure)
                   8882:    as_fn_error "OS/COMP informations are required!" "$LINENO" 5
                   8883: elif test "x$with_openssl_arch" = xlist; then
                   8884:    (cd tools/$OPENSSL && ./Configure)
                   8885:    as_fn_error "Please specify OS and Architecture" "$LINENO" 5
                   8886: else
                   8887:    (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   8888: fi
1.1       bertrand 8889: 
                   8890: if test "$MYGNUPLOT" = "yes"; then
                   8891:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   8892:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   8893:                (cd "$srcdir/tools" && tar -xf -)
                   8894:    fi
                   8895:    subdirs="$subdirs tools/$GNUPLOT"
                   8896: 
                   8897:    GNUPLOT_COMPILATION=$GNUPLOT
                   8898: else
                   8899:    GNUPLOT_COMPILATION=
                   8900: fi
                   8901: 
                   8902: 
                   8903: 
                   8904: case $host_cpu in
                   8905: 
                   8906:     i?86)
                   8907:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8908:            -Wno-pointer-sign"
                   8909:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8910:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8911:    break ;;
                   8912: 
                   8913:    x86_64*)
                   8914:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8915:            -Wno-pointer-sign"
                   8916:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8917:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8918:    break ;;
                   8919: 
                   8920:     alpha*)
                   8921:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   8922:            -Wno-pointer-sign"
                   8923:    FFLAGS="$FFLAGS -mieee -Wall"
                   8924:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   8925:    break ;;
                   8926: 
                   8927:     sparc*)
                   8928:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   8929:            -Wno-pointer-sign"
                   8930:    FFLAGS="$FFLAGS -Wall"
                   8931:    FCFLAGS="$FCFLAGS -Wall"
                   8932:    break ;;
                   8933: 
                   8934: esac
                   8935: 
1.8       bertrand 8936: case $host_os in
                   8937: 
                   8938:    cygwin*)
                   8939:        OS=Cygwin
                   8940:    break ;;
                   8941: 
                   8942:    interix*)
                   8943:        OS=Interix
                   8944:    break ;;
                   8945: 
                   8946:    *)
                   8947:        OS=$(uname)
                   8948:    break ;;
                   8949: 
                   8950: esac
                   8951: 
                   8952: 
                   8953: 
1.1       bertrand 8954: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   8955: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                   8956: 
1.22      bertrand 8957: case $OS in
1.17      bertrand 8958: 
                   8959:     Darwin)
                   8960:        EXPORT_DYNAMIC=-flat_namespace
                   8961:        NESTED_FUNCTIONS=-fnested-functions
                   8962:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.23    ! bertrand 8963:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.17      bertrand 8964:    break ;;
                   8965: 
                   8966:    Cygwin)
                   8967:        EXPORT_DYNAMIC=--export-all-symbols
                   8968:        NESTED_FUNCTIONS=
                   8969:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   8970:    break ;;
                   8971: 
1.18      bertrand 8972:    AIX)
                   8973:        EXPORT_DYNAMIC=--export-dynamic
                   8974:        NESTED_FUNCTIONS=
                   8975:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
                   8976:    break ;;
                   8977: 
1.17      bertrand 8978:     *)
                   8979:        EXPORT_DYNAMIC=--export-dynamic
                   8980:        NESTED_FUNCTIONS=
                   8981:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   8982:    break ;;
                   8983: 
                   8984: esac
                   8985: 
                   8986: 
                   8987: 
                   8988: 
1.1       bertrand 8989: 
                   8990: 
                   8991: 
                   8992: 
                   8993: 
                   8994: 
                   8995: 
                   8996: 
                   8997: 
                   8998: 
                   8999: 
                   9000: 
                   9001: 
                   9002: 
                   9003: 
                   9004: 
                   9005: 
                   9006: 
                   9007: 
1.9       bertrand 9008: 
1.1       bertrand 9009: ac_config_files="$ac_config_files Makefile"
                   9010: 
                   9011: ac_config_files="$ac_config_files COPYING"
                   9012: 
                   9013: ac_config_files="$ac_config_files tools/Makefile"
                   9014: 
                   9015: ac_config_files="$ac_config_files src/Makefile"
                   9016: 
                   9017: ac_config_files="$ac_config_files man/Makefile"
                   9018: 
                   9019: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9020: 
                   9021: ac_config_files="$ac_config_files doc/Makefile"
                   9022: 
                   9023: ac_config_files="$ac_config_files scripts/Makefile"
                   9024: 
                   9025: ac_config_files="$ac_config_files scripts/mkrplso"
                   9026: 
                   9027: ac_config_files="$ac_config_files scripts/rplcc"
                   9028: 
                   9029: ac_config_files="$ac_config_files scripts/rpllink"
                   9030: 
                   9031: ac_config_files="$ac_config_files rpltags/Makefile"
                   9032: 
                   9033: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9034: 
1.9       bertrand 9035: ac_config_files="$ac_config_files rplsums/Makefile"
                   9036: 
1.1       bertrand 9037: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9038: 
                   9039: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9040: 
1.20      bertrand 9041: ac_config_files="$ac_config_files ptmalloc3/Makefile"
                   9042: 
1.1       bertrand 9043: 
                   9044: ac_config_files="$ac_config_files man/rpl.1"
                   9045: 
                   9046: ac_config_files="$ac_config_files man/rplcc.1"
                   9047: 
                   9048: ac_config_files="$ac_config_files man/rpllink.1"
                   9049: 
                   9050: ac_config_files="$ac_config_files man/rpltags.1"
                   9051: 
                   9052: ac_config_files="$ac_config_files man/mkrplso.1"
                   9053: 
                   9054: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9055: 
                   9056: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9057: 
                   9058: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9059: 
                   9060: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9061: 
                   9062: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9063: 
                   9064: 
                   9065: cat >confcache <<\_ACEOF
                   9066: # This file is a shell script that caches the results of configure
                   9067: # tests run on this system so they can be shared between configure
                   9068: # scripts and configure runs, see configure's option --config-cache.
                   9069: # It is not useful on other systems.  If it contains results you don't
                   9070: # want to keep, you may remove or edit it.
                   9071: #
                   9072: # config.status only pays attention to the cache file if you give it
                   9073: # the --recheck option to rerun configure.
                   9074: #
                   9075: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9076: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9077: # following values.
                   9078: 
                   9079: _ACEOF
                   9080: 
                   9081: # The following way of writing the cache mishandles newlines in values,
                   9082: # but we know of no workaround that is simple, portable, and efficient.
                   9083: # So, we kill variables containing newlines.
                   9084: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9085: # and sets the high bit in the cache file unless we assign to the vars.
                   9086: (
                   9087:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9088:     eval ac_val=\$$ac_var
                   9089:     case $ac_val in #(
                   9090:     *${as_nl}*)
                   9091:       case $ac_var in #(
1.15      bertrand 9092:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9093: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9094:       esac
                   9095:       case $ac_var in #(
                   9096:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9097:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9098:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9099:       esac ;;
                   9100:     esac
                   9101:   done
                   9102: 
                   9103:   (set) 2>&1 |
                   9104:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9105:     *${as_nl}ac_space=\ *)
1.15      bertrand 9106:       # `set' does not quote correctly, so add quotes: double-quote
                   9107:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9108:       sed -n \
                   9109:    "s/'/'\\\\''/g;
                   9110:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9111:       ;; #(
                   9112:     *)
                   9113:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9114:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9115:       ;;
                   9116:     esac |
                   9117:     sort
                   9118: ) |
                   9119:   sed '
                   9120:      /^ac_cv_env_/b end
                   9121:      t clear
                   9122:      :clear
                   9123:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9124:      t end
                   9125:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9126:      :end' >>confcache
                   9127: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9128:   if test -w "$cache_file"; then
                   9129:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9130:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9131: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9132:     cat confcache >$cache_file
                   9133:   else
1.15      bertrand 9134:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9135: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9136:   fi
                   9137: fi
                   9138: rm -f confcache
                   9139: 
                   9140: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9141: # Let make expand exec_prefix.
                   9142: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9143: 
                   9144: DEFS=-DHAVE_CONFIG_H
                   9145: 
                   9146: ac_libobjs=
                   9147: ac_ltlibobjs=
                   9148: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9149:   # 1. Remove the extension, and $U if already installed.
                   9150:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9151:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9152:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9153:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9154:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9155:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9156: done
                   9157: LIBOBJS=$ac_libobjs
                   9158: 
                   9159: LTLIBOBJS=$ac_ltlibobjs
                   9160: 
                   9161: 
1.15      bertrand 9162:  if test -n "$EXEEXT"; then
                   9163:   am__EXEEXT_TRUE=
                   9164:   am__EXEEXT_FALSE='#'
                   9165: else
                   9166:   am__EXEEXT_TRUE='#'
                   9167:   am__EXEEXT_FALSE=
                   9168: fi
                   9169: 
1.1       bertrand 9170: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.15      bertrand 9171:   as_fn_error "conditional \"AMDEP\" was never defined.
                   9172: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9173: fi
                   9174: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.15      bertrand 9175:   as_fn_error "conditional \"am__fastdepCC\" was never defined.
                   9176: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9177: fi
                   9178: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.15      bertrand 9179:   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
                   9180: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9181: fi
                   9182: 
                   9183: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9184: ac_write_fail=0
1.1       bertrand 9185: ac_clean_files_save=$ac_clean_files
                   9186: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9187: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9188: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9189: as_write_fail=0
                   9190: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9191: #! $SHELL
                   9192: # Generated by $as_me.
                   9193: # Run this file to recreate the current configuration.
                   9194: # Compiler output produced by configure, useful for debugging
                   9195: # configure, is in config.log if it exists.
                   9196: 
                   9197: debug=false
                   9198: ac_cs_recheck=false
                   9199: ac_cs_silent=false
1.15      bertrand 9200: 
1.14      bertrand 9201: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9202: export SHELL
                   9203: _ASEOF
                   9204: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9205: ## -------------------- ##
                   9206: ## M4sh Initialization. ##
                   9207: ## -------------------- ##
1.1       bertrand 9208: 
                   9209: # Be more Bourne compatible
                   9210: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9211: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9212:   emulate sh
                   9213:   NULLCMD=:
1.15      bertrand 9214:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9215:   # is contrary to our usage.  Disable this feature.
                   9216:   alias -g '${1+"$@"}'='"$@"'
                   9217:   setopt NO_GLOB_SUBST
                   9218: else
1.15      bertrand 9219:   case `(set -o) 2>/dev/null` in #(
                   9220:   *posix*) :
                   9221:     set -o posix ;; #(
                   9222:   *) :
                   9223:      ;;
1.1       bertrand 9224: esac
                   9225: fi
                   9226: 
                   9227: 
1.15      bertrand 9228: as_nl='
                   9229: '
                   9230: export as_nl
                   9231: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9232: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9233: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9234: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9235: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9236: # but without wasting forks for bash or zsh.
                   9237: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9238:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9239:   as_echo='print -r --'
                   9240:   as_echo_n='print -rn --'
                   9241: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9242:   as_echo='printf %s\n'
                   9243:   as_echo_n='printf %s'
                   9244: else
                   9245:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9246:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9247:     as_echo_n='/usr/ucb/echo -n'
                   9248:   else
                   9249:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9250:     as_echo_n_body='eval
                   9251:       arg=$1;
                   9252:       case $arg in #(
                   9253:       *"$as_nl"*)
                   9254:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9255:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9256:       esac;
                   9257:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9258:     '
                   9259:     export as_echo_n_body
                   9260:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9261:   fi
                   9262:   export as_echo_body
                   9263:   as_echo='sh -c $as_echo_body as_echo'
                   9264: fi
1.14      bertrand 9265: 
                   9266: # The user is always right.
                   9267: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9268:   PATH_SEPARATOR=:
                   9269:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9270:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9271:       PATH_SEPARATOR=';'
                   9272:   }
1.1       bertrand 9273: fi
                   9274: 
                   9275: 
                   9276: # IFS
                   9277: # We need space, tab and new line, in precisely that order.  Quoting is
                   9278: # there to prevent editors from complaining about space-tab.
                   9279: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9280: # splitting by setting IFS to empty value.)
                   9281: IFS=" ""   $as_nl"
                   9282: 
                   9283: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9284: case $0 in #((
1.1       bertrand 9285:   *[\\/]* ) as_myself=$0 ;;
                   9286:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9287: for as_dir in $PATH
                   9288: do
                   9289:   IFS=$as_save_IFS
                   9290:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9291:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9292:   done
1.1       bertrand 9293: IFS=$as_save_IFS
                   9294: 
                   9295:      ;;
                   9296: esac
                   9297: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9298: # in which case we are not to be found in the path.
                   9299: if test "x$as_myself" = x; then
                   9300:   as_myself=$0
                   9301: fi
                   9302: if test ! -f "$as_myself"; then
1.15      bertrand 9303:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9304:   exit 1
1.1       bertrand 9305: fi
                   9306: 
1.15      bertrand 9307: # Unset variables that we do not need and which cause bugs (e.g. in
                   9308: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9309: # suppresses any "Segmentation fault" message there.  '((' could
                   9310: # trigger a bug in pdksh 5.2.14.
                   9311: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9312: do eval test x\${$as_var+set} = xset \
                   9313:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9314: done
                   9315: PS1='$ '
                   9316: PS2='> '
                   9317: PS4='+ '
                   9318: 
                   9319: # NLS nuisances.
1.15      bertrand 9320: LC_ALL=C
                   9321: export LC_ALL
                   9322: LANGUAGE=C
                   9323: export LANGUAGE
                   9324: 
                   9325: # CDPATH.
                   9326: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9327: 
                   9328: 
                   9329: # as_fn_error ERROR [LINENO LOG_FD]
                   9330: # ---------------------------------
                   9331: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9332: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   9333: # script with status $?, using 1 if that was 0.
                   9334: as_fn_error ()
                   9335: {
                   9336:   as_status=$?; test $as_status -eq 0 && as_status=1
                   9337:   if test "$3"; then
                   9338:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9339:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                   9340:   fi
                   9341:   $as_echo "$as_me: error: $1" >&2
                   9342:   as_fn_exit $as_status
                   9343: } # as_fn_error
                   9344: 
                   9345: 
                   9346: # as_fn_set_status STATUS
                   9347: # -----------------------
                   9348: # Set $? to STATUS, without forking.
                   9349: as_fn_set_status ()
                   9350: {
                   9351:   return $1
                   9352: } # as_fn_set_status
                   9353: 
                   9354: # as_fn_exit STATUS
                   9355: # -----------------
                   9356: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9357: as_fn_exit ()
                   9358: {
                   9359:   set +e
                   9360:   as_fn_set_status $1
                   9361:   exit $1
                   9362: } # as_fn_exit
                   9363: 
                   9364: # as_fn_unset VAR
                   9365: # ---------------
                   9366: # Portably unset VAR.
                   9367: as_fn_unset ()
                   9368: {
                   9369:   { eval $1=; unset $1;}
                   9370: }
                   9371: as_unset=as_fn_unset
                   9372: # as_fn_append VAR VALUE
                   9373: # ----------------------
                   9374: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9375: # advantage of any shell optimizations that allow amortized linear growth over
                   9376: # repeated appends, instead of the typical quadratic growth present in naive
                   9377: # implementations.
                   9378: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9379:   eval 'as_fn_append ()
                   9380:   {
                   9381:     eval $1+=\$2
                   9382:   }'
                   9383: else
                   9384:   as_fn_append ()
                   9385:   {
                   9386:     eval $1=\$$1\$2
                   9387:   }
                   9388: fi # as_fn_append
                   9389: 
                   9390: # as_fn_arith ARG...
                   9391: # ------------------
                   9392: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9393: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9394: # must be portable across $(()) and expr.
                   9395: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9396:   eval 'as_fn_arith ()
                   9397:   {
                   9398:     as_val=$(( $* ))
                   9399:   }'
                   9400: else
                   9401:   as_fn_arith ()
                   9402:   {
                   9403:     as_val=`expr "$@" || test $? -eq 1`
                   9404:   }
                   9405: fi # as_fn_arith
                   9406: 
1.1       bertrand 9407: 
                   9408: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9409:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9410:   as_expr=expr
                   9411: else
                   9412:   as_expr=false
                   9413: fi
                   9414: 
                   9415: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9416:   as_basename=basename
                   9417: else
                   9418:   as_basename=false
                   9419: fi
                   9420: 
1.15      bertrand 9421: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9422:   as_dirname=dirname
                   9423: else
                   9424:   as_dirname=false
                   9425: fi
1.1       bertrand 9426: 
                   9427: as_me=`$as_basename -- "$0" ||
                   9428: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9429:     X"$0" : 'X\(//\)$' \| \
                   9430:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9431: $as_echo X/"$0" |
1.1       bertrand 9432:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9433:        s//\1/
                   9434:        q
                   9435:      }
                   9436:      /^X\/\(\/\/\)$/{
                   9437:        s//\1/
                   9438:        q
                   9439:      }
                   9440:      /^X\/\(\/\).*/{
                   9441:        s//\1/
                   9442:        q
                   9443:      }
1.14      bertrand 9444:      s/.*/./; q'`
                   9445: 
1.15      bertrand 9446: # Avoid depending upon Character Ranges.
                   9447: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9448: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9449: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9450: as_cr_digits='0123456789'
                   9451: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9452: 
                   9453: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9454: case `echo -n x` in #(((((
1.1       bertrand 9455: -n*)
1.15      bertrand 9456:   case `echo 'xy\c'` in
1.1       bertrand 9457:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9458:   xy)  ECHO_C='\c';;
                   9459:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9460:        ECHO_T='    ';;
1.1       bertrand 9461:   esac;;
                   9462: *)
                   9463:   ECHO_N='-n';;
                   9464: esac
                   9465: 
                   9466: rm -f conf$$ conf$$.exe conf$$.file
                   9467: if test -d conf$$.dir; then
                   9468:   rm -f conf$$.dir/conf$$.file
                   9469: else
                   9470:   rm -f conf$$.dir
1.15      bertrand 9471:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9472: fi
1.15      bertrand 9473: if (echo >conf$$.file) 2>/dev/null; then
                   9474:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9475:     as_ln_s='ln -s'
                   9476:     # ... but there are two gotchas:
                   9477:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9478:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9479:     # In both cases, we have to default to `cp -p'.
                   9480:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9481:       as_ln_s='cp -p'
                   9482:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9483:     as_ln_s=ln
                   9484:   else
1.1       bertrand 9485:     as_ln_s='cp -p'
1.15      bertrand 9486:   fi
1.1       bertrand 9487: else
                   9488:   as_ln_s='cp -p'
                   9489: fi
                   9490: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9491: rmdir conf$$.dir 2>/dev/null
                   9492: 
1.15      bertrand 9493: 
                   9494: # as_fn_mkdir_p
                   9495: # -------------
                   9496: # Create "$as_dir" as a directory, including parents if necessary.
                   9497: as_fn_mkdir_p ()
                   9498: {
                   9499: 
                   9500:   case $as_dir in #(
                   9501:   -*) as_dir=./$as_dir;;
                   9502:   esac
                   9503:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9504:     as_dirs=
                   9505:     while :; do
                   9506:       case $as_dir in #(
                   9507:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9508:       *) as_qdir=$as_dir;;
                   9509:       esac
                   9510:       as_dirs="'$as_qdir' $as_dirs"
                   9511:       as_dir=`$as_dirname -- "$as_dir" ||
                   9512: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9513:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9514:     X"$as_dir" : 'X\(//\)$' \| \
                   9515:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9516: $as_echo X"$as_dir" |
                   9517:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9518:        s//\1/
                   9519:        q
                   9520:      }
                   9521:      /^X\(\/\/\)[^/].*/{
                   9522:        s//\1/
                   9523:        q
                   9524:      }
                   9525:      /^X\(\/\/\)$/{
                   9526:        s//\1/
                   9527:        q
                   9528:      }
                   9529:      /^X\(\/\).*/{
                   9530:        s//\1/
                   9531:        q
                   9532:      }
                   9533:      s/.*/./; q'`
                   9534:       test -d "$as_dir" && break
                   9535:     done
                   9536:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   9537:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
                   9538: 
                   9539: 
                   9540: } # as_fn_mkdir_p
1.1       bertrand 9541: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9542:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9543: else
                   9544:   test -d ./-p && rmdir ./-p
                   9545:   as_mkdir_p=false
                   9546: fi
                   9547: 
                   9548: if test -x / >/dev/null 2>&1; then
                   9549:   as_test_x='test -x'
                   9550: else
                   9551:   if ls -dL / >/dev/null 2>&1; then
                   9552:     as_ls_L_option=L
                   9553:   else
                   9554:     as_ls_L_option=
                   9555:   fi
                   9556:   as_test_x='
                   9557:     eval sh -c '\''
                   9558:       if test -d "$1"; then
1.15      bertrand 9559:    test -d "$1/.";
1.1       bertrand 9560:       else
1.15      bertrand 9561:    case $1 in #(
                   9562:    -*)set "./$1";;
1.1       bertrand 9563:    esac;
1.15      bertrand 9564:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9565:    ???[sx]*):;;*)false;;esac;fi
                   9566:     '\'' sh
                   9567:   '
                   9568: fi
                   9569: as_executable_p=$as_test_x
                   9570: 
                   9571: # Sed expression to map a string onto a valid CPP name.
                   9572: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9573: 
                   9574: # Sed expression to map a string onto a valid variable name.
                   9575: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9576: 
                   9577: 
                   9578: exec 6>&1
1.15      bertrand 9579: ## ----------------------------------- ##
                   9580: ## Main body of $CONFIG_STATUS script. ##
                   9581: ## ----------------------------------- ##
                   9582: _ASEOF
                   9583: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9584: 
1.15      bertrand 9585: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9586: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9587: # report actual input values of CONFIG_FILES etc. instead of their
                   9588: # values after options handling.
                   9589: ac_log="
1.19      bertrand 9590: This file was extended by rpl $as_me 4.0.15, which was
1.15      bertrand 9591: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 9592: 
                   9593:   CONFIG_FILES    = $CONFIG_FILES
                   9594:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9595:   CONFIG_LINKS    = $CONFIG_LINKS
                   9596:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9597:   $ $0 $@
                   9598: 
                   9599: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9600: "
                   9601: 
                   9602: _ACEOF
                   9603: 
1.15      bertrand 9604: case $ac_config_files in *"
                   9605: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9606: esac
                   9607: 
                   9608: case $ac_config_headers in *"
                   9609: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9610: esac
                   9611: 
                   9612: 
                   9613: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9614: # Files that config.status was made for.
                   9615: config_files="$ac_config_files"
                   9616: config_headers="$ac_config_headers"
                   9617: config_commands="$ac_config_commands"
                   9618: 
                   9619: _ACEOF
                   9620: 
1.15      bertrand 9621: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9622: ac_cs_usage="\
1.15      bertrand 9623: \`$as_me' instantiates files and other configuration actions
                   9624: from templates according to the current configuration.  Unless the files
                   9625: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9626: 
1.15      bertrand 9627: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9628: 
                   9629:   -h, --help       print this help, then exit
                   9630:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9631:       --config     print configuration, then exit
                   9632:   -q, --quiet, --silent
                   9633:                    do not print progress messages
1.1       bertrand 9634:   -d, --debug      don't remove temporary files
                   9635:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9636:       --file=FILE[:TEMPLATE]
                   9637:                    instantiate the configuration file FILE
                   9638:       --header=FILE[:TEMPLATE]
                   9639:                    instantiate the configuration header FILE
1.1       bertrand 9640: 
                   9641: Configuration files:
                   9642: $config_files
                   9643: 
                   9644: Configuration headers:
                   9645: $config_headers
                   9646: 
                   9647: Configuration commands:
                   9648: $config_commands
                   9649: 
1.15      bertrand 9650: Report bugs to the package provider."
1.1       bertrand 9651: 
                   9652: _ACEOF
1.15      bertrand 9653: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9654: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 9655: ac_cs_version="\\
1.19      bertrand 9656: rpl config.status 4.0.15
1.15      bertrand 9657: configured by $0, generated by GNU Autoconf 2.65,
                   9658:   with options \\"\$ac_cs_config\\"
1.1       bertrand 9659: 
1.15      bertrand 9660: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 9661: This config.status script is free software; the Free Software Foundation
                   9662: gives unlimited permission to copy, distribute and modify it."
                   9663: 
                   9664: ac_pwd='$ac_pwd'
                   9665: srcdir='$srcdir'
                   9666: INSTALL='$INSTALL'
                   9667: MKDIR_P='$MKDIR_P'
1.15      bertrand 9668: AWK='$AWK'
                   9669: test -n "\$AWK" || AWK=awk
1.1       bertrand 9670: _ACEOF
                   9671: 
1.15      bertrand 9672: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9673: # The default lists apply if the user does not specify any file.
1.1       bertrand 9674: ac_need_defaults=:
                   9675: while test $# != 0
                   9676: do
                   9677:   case $1 in
                   9678:   --*=*)
                   9679:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9680:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9681:     ac_shift=:
                   9682:     ;;
                   9683:   *)
                   9684:     ac_option=$1
                   9685:     ac_optarg=$2
                   9686:     ac_shift=shift
                   9687:     ;;
                   9688:   esac
                   9689: 
                   9690:   case $ac_option in
                   9691:   # Handling of the options.
                   9692:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9693:     ac_cs_recheck=: ;;
                   9694:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 9695:     $as_echo "$ac_cs_version"; exit ;;
                   9696:   --config | --confi | --conf | --con | --co | --c )
                   9697:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 9698:   --debug | --debu | --deb | --de | --d | -d )
                   9699:     debug=: ;;
                   9700:   --file | --fil | --fi | --f )
                   9701:     $ac_shift
1.15      bertrand 9702:     case $ac_optarg in
                   9703:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9704:     esac
                   9705:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 9706:     ac_need_defaults=false;;
                   9707:   --header | --heade | --head | --hea )
                   9708:     $ac_shift
1.15      bertrand 9709:     case $ac_optarg in
                   9710:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9711:     esac
                   9712:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 9713:     ac_need_defaults=false;;
                   9714:   --he | --h)
                   9715:     # Conflict between --help and --header
1.15      bertrand 9716:     as_fn_error "ambiguous option: \`$1'
                   9717: Try \`$0 --help' for more information.";;
1.1       bertrand 9718:   --help | --hel | -h )
1.15      bertrand 9719:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 9720:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9721:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9722:     ac_cs_silent=: ;;
                   9723: 
                   9724:   # This is an error.
1.15      bertrand 9725:   -*) as_fn_error "unrecognized option: \`$1'
                   9726: Try \`$0 --help' for more information." ;;
1.1       bertrand 9727: 
1.15      bertrand 9728:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 9729:      ac_need_defaults=false ;;
                   9730: 
                   9731:   esac
                   9732:   shift
                   9733: done
                   9734: 
                   9735: ac_configure_extra_args=
                   9736: 
                   9737: if $ac_cs_silent; then
                   9738:   exec 6>/dev/null
                   9739:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9740: fi
                   9741: 
                   9742: _ACEOF
1.15      bertrand 9743: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9744: if \$ac_cs_recheck; then
1.15      bertrand 9745:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   9746:   shift
                   9747:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   9748:   CONFIG_SHELL='$SHELL'
1.1       bertrand 9749:   export CONFIG_SHELL
1.15      bertrand 9750:   exec "\$@"
1.1       bertrand 9751: fi
                   9752: 
                   9753: _ACEOF
1.15      bertrand 9754: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9755: exec 5>>config.log
                   9756: {
                   9757:   echo
                   9758:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9759: ## Running $as_me. ##
                   9760: _ASBOX
1.15      bertrand 9761:   $as_echo "$ac_log"
1.1       bertrand 9762: } >&5
                   9763: 
                   9764: _ACEOF
1.15      bertrand 9765: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9766: #
                   9767: # INIT-COMMANDS
                   9768: #
                   9769: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   9770: 
                   9771: _ACEOF
                   9772: 
1.15      bertrand 9773: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9774: 
                   9775: # Handling of arguments.
                   9776: for ac_config_target in $ac_config_targets
                   9777: do
                   9778:   case $ac_config_target in
                   9779:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   9780:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   9781:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   9782:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   9783:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   9784:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   9785:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   9786:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   9787:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   9788:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   9789:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   9790:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   9791:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   9792:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   9793:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 9794:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.1       bertrand 9795:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   9796:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20      bertrand 9797:     "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1       bertrand 9798:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   9799:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   9800:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   9801:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   9802:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   9803:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   9804:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   9805:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   9806:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   9807:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   9808: 
1.15      bertrand 9809:   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 9810:   esac
                   9811: done
                   9812: 
                   9813: 
                   9814: # If the user did not use the arguments to specify the items to instantiate,
                   9815: # then the envvar interface is used.  Set only those that are not.
                   9816: # We use the long form for the default assignment because of an extremely
                   9817: # bizarre bug on SunOS 4.1.3.
                   9818: if $ac_need_defaults; then
                   9819:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   9820:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   9821:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   9822: fi
                   9823: 
                   9824: # Have a temporary directory for convenience.  Make it in the build tree
                   9825: # simply because there is no reason against having it here, and in addition,
                   9826: # creating and moving files from /tmp can sometimes cause problems.
                   9827: # Hook for its removal unless debugging.
                   9828: # Note that there is a small window in which the directory will not be cleaned:
                   9829: # after its creation but before its name has been assigned to `$tmp'.
                   9830: $debug ||
                   9831: {
                   9832:   tmp=
                   9833:   trap 'exit_status=$?
                   9834:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   9835: ' 0
1.15      bertrand 9836:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 9837: }
                   9838: # Create a (secure) tmp directory for tmp files.
                   9839: 
                   9840: {
                   9841:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   9842:   test -n "$tmp" && test -d "$tmp"
                   9843: }  ||
                   9844: {
                   9845:   tmp=./conf$$-$RANDOM
                   9846:   (umask 077 && mkdir "$tmp")
1.15      bertrand 9847: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
                   9848: 
                   9849: # Set up the scripts for CONFIG_FILES section.
                   9850: # No need to generate them if there are no CONFIG_FILES.
                   9851: # This happens for instance with `./config.status config.h'.
                   9852: if test -n "$CONFIG_FILES"; then
1.14      bertrand 9853: 
1.1       bertrand 9854: 
1.15      bertrand 9855: ac_cr=`echo X | tr X '\015'`
                   9856: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   9857: # But we know of no other shell where ac_cr would be empty at this
                   9858: # point, so we can use a bashism as a fallback.
                   9859: if test "x$ac_cr" = x; then
                   9860:   eval ac_cr=\$\'\\r\'
                   9861: fi
                   9862: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   9863: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   9864:   ac_cs_awk_cr='\r'
                   9865: else
                   9866:   ac_cs_awk_cr=$ac_cr
                   9867: fi
1.1       bertrand 9868: 
1.15      bertrand 9869: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 9870: _ACEOF
                   9871: 
                   9872: 
1.15      bertrand 9873: {
                   9874:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   9875:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   9876:   echo "_ACEOF"
                   9877: } >conf$$subs.sh ||
                   9878:   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
                   9879: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.14      bertrand 9880: ac_delim='%!_!# '
                   9881: for ac_last_try in false false false false false :; do
1.15      bertrand 9882:   . ./conf$$subs.sh ||
                   9883:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9884: 
1.15      bertrand 9885:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   9886:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 9887:     break
                   9888:   elif $ac_last_try; then
1.15      bertrand 9889:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9890:   else
                   9891:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   9892:   fi
                   9893: done
1.15      bertrand 9894: rm -f conf$$subs.sh
1.1       bertrand 9895: 
1.15      bertrand 9896: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9897: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   9898: _ACEOF
                   9899: sed -n '
                   9900: h
                   9901: s/^/S["/; s/!.*/"]=/
                   9902: p
                   9903: g
                   9904: s/^[^!]*!//
                   9905: :repl
                   9906: t repl
                   9907: s/'"$ac_delim"'$//
                   9908: t delim
                   9909: :nl
                   9910: h
                   9911: s/\(.\{148\}\)..*/\1/
                   9912: t more1
                   9913: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   9914: p
                   9915: n
                   9916: b repl
                   9917: :more1
                   9918: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9919: p
                   9920: g
                   9921: s/.\{148\}//
                   9922: t nl
                   9923: :delim
                   9924: h
                   9925: s/\(.\{148\}\)..*/\1/
                   9926: t more2
                   9927: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   9928: p
                   9929: b
                   9930: :more2
                   9931: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9932: p
                   9933: g
                   9934: s/.\{148\}//
                   9935: t delim
                   9936: ' <conf$$subs.awk | sed '
                   9937: /^[^""]/{
                   9938:   N
                   9939:   s/\n//
                   9940: }
                   9941: ' >>$CONFIG_STATUS || ac_write_fail=1
                   9942: rm -f conf$$subs.awk
                   9943: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9944: _ACAWK
                   9945: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   9946:   for (key in S) S_is_set[key] = 1
                   9947:   FS = ""
1.1       bertrand 9948: 
1.15      bertrand 9949: }
                   9950: {
                   9951:   line = $ 0
                   9952:   nfields = split(line, field, "@")
                   9953:   substed = 0
                   9954:   len = length(field[1])
                   9955:   for (i = 2; i < nfields; i++) {
                   9956:     key = field[i]
                   9957:     keylen = length(key)
                   9958:     if (S_is_set[key]) {
                   9959:       value = S[key]
                   9960:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   9961:       len += length(value) + length(field[++i])
                   9962:       substed = 1
                   9963:     } else
                   9964:       len += 1 + keylen
                   9965:   }
1.1       bertrand 9966: 
1.15      bertrand 9967:   print line
                   9968: }
1.1       bertrand 9969: 
1.15      bertrand 9970: _ACAWK
1.14      bertrand 9971: _ACEOF
1.15      bertrand 9972: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9973: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   9974:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   9975: else
                   9976:   cat
                   9977: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
                   9978:   || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 9979: _ACEOF
                   9980: 
                   9981: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   9982: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   9983: # trailing colons and then remove the whole line if VPATH becomes empty
                   9984: # (actually we leave an empty line to preserve line numbers).
                   9985: if test "x$srcdir" = x.; then
                   9986:   ac_vpsub='/^[     ]*VPATH[    ]*=/{
                   9987: s/:*\$(srcdir):*/:/
                   9988: s/:*\${srcdir}:*/:/
                   9989: s/:*@srcdir@:*/:/
                   9990: s/^\([^=]*=[    ]*\):*/\1/
                   9991: s/:*$//
                   9992: s/^[^=]*=[  ]*$//
                   9993: }'
                   9994: fi
                   9995: 
1.15      bertrand 9996: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9997: fi # test -n "$CONFIG_FILES"
                   9998: 
1.15      bertrand 9999: # Set up the scripts for CONFIG_HEADERS section.
                   10000: # No need to generate them if there are no CONFIG_HEADERS.
                   10001: # This happens for instance with `./config.status Makefile'.
                   10002: if test -n "$CONFIG_HEADERS"; then
                   10003: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   10004: BEGIN {
                   10005: _ACEOF
                   10006: 
                   10007: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10008: # here-document in config.status, that substitutes the proper values into
                   10009: # config.h.in to produce config.h.
                   10010: 
                   10011: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10012: # handling of long lines.
                   10013: ac_delim='%!_!# '
                   10014: for ac_last_try in false false :; do
                   10015:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10016:   if test -z "$ac_t"; then
                   10017:     break
                   10018:   elif $ac_last_try; then
                   10019:     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
                   10020:   else
                   10021:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10022:   fi
                   10023: done
                   10024: 
                   10025: # For the awk script, D is an array of macro values keyed by name,
                   10026: # likewise P contains macro parameters if any.  Preserve backslash
                   10027: # newline sequences.
                   10028: 
                   10029: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10030: sed -n '
                   10031: s/.\{148\}/&'"$ac_delim"'/g
                   10032: t rset
                   10033: :rset
                   10034: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10035: t def
                   10036: d
                   10037: :def
                   10038: s/\\$//
                   10039: t bsnl
                   10040: s/["\\]/\\&/g
                   10041: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10042: D["\1"]=" \3"/p
                   10043: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10044: d
                   10045: :bsnl
                   10046: s/["\\]/\\&/g
                   10047: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10048: D["\1"]=" \3\\\\\\n"\\/p
                   10049: t cont
                   10050: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10051: t cont
                   10052: d
                   10053: :cont
                   10054: n
                   10055: s/.\{148\}/&'"$ac_delim"'/g
                   10056: t clear
                   10057: :clear
                   10058: s/\\$//
                   10059: t bsnlc
                   10060: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10061: d
                   10062: :bsnlc
                   10063: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10064: b cont
                   10065: ' <confdefs.h | sed '
                   10066: s/'"$ac_delim"'/"\\\
                   10067: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10068: 
                   10069: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10070:   for (key in D) D_is_set[key] = 1
                   10071:   FS = ""
                   10072: }
                   10073: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10074:   line = \$ 0
                   10075:   split(line, arg, " ")
                   10076:   if (arg[1] == "#") {
                   10077:     defundef = arg[2]
                   10078:     mac1 = arg[3]
                   10079:   } else {
                   10080:     defundef = substr(arg[1], 2)
                   10081:     mac1 = arg[2]
                   10082:   }
                   10083:   split(mac1, mac2, "(") #)
                   10084:   macro = mac2[1]
                   10085:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10086:   if (D_is_set[macro]) {
                   10087:     # Preserve the white space surrounding the "#".
                   10088:     print prefix "define", macro P[macro] D[macro]
                   10089:     next
                   10090:   } else {
                   10091:     # Replace #undef with comments.  This is necessary, for example,
                   10092:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10093:     # on some systems where configure will not decide to define it.
                   10094:     if (defundef == "undef") {
                   10095:       print "/*", prefix defundef, macro, "*/"
                   10096:       next
                   10097:     }
                   10098:   }
                   10099: }
                   10100: { print }
                   10101: _ACAWK
                   10102: _ACEOF
                   10103: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10104:   as_fn_error "could not setup config headers machinery" "$LINENO" 5
                   10105: fi # test -n "$CONFIG_HEADERS"
                   10106: 
1.1       bertrand 10107: 
1.15      bertrand 10108: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10109: shift
                   10110: for ac_tag
1.1       bertrand 10111: do
                   10112:   case $ac_tag in
                   10113:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10114:   esac
                   10115:   case $ac_mode$ac_tag in
                   10116:   :[FHL]*:*);;
1.15      bertrand 10117:   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10118:   :[FH]-) ac_tag=-:-;;
                   10119:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10120:   esac
                   10121:   ac_save_IFS=$IFS
                   10122:   IFS=:
                   10123:   set x $ac_tag
                   10124:   IFS=$ac_save_IFS
                   10125:   shift
                   10126:   ac_file=$1
                   10127:   shift
                   10128: 
                   10129:   case $ac_mode in
                   10130:   :L) ac_source=$1;;
                   10131:   :[FH])
                   10132:     ac_file_inputs=
                   10133:     for ac_f
                   10134:     do
                   10135:       case $ac_f in
                   10136:       -) ac_f="$tmp/stdin";;
                   10137:       *) # Look for the file first in the build tree, then in the source tree
                   10138:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10139:     # because $ac_f cannot contain `:'.
                   10140:     test -f "$ac_f" ||
                   10141:       case $ac_f in
                   10142:       [\\/$]*) false;;
                   10143:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10144:       esac ||
1.15      bertrand 10145:       as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10146:       esac
1.15      bertrand 10147:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10148:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10149:     done
                   10150: 
                   10151:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10152:     # use $as_me), people would be surprised to read:
                   10153:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10154:     configure_input='Generated from '`
                   10155:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10156:    `' by configure.'
1.1       bertrand 10157:     if test x"$ac_file" != x-; then
                   10158:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10159:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10160: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10161:     fi
1.15      bertrand 10162:     # Neutralize special characters interpreted by sed in replacement strings.
                   10163:     case $configure_input in #(
                   10164:     *\&* | *\|* | *\\* )
                   10165:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10166:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10167:     *) ac_sed_conf_input=$configure_input;;
                   10168:     esac
1.1       bertrand 10169: 
                   10170:     case $ac_tag in
1.15      bertrand 10171:     *:-:* | *:-) cat >"$tmp/stdin" \
                   10172:       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10173:     esac
                   10174:     ;;
                   10175:   esac
                   10176: 
                   10177:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10178: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10179:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10180:     X"$ac_file" : 'X\(//\)$' \| \
                   10181:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10182: $as_echo X"$ac_file" |
1.1       bertrand 10183:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10184:        s//\1/
                   10185:        q
                   10186:      }
                   10187:      /^X\(\/\/\)[^/].*/{
                   10188:        s//\1/
                   10189:        q
                   10190:      }
                   10191:      /^X\(\/\/\)$/{
                   10192:        s//\1/
                   10193:        q
                   10194:      }
                   10195:      /^X\(\/\).*/{
                   10196:        s//\1/
                   10197:        q
                   10198:      }
                   10199:      s/.*/./; q'`
1.15      bertrand 10200:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10201:   ac_builddir=.
                   10202: 
                   10203: case "$ac_dir" in
                   10204: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10205: *)
1.15      bertrand 10206:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10207:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10208:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10209:   case $ac_top_builddir_sub in
                   10210:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10211:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10212:   esac ;;
                   10213: esac
                   10214: ac_abs_top_builddir=$ac_pwd
                   10215: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10216: # for backward compatibility:
                   10217: ac_top_builddir=$ac_top_build_prefix
                   10218: 
                   10219: case $srcdir in
                   10220:   .)  # We are building in place.
                   10221:     ac_srcdir=.
                   10222:     ac_top_srcdir=$ac_top_builddir_sub
                   10223:     ac_abs_top_srcdir=$ac_pwd ;;
                   10224:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10225:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10226:     ac_top_srcdir=$srcdir
                   10227:     ac_abs_top_srcdir=$srcdir ;;
                   10228:   *) # Relative name.
                   10229:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10230:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10231:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10232: esac
                   10233: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10234: 
                   10235: 
                   10236:   case $ac_mode in
                   10237:   :F)
                   10238:   #
                   10239:   # CONFIG_FILE
                   10240:   #
                   10241: 
                   10242:   case $INSTALL in
                   10243:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10244:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10245:   esac
                   10246:   ac_MKDIR_P=$MKDIR_P
                   10247:   case $MKDIR_P in
                   10248:   [\\/$]* | ?:[\\/]* ) ;;
                   10249:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10250:   esac
                   10251: _ACEOF
                   10252: 
1.15      bertrand 10253: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10254: # If the template does not know about datarootdir, expand it.
                   10255: # FIXME: This hack should be removed a few years after 2.60.
                   10256: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10257: ac_sed_dataroot='
                   10258: /datarootdir/ {
1.1       bertrand 10259:   p
                   10260:   q
                   10261: }
                   10262: /@datadir@/p
                   10263: /@docdir@/p
                   10264: /@infodir@/p
                   10265: /@localedir@/p
1.15      bertrand 10266: /@mandir@/p'
                   10267: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10268: *datarootdir*) ac_datarootdir_seen=yes;;
                   10269: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10270:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10271: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10272: _ACEOF
1.15      bertrand 10273: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10274:   ac_datarootdir_hack='
                   10275:   s&@datadir@&$datadir&g
                   10276:   s&@docdir@&$docdir&g
                   10277:   s&@infodir@&$infodir&g
                   10278:   s&@localedir@&$localedir&g
                   10279:   s&@mandir@&$mandir&g
1.15      bertrand 10280:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10281: esac
                   10282: _ACEOF
                   10283: 
                   10284: # Neutralize VPATH when `$srcdir' = `.'.
                   10285: # Shell code in configure.ac might set extrasub.
                   10286: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10287: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10288: ac_sed_extra="$ac_vpsub
1.1       bertrand 10289: $extrasub
                   10290: _ACEOF
1.15      bertrand 10291: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10292: :t
                   10293: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10294: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10295: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10296: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10297: s&@srcdir@&$ac_srcdir&;t t
                   10298: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10299: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10300: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10301: s&@builddir@&$ac_builddir&;t t
                   10302: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10303: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10304: s&@INSTALL@&$ac_INSTALL&;t t
                   10305: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10306: $ac_datarootdir_hack
1.15      bertrand 10307: "
                   10308: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
                   10309:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10310: 
                   10311: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10312:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10313:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10314:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10315: which seems to be undefined.  Please make sure it is defined." >&5
1.15      bertrand 10316: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10317: which seems to be undefined.  Please make sure it is defined." >&2;}
                   10318: 
                   10319:   rm -f "$tmp/stdin"
                   10320:   case $ac_file in
1.15      bertrand 10321:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10322:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10323:   esac \
                   10324:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10325:  ;;
                   10326:   :H)
                   10327:   #
                   10328:   # CONFIG_HEADER
                   10329:   #
                   10330:   if test x"$ac_file" != x-; then
1.15      bertrand 10331:     {
                   10332:       $as_echo "/* $configure_input  */" \
                   10333:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10334:     } >"$tmp/config.h" \
                   10335:       || as_fn_error "could not create $ac_file" "$LINENO" 5
                   10336:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10337:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10338: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10339:     else
1.15      bertrand 10340:       rm -f "$ac_file"
                   10341:       mv "$tmp/config.h" "$ac_file" \
                   10342:    || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10343:     fi
                   10344:   else
1.15      bertrand 10345:     $as_echo "/* $configure_input  */" \
                   10346:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
                   10347:       || as_fn_error "could not create -" "$LINENO" 5
1.1       bertrand 10348:   fi
1.15      bertrand 10349: # Compute "$ac_file"'s index in $config_headers.
                   10350: _am_arg="$ac_file"
1.1       bertrand 10351: _am_stamp_count=1
                   10352: for _am_header in $config_headers :; do
                   10353:   case $_am_header in
                   10354:     $_am_arg | $_am_arg:* )
                   10355:       break ;;
                   10356:     * )
                   10357:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10358:   esac
                   10359: done
                   10360: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10361: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10362:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10363:     X"$_am_arg" : 'X\(//\)$' \| \
                   10364:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10365: $as_echo X"$_am_arg" |
1.1       bertrand 10366:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10367:        s//\1/
                   10368:        q
                   10369:      }
                   10370:      /^X\(\/\/\)[^/].*/{
                   10371:        s//\1/
                   10372:        q
                   10373:      }
                   10374:      /^X\(\/\/\)$/{
                   10375:        s//\1/
                   10376:        q
                   10377:      }
                   10378:      /^X\(\/\).*/{
                   10379:        s//\1/
                   10380:        q
                   10381:      }
                   10382:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10383:  ;;
                   10384: 
1.15      bertrand 10385:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10386: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10387:  ;;
                   10388:   esac
                   10389: 
                   10390: 
                   10391:   case $ac_file$ac_mode in
1.15      bertrand 10392:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10393:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10394:   # are listed without --file.  Let's play safe and only enable the eval
                   10395:   # if we detect the quoting.
                   10396:   case $CONFIG_FILES in
                   10397:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10398:   *)   set x $CONFIG_FILES ;;
                   10399:   esac
                   10400:   shift
                   10401:   for mf
                   10402:   do
                   10403:     # Strip MF so we end up with the name of the file.
                   10404:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10405:     # Check whether this is an Automake generated Makefile or not.
                   10406:     # We used to match only the files named `Makefile.in', but
                   10407:     # some people rename them; so instead we look at the file content.
                   10408:     # Grep'ing the first line is not enough: some people post-process
                   10409:     # each Makefile.in and add a new line on top of each file to say so.
                   10410:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10411:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10412:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10413:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10414: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10415:     X"$mf" : 'X\(//\)[^/]' \| \
                   10416:     X"$mf" : 'X\(//\)$' \| \
                   10417:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10418: $as_echo X"$mf" |
1.1       bertrand 10419:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10420:        s//\1/
                   10421:        q
                   10422:      }
                   10423:      /^X\(\/\/\)[^/].*/{
                   10424:        s//\1/
                   10425:        q
                   10426:      }
                   10427:      /^X\(\/\/\)$/{
                   10428:        s//\1/
                   10429:        q
                   10430:      }
                   10431:      /^X\(\/\).*/{
                   10432:        s//\1/
                   10433:        q
                   10434:      }
                   10435:      s/.*/./; q'`
1.15      bertrand 10436:     else
                   10437:       continue
                   10438:     fi
                   10439:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10440:     # from the Makefile without running `make'.
                   10441:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10442:     test -z "$DEPDIR" && continue
                   10443:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10444:     test -z "am__include" && continue
                   10445:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10446:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10447:     U=`sed -n 's/^U = //p' < "$mf"`
                   10448:     # Find all dependency output files, they are included files with
                   10449:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10450:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10451:     # expansion.
                   10452:     for file in `sed -n "
                   10453:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10454:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10455:       # Make sure the directory exists.
                   10456:       test -f "$dirpart/$file" && continue
                   10457:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10458: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10459:     X"$file" : 'X\(//\)[^/]' \| \
                   10460:     X"$file" : 'X\(//\)$' \| \
                   10461:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10462: $as_echo X"$file" |
1.1       bertrand 10463:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10464:        s//\1/
                   10465:        q
                   10466:      }
                   10467:      /^X\(\/\/\)[^/].*/{
                   10468:        s//\1/
                   10469:        q
                   10470:      }
                   10471:      /^X\(\/\/\)$/{
                   10472:        s//\1/
                   10473:        q
                   10474:      }
                   10475:      /^X\(\/\).*/{
                   10476:        s//\1/
                   10477:        q
                   10478:      }
                   10479:      s/.*/./; q'`
1.15      bertrand 10480:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10481:       # echo "creating $dirpart/$file"
                   10482:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10483:     done
                   10484:   done
1.15      bertrand 10485: }
1.1       bertrand 10486:  ;;
                   10487: 
                   10488:   esac
                   10489: done # for ac_tag
                   10490: 
                   10491: 
1.15      bertrand 10492: as_fn_exit 0
1.1       bertrand 10493: _ACEOF
                   10494: ac_clean_files=$ac_clean_files_save
                   10495: 
1.15      bertrand 10496: test $ac_write_fail = 0 ||
                   10497:   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   10498: 
1.1       bertrand 10499: 
                   10500: # configure is writing to config.log, and then calls config.status.
                   10501: # config.status does its own redirection, appending to config.log.
                   10502: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10503: # by configure, so config.status won't be able to write to it; its
                   10504: # output is simply discarded.  So we exec the FD to /dev/null,
                   10505: # effectively closing config.log, so it can be properly (re)opened and
                   10506: # appended to by config.status.  When coming back to configure, we
                   10507: # need to make the FD available again.
                   10508: if test "$no_create" != yes; then
                   10509:   ac_cs_success=:
                   10510:   ac_config_status_args=
                   10511:   test "$silent" = yes &&
                   10512:     ac_config_status_args="$ac_config_status_args --quiet"
                   10513:   exec 5>/dev/null
                   10514:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10515:   exec 5>>config.log
                   10516:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10517:   # would make configure fail if this is the last instruction.
1.15      bertrand 10518:   $ac_cs_success || as_fn_exit $?
1.1       bertrand 10519: fi
                   10520: 
                   10521: #
                   10522: # CONFIG_SUBDIRS section.
                   10523: #
                   10524: if test "$no_recursion" != yes; then
                   10525: 
1.15      bertrand 10526:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10527:   # so they do not pile up.
1.1       bertrand 10528:   ac_sub_configure_args=
                   10529:   ac_prev=
                   10530:   eval "set x $ac_configure_args"
                   10531:   shift
                   10532:   for ac_arg
                   10533:   do
                   10534:     if test -n "$ac_prev"; then
                   10535:       ac_prev=
                   10536:       continue
                   10537:     fi
                   10538:     case $ac_arg in
                   10539:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10540:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10541:       ac_prev=cache_file ;;
                   10542:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10543:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10544:     | --c=*)
                   10545:       ;;
                   10546:     --config-cache | -C)
                   10547:       ;;
                   10548:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10549:       ac_prev=srcdir ;;
                   10550:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10551:       ;;
                   10552:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10553:       ac_prev=prefix ;;
                   10554:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10555:       ;;
1.15      bertrand 10556:     --disable-option-checking)
                   10557:       ;;
1.1       bertrand 10558:     *)
                   10559:       case $ac_arg in
1.15      bertrand 10560:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10561:       esac
1.15      bertrand 10562:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10563:     esac
                   10564:   done
                   10565: 
                   10566:   # Always prepend --prefix to ensure using the same prefix
                   10567:   # in subdir configurations.
                   10568:   ac_arg="--prefix=$prefix"
                   10569:   case $ac_arg in
1.15      bertrand 10570:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10571:   esac
                   10572:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10573: 
                   10574:   # Pass --silent
                   10575:   if test "$silent" = yes; then
                   10576:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10577:   fi
                   10578: 
1.15      bertrand 10579:   # Always prepend --disable-option-checking to silence warnings, since
                   10580:   # different subdirs can have different --enable and --with options.
                   10581:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10582: 
1.1       bertrand 10583:   ac_popdir=`pwd`
                   10584:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10585: 
                   10586:     # Do not complain, so a configure script can configure whichever
                   10587:     # parts of a large source tree are present.
                   10588:     test -d "$srcdir/$ac_dir" || continue
                   10589: 
                   10590:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10591:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10592:     $as_echo "$ac_msg" >&6
                   10593:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10594:     ac_builddir=.
                   10595: 
                   10596: case "$ac_dir" in
                   10597: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10598: *)
1.15      bertrand 10599:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10600:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10601:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10602:   case $ac_top_builddir_sub in
                   10603:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10604:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10605:   esac ;;
                   10606: esac
                   10607: ac_abs_top_builddir=$ac_pwd
                   10608: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10609: # for backward compatibility:
                   10610: ac_top_builddir=$ac_top_build_prefix
                   10611: 
                   10612: case $srcdir in
                   10613:   .)  # We are building in place.
                   10614:     ac_srcdir=.
                   10615:     ac_top_srcdir=$ac_top_builddir_sub
                   10616:     ac_abs_top_srcdir=$ac_pwd ;;
                   10617:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10618:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10619:     ac_top_srcdir=$srcdir
                   10620:     ac_abs_top_srcdir=$srcdir ;;
                   10621:   *) # Relative name.
                   10622:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10623:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10624:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10625: esac
                   10626: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10627: 
                   10628: 
                   10629:     cd "$ac_dir"
                   10630: 
                   10631:     # Check for guested configure; otherwise get Cygnus style configure.
                   10632:     if test -f "$ac_srcdir/configure.gnu"; then
                   10633:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10634:     elif test -f "$ac_srcdir/configure"; then
                   10635:       ac_sub_configure=$ac_srcdir/configure
                   10636:     elif test -f "$ac_srcdir/configure.in"; then
                   10637:       # This should be Cygnus configure.
                   10638:       ac_sub_configure=$ac_aux_dir/configure
                   10639:     else
1.15      bertrand 10640:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   10641: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 10642:       ac_sub_configure=
                   10643:     fi
                   10644: 
                   10645:     # The recursion is here.
                   10646:     if test -n "$ac_sub_configure"; then
                   10647:       # Make the cache file name correct relative to the subdirectory.
                   10648:       case $cache_file in
                   10649:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   10650:       *) # Relative name.
                   10651:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   10652:       esac
                   10653: 
1.15      bertrand 10654:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   10655: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 10656:       # The eval makes quoting arguments work.
                   10657:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   10658:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.15      bertrand 10659:    as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 10660:     fi
                   10661: 
                   10662:     cd "$ac_popdir"
                   10663:   done
                   10664: fi
1.15      bertrand 10665: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10666:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10667: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10668: fi
1.1       bertrand 10669: 

CVSweb interface <joel.bertrand@systella.fr>