Annotation of rpl/configure, revision 1.21

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.15      bertrand 3202: NCURSES=ncurses-5.7-20100206
                   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
                   3219:   for ac_prog in gcc-4.4 gcc
                   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
                   3263:   for ac_prog in gcc-4.4 gcc
                   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);}'`
                   4007:    if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4008:        OPTIMISATION_C=-O3
                   4009:    else
                   4010:        if test $GCC_VERSION_MAJEURE -ge 5; then
                   4011:            OPTIMISATION_C=-O3
                   4012:        else
                   4013:            OPTIMISATION_C=-O2
                   4014:        fi
                   4015:    fi
1.14      bertrand 4016: fi
                   4017: 
1.15      bertrand 4018: if test "x$CC" != xcc; then
                   4019:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4020: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4021: else
1.15      bertrand 4022:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4023: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4024: fi
1.15      bertrand 4025: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4026:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4027: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
                   4028:   $as_echo_n "(cached) " >&6
1.1       bertrand 4029: else
1.15      bertrand 4030:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4031: /* end confdefs.h.  */
                   4032: 
                   4033: int
                   4034: main ()
                   4035: {
1.15      bertrand 4036: 
1.1       bertrand 4037:   ;
                   4038:   return 0;
                   4039: }
                   4040: _ACEOF
1.15      bertrand 4041: # Make sure it works both with $CC and with simple cc.
                   4042: # We do the test twice because some compilers refuse to overwrite an
                   4043: # existing .o file with -o, though they will create one.
                   4044: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4045: rm -f conftest2.*
                   4046: if { { case "(($ac_try" in
                   4047:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4048:   *) ac_try_echo=$ac_try;;
                   4049: esac
                   4050: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4051: $as_echo "$ac_try_echo"; } >&5
                   4052:   (eval "$ac_try") 2>&5
                   4053:   ac_status=$?
                   4054:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4055:   test $ac_status = 0; } &&
                   4056:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4057:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4058:   *) ac_try_echo=$ac_try;;
                   4059: esac
                   4060: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4061: $as_echo "$ac_try_echo"; } >&5
                   4062:   (eval "$ac_try") 2>&5
                   4063:   ac_status=$?
                   4064:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4065:   test $ac_status = 0; };
                   4066: then
                   4067:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4068:   if test "x$CC" != xcc; then
                   4069:     # Test first that cc exists at all.
                   4070:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4071:   { { case "(($ac_try" in
                   4072:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4073:   *) ac_try_echo=$ac_try;;
                   4074: esac
                   4075: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4076: $as_echo "$ac_try_echo"; } >&5
                   4077:   (eval "$ac_try") 2>&5
                   4078:   ac_status=$?
                   4079:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4080:   test $ac_status = 0; }; }; then
                   4081:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4082:       rm -f conftest2.*
                   4083:       if { { case "(($ac_try" in
                   4084:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4085:   *) ac_try_echo=$ac_try;;
                   4086: esac
                   4087: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4088: $as_echo "$ac_try_echo"; } >&5
                   4089:   (eval "$ac_try") 2>&5
                   4090:   ac_status=$?
                   4091:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4092:   test $ac_status = 0; } &&
                   4093:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4094:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4095:   *) ac_try_echo=$ac_try;;
                   4096: esac
1.15      bertrand 4097: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4098: $as_echo "$ac_try_echo"; } >&5
                   4099:   (eval "$ac_try") 2>&5
1.14      bertrand 4100:   ac_status=$?
1.15      bertrand 4101:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4102:   test $ac_status = 0; };
                   4103:       then
                   4104:    # cc works too.
                   4105:    :
                   4106:       else
                   4107:    # cc exists but doesn't like -o.
                   4108:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4109:       fi
                   4110:     fi
                   4111:   fi
1.1       bertrand 4112: else
1.15      bertrand 4113:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4114: fi
                   4115: rm -f core conftest*
1.14      bertrand 4116: 
1.1       bertrand 4117: fi
1.15      bertrand 4118: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4119:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4120: $as_echo "yes" >&6; }
                   4121: else
                   4122:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4123: $as_echo "no" >&6; }
                   4124: 
                   4125: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4126: 
                   4127: fi
1.15      bertrand 4128: 
                   4129: # FIXME: we rely on the cache variable name because
                   4130: # there is no other way.
                   4131: set dummy $CC
                   4132: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4133: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4134: if test "$am_t" != yes; then
                   4135:    # Losing compiler, so override with the script.
                   4136:    # FIXME: It is wrong to rewrite CC.
                   4137:    # But if we don't then we get into trouble of one sort or another.
                   4138:    # A longer-term fix would be to have automake use am__CC in this case,
                   4139:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4140:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4141: fi
1.14      bertrand 4142: 
                   4143: 
1.15      bertrand 4144: 
                   4145: if test "$GCC" != yes; then
                   4146:    as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
                   4147: fi
                   4148: 
                   4149: ac_ext=cpp
                   4150: ac_cpp='$CXXCPP $CPPFLAGS'
                   4151: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4152: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4153: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4154: if test -z "$CXX"; then
                   4155:   if test -n "$CCC"; then
                   4156:     CXX=$CCC
                   4157:   else
                   4158:     if test -n "$ac_tool_prefix"; then
                   4159:   for ac_prog in g++-4.4 g++
                   4160:   do
                   4161:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4162: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4164: $as_echo_n "checking for $ac_word... " >&6; }
                   4165: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4166:   $as_echo_n "(cached) " >&6
1.1       bertrand 4167: else
1.15      bertrand 4168:   if test -n "$CXX"; then
                   4169:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4170: else
1.15      bertrand 4171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4172: for as_dir in $PATH
                   4173: do
                   4174:   IFS=$as_save_IFS
                   4175:   test -z "$as_dir" && as_dir=.
                   4176:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4177:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4178:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4179:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4180:     break 2
                   4181:   fi
                   4182: done
                   4183:   done
                   4184: IFS=$as_save_IFS
1.14      bertrand 4185: 
                   4186: fi
                   4187: fi
1.15      bertrand 4188: CXX=$ac_cv_prog_CXX
                   4189: if test -n "$CXX"; then
                   4190:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4191: $as_echo "$CXX" >&6; }
1.14      bertrand 4192: else
1.15      bertrand 4193:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4194: $as_echo "no" >&6; }
1.14      bertrand 4195: fi
                   4196: 
                   4197: 
1.15      bertrand 4198:     test -n "$CXX" && break
                   4199:   done
                   4200: fi
                   4201: if test -z "$CXX"; then
                   4202:   ac_ct_CXX=$CXX
                   4203:   for ac_prog in g++-4.4 g++
                   4204: do
                   4205:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4206: set dummy $ac_prog; ac_word=$2
                   4207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4208: $as_echo_n "checking for $ac_word... " >&6; }
                   4209: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4210:   $as_echo_n "(cached) " >&6
                   4211: else
                   4212:   if test -n "$ac_ct_CXX"; then
                   4213:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4214: else
                   4215: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4216: for as_dir in $PATH
                   4217: do
                   4218:   IFS=$as_save_IFS
                   4219:   test -z "$as_dir" && as_dir=.
                   4220:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4221:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4222:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4223:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4224:     break 2
                   4225:   fi
                   4226: done
                   4227:   done
                   4228: IFS=$as_save_IFS
1.14      bertrand 4229: 
1.15      bertrand 4230: fi
                   4231: fi
                   4232: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4233: if test -n "$ac_ct_CXX"; then
                   4234:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4235: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4236: else
1.15      bertrand 4237:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4238: $as_echo "no" >&6; }
1.14      bertrand 4239: fi
                   4240: 
                   4241: 
1.15      bertrand 4242:   test -n "$ac_ct_CXX" && break
                   4243: done
1.14      bertrand 4244: 
1.15      bertrand 4245:   if test "x$ac_ct_CXX" = x; then
                   4246:     CXX="g++"
                   4247:   else
                   4248:     case $cross_compiling:$ac_tool_warned in
                   4249: yes:)
                   4250: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4251: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4252: ac_tool_warned=yes ;;
                   4253: esac
                   4254:     CXX=$ac_ct_CXX
                   4255:   fi
                   4256: fi
1.1       bertrand 4257: 
1.15      bertrand 4258:   fi
                   4259: fi
                   4260: # Provide some information about the compiler.
                   4261: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4262: set X $ac_compile
                   4263: ac_compiler=$2
                   4264: for ac_option in --version -v -V -qversion; do
                   4265:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4266: case "(($ac_try" in
                   4267:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4268:   *) ac_try_echo=$ac_try;;
                   4269: esac
1.15      bertrand 4270: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4271: $as_echo "$ac_try_echo"; } >&5
                   4272:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4273:   ac_status=$?
1.15      bertrand 4274:   if test -s conftest.err; then
                   4275:     sed '10a\
                   4276: ... rest of stderr output deleted ...
                   4277:          10q' conftest.err >conftest.er1
                   4278:     cat conftest.er1 >&5
                   4279:   fi
                   4280:   rm -f conftest.er1 conftest.err
                   4281:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4282:   test $ac_status = 0; }
                   4283: done
                   4284: 
                   4285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4286: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4287: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4288:   $as_echo_n "(cached) " >&6
1.14      bertrand 4289: else
1.15      bertrand 4290:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4291: /* end confdefs.h.  */
1.1       bertrand 4292: 
                   4293: int
                   4294: main ()
                   4295: {
1.15      bertrand 4296: #ifndef __GNUC__
                   4297:        choke me
                   4298: #endif
1.1       bertrand 4299: 
                   4300:   ;
                   4301:   return 0;
                   4302: }
                   4303: _ACEOF
1.15      bertrand 4304: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4305:   ac_compiler_gnu=yes
1.1       bertrand 4306: else
1.15      bertrand 4307:   ac_compiler_gnu=no
1.1       bertrand 4308: fi
1.14      bertrand 4309: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4310: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4311: 
1.15      bertrand 4312: fi
                   4313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4314: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4315: if test $ac_compiler_gnu = yes; then
                   4316:   GXX=yes
                   4317: else
                   4318:   GXX=
                   4319: fi
                   4320: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4321: ac_save_CXXFLAGS=$CXXFLAGS
                   4322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4323: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4324: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4325:   $as_echo_n "(cached) " >&6
                   4326: else
                   4327:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4328:    ac_cxx_werror_flag=yes
                   4329:    ac_cv_prog_cxx_g=no
                   4330:    CXXFLAGS="-g"
                   4331:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4332: /* end confdefs.h.  */
1.15      bertrand 4333: 
1.1       bertrand 4334: int
                   4335: main ()
                   4336: {
1.14      bertrand 4337: 
1.1       bertrand 4338:   ;
                   4339:   return 0;
                   4340: }
                   4341: _ACEOF
1.15      bertrand 4342: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4343:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4344: else
1.15      bertrand 4345:   CXXFLAGS=""
                   4346:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4347: /* end confdefs.h.  */
1.1       bertrand 4348: 
1.14      bertrand 4349: int
                   4350: main ()
                   4351: {
1.1       bertrand 4352: 
1.14      bertrand 4353:   ;
                   4354:   return 0;
                   4355: }
                   4356: _ACEOF
1.15      bertrand 4357: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4358: 
                   4359: else
1.15      bertrand 4360:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4361:     CXXFLAGS="-g"
                   4362:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4363: /* end confdefs.h.  */
1.1       bertrand 4364: 
1.14      bertrand 4365: int
                   4366: main ()
                   4367: {
1.1       bertrand 4368: 
1.14      bertrand 4369:   ;
                   4370:   return 0;
                   4371: }
                   4372: _ACEOF
1.15      bertrand 4373: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4374:   ac_cv_prog_cxx_g=yes
                   4375: fi
                   4376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4377: fi
                   4378: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4379: fi
                   4380: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4381:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4382: fi
                   4383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4384: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4385: if test "$ac_test_CXXFLAGS" = set; then
                   4386:   CXXFLAGS=$ac_save_CXXFLAGS
                   4387: elif test $ac_cv_prog_cxx_g = yes; then
                   4388:   if test "$GXX" = yes; then
                   4389:     CXXFLAGS="-g -O2"
                   4390:   else
                   4391:     CXXFLAGS="-g"
                   4392:   fi
                   4393: else
                   4394:   if test "$GXX" = yes; then
                   4395:     CXXFLAGS="-O2"
                   4396:   else
                   4397:     CXXFLAGS=
                   4398:   fi
                   4399: fi
                   4400: ac_ext=c
                   4401: ac_cpp='$CPP $CPPFLAGS'
                   4402: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4403: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4404: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4405: 
                   4406: depcc="$CXX"  am_compiler_list=
                   4407: 
                   4408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4409: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4410: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4411:   $as_echo_n "(cached) " >&6
                   4412: else
                   4413:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4414:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4415:   # making bogus files that we don't know about and never remove.  For
                   4416:   # instance it was reported that on HP-UX the gcc test will end up
                   4417:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4418:   # in D'.
                   4419:   mkdir conftest.dir
                   4420:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4421:   # using a relative directory.
                   4422:   cp "$am_depcomp" conftest.dir
                   4423:   cd conftest.dir
                   4424:   # We will build objects and dependencies in a subdirectory because
                   4425:   # it helps to detect inapplicable dependency modes.  For instance
                   4426:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4427:   # side effect of compilation, but ICC will put the dependencies in
                   4428:   # the current directory while Tru64 will put them in the object
                   4429:   # directory.
                   4430:   mkdir sub
                   4431: 
                   4432:   am_cv_CXX_dependencies_compiler_type=none
                   4433:   if test "$am_compiler_list" = ""; then
                   4434:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4435:   fi
                   4436:   am__universal=false
                   4437:   case " $depcc " in #(
                   4438:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4439:      esac
                   4440: 
                   4441:   for depmode in $am_compiler_list; do
                   4442:     # Setup a source with many dependencies, because some compilers
                   4443:     # like to wrap large dependency lists on column 80 (with \), and
                   4444:     # we should not choose a depcomp mode which is confused by this.
                   4445:     #
                   4446:     # We need to recreate these files for each test, as the compiler may
                   4447:     # overwrite some of them when testing with obscure command lines.
                   4448:     # This happens at least with the AIX C compiler.
                   4449:     : > sub/conftest.c
                   4450:     for i in 1 2 3 4 5 6; do
                   4451:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4452:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4453:       # Solaris 8's {/usr,}/bin/sh.
                   4454:       touch sub/conftst$i.h
                   4455:     done
                   4456:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4457: 
                   4458:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4459:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4460:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4461:     # versions had trouble with output in subdirs
                   4462:     am__obj=sub/conftest.${OBJEXT-o}
                   4463:     am__minus_obj="-o $am__obj"
                   4464:     case $depmode in
                   4465:     gcc)
                   4466:       # This depmode causes a compiler race in universal mode.
                   4467:       test "$am__universal" = false || continue
                   4468:       ;;
                   4469:     nosideeffect)
                   4470:       # after this tag, mechanisms are not by side-effect, so they'll
                   4471:       # only be used when explicitly requested
                   4472:       if test "x$enable_dependency_tracking" = xyes; then
                   4473:    continue
                   4474:       else
                   4475:    break
                   4476:       fi
                   4477:       ;;
                   4478:     msvisualcpp | msvcmsys)
                   4479:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4480:       # not run yet.  These depmodes are late enough in the game, and
                   4481:       # so weak that their functioning should not be impacted.
                   4482:       am__obj=conftest.${OBJEXT-o}
                   4483:       am__minus_obj=
                   4484:       ;;
                   4485:     none) break ;;
                   4486:     esac
                   4487:     if depmode=$depmode \
                   4488:        source=sub/conftest.c object=$am__obj \
                   4489:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4490:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4491:          >/dev/null 2>conftest.err &&
                   4492:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4493:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4494:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4495:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4496:       # icc doesn't choke on unknown options, it will just issue warnings
                   4497:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4498:       # that says an option was ignored or not supported.
                   4499:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4500:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4501:       # The diagnosis changed in icc 8.0:
                   4502:       #   icc: Command line remark: option '-MP' not supported
                   4503:       if (grep 'ignoring option' conftest.err ||
                   4504:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4505:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4506:         break
                   4507:       fi
                   4508:     fi
                   4509:   done
                   4510: 
                   4511:   cd ..
                   4512:   rm -rf conftest.dir
                   4513: else
                   4514:   am_cv_CXX_dependencies_compiler_type=none
                   4515: fi
                   4516: 
                   4517: fi
                   4518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4519: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4520: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4521: 
                   4522:  if
                   4523:   test "x$enable_dependency_tracking" != xno \
                   4524:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4525:   am__fastdepCXX_TRUE=
                   4526:   am__fastdepCXX_FALSE='#'
                   4527: else
                   4528:   am__fastdepCXX_TRUE='#'
                   4529:   am__fastdepCXX_FALSE=
                   4530: fi
                   4531: 
                   4532: 
                   4533: 
                   4534: if test "$GXX" != yes; then
                   4535:    as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
                   4536: fi
                   4537: 
                   4538: ac_ext=f
                   4539: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4540: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4541: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4542: if test -n "$ac_tool_prefix"; then
                   4543:   for ac_prog in gfortran-4.4 gfortran
                   4544:   do
                   4545:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4546: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4548: $as_echo_n "checking for $ac_word... " >&6; }
                   4549: if test "${ac_cv_prog_F77+set}" = set; then :
                   4550:   $as_echo_n "(cached) " >&6
                   4551: else
                   4552:   if test -n "$F77"; then
                   4553:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4554: else
                   4555: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4556: for as_dir in $PATH
                   4557: do
                   4558:   IFS=$as_save_IFS
                   4559:   test -z "$as_dir" && as_dir=.
                   4560:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4561:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4562:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4563:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4564:     break 2
                   4565:   fi
                   4566: done
                   4567:   done
                   4568: IFS=$as_save_IFS
                   4569: 
                   4570: fi
                   4571: fi
                   4572: F77=$ac_cv_prog_F77
                   4573: if test -n "$F77"; then
                   4574:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4575: $as_echo "$F77" >&6; }
                   4576: else
                   4577:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4578: $as_echo "no" >&6; }
                   4579: fi
                   4580: 
                   4581: 
                   4582:     test -n "$F77" && break
                   4583:   done
                   4584: fi
                   4585: if test -z "$F77"; then
                   4586:   ac_ct_F77=$F77
                   4587:   for ac_prog in gfortran-4.4 gfortran
                   4588: do
                   4589:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4590: set dummy $ac_prog; ac_word=$2
                   4591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4592: $as_echo_n "checking for $ac_word... " >&6; }
                   4593: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4594:   $as_echo_n "(cached) " >&6
                   4595: else
                   4596:   if test -n "$ac_ct_F77"; then
                   4597:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4598: else
                   4599: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4600: for as_dir in $PATH
                   4601: do
                   4602:   IFS=$as_save_IFS
                   4603:   test -z "$as_dir" && as_dir=.
                   4604:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4605:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4606:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4607:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4608:     break 2
                   4609:   fi
                   4610: done
                   4611:   done
                   4612: IFS=$as_save_IFS
                   4613: 
                   4614: fi
                   4615: fi
                   4616: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4617: if test -n "$ac_ct_F77"; then
                   4618:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4619: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4620: else
1.15      bertrand 4621:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4622: $as_echo "no" >&6; }
                   4623: fi
                   4624: 
                   4625: 
                   4626:   test -n "$ac_ct_F77" && break
                   4627: done
1.1       bertrand 4628: 
1.15      bertrand 4629:   if test "x$ac_ct_F77" = x; then
                   4630:     F77=""
                   4631:   else
                   4632:     case $cross_compiling:$ac_tool_warned in
                   4633: yes:)
                   4634: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4635: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4636: ac_tool_warned=yes ;;
                   4637: esac
                   4638:     F77=$ac_ct_F77
                   4639:   fi
1.14      bertrand 4640: fi
1.1       bertrand 4641: 
                   4642: 
1.15      bertrand 4643: # Provide some information about the compiler.
                   4644: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4645: set X $ac_compile
                   4646: ac_compiler=$2
                   4647: for ac_option in --version -v -V -qversion; do
                   4648:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4649: case "(($ac_try" in
                   4650:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4651:   *) ac_try_echo=$ac_try;;
                   4652: esac
1.15      bertrand 4653: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4654: $as_echo "$ac_try_echo"; } >&5
                   4655:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4656:   ac_status=$?
1.15      bertrand 4657:   if test -s conftest.err; then
                   4658:     sed '10a\
                   4659: ... rest of stderr output deleted ...
                   4660:          10q' conftest.err >conftest.er1
                   4661:     cat conftest.er1 >&5
                   4662:   fi
                   4663:   rm -f conftest.er1 conftest.err
                   4664:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4665:   test $ac_status = 0; }
                   4666: done
                   4667: rm -f a.out
                   4668: 
                   4669: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4670: # input file.  (Note that this only needs to work for GNU compilers.)
                   4671: ac_save_ext=$ac_ext
                   4672: ac_ext=F
                   4673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4674: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4675: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4676:   $as_echo_n "(cached) " >&6
1.1       bertrand 4677: else
1.15      bertrand 4678:   cat > conftest.$ac_ext <<_ACEOF
                   4679:       program main
                   4680: #ifndef __GNUC__
                   4681:        choke me
                   4682: #endif
1.14      bertrand 4683: 
1.15      bertrand 4684:       end
                   4685: _ACEOF
                   4686: if ac_fn_f77_try_compile "$LINENO"; then :
                   4687:   ac_compiler_gnu=yes
                   4688: else
                   4689:   ac_compiler_gnu=no
1.1       bertrand 4690: fi
1.15      bertrand 4691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4692: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4693: 
                   4694: fi
1.15      bertrand 4695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4696: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4697: ac_ext=$ac_save_ext
                   4698: ac_test_FFLAGS=${FFLAGS+set}
                   4699: ac_save_FFLAGS=$FFLAGS
                   4700: FFLAGS=
                   4701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4702: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4703: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4704:   $as_echo_n "(cached) " >&6
                   4705: else
                   4706:   FFLAGS=-g
                   4707: cat > conftest.$ac_ext <<_ACEOF
                   4708:       program main
1.1       bertrand 4709: 
1.15      bertrand 4710:       end
1.14      bertrand 4711: _ACEOF
1.15      bertrand 4712: if ac_fn_f77_try_compile "$LINENO"; then :
                   4713:   ac_cv_prog_f77_g=yes
1.1       bertrand 4714: else
1.15      bertrand 4715:   ac_cv_prog_f77_g=no
1.1       bertrand 4716: fi
1.15      bertrand 4717: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4718: 
                   4719: fi
1.15      bertrand 4720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4721: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4722: if test "$ac_test_FFLAGS" = set; then
                   4723:   FFLAGS=$ac_save_FFLAGS
                   4724: elif test $ac_cv_prog_f77_g = yes; then
                   4725:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4726:     FFLAGS="-g -O2"
                   4727:   else
                   4728:     FFLAGS="-g"
                   4729:   fi
                   4730: else
                   4731:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4732:     FFLAGS="-O2"
                   4733:   else
                   4734:     FFLAGS=
                   4735:   fi
1.1       bertrand 4736: fi
                   4737: 
1.15      bertrand 4738: if test $ac_compiler_gnu = yes; then
                   4739:   G77=yes
1.1       bertrand 4740: else
1.15      bertrand 4741:   G77=
1.1       bertrand 4742: fi
1.15      bertrand 4743: ac_ext=c
                   4744: ac_cpp='$CPP $CPPFLAGS'
                   4745: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4746: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4747: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4748: 
                   4749: 
1.15      bertrand 4750: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                   4751:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
                   4752: fi
1.14      bertrand 4753: 
1.15      bertrand 4754: ac_ext=${ac_fc_srcext-f}
                   4755: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4756: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4757: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4758: if test -n "$ac_tool_prefix"; then
                   4759:   for ac_prog in gfortran-4.4 gfortran
                   4760:   do
                   4761:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4762: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4764: $as_echo_n "checking for $ac_word... " >&6; }
                   4765: if test "${ac_cv_prog_FC+set}" = set; then :
                   4766:   $as_echo_n "(cached) " >&6
                   4767: else
                   4768:   if test -n "$FC"; then
                   4769:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4770: else
1.15      bertrand 4771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4772: for as_dir in $PATH
                   4773: do
                   4774:   IFS=$as_save_IFS
                   4775:   test -z "$as_dir" && as_dir=.
                   4776:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4777:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4778:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4779:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4780:     break 2
                   4781:   fi
                   4782: done
                   4783:   done
                   4784: IFS=$as_save_IFS
1.1       bertrand 4785: 
                   4786: fi
1.15      bertrand 4787: fi
                   4788: FC=$ac_cv_prog_FC
                   4789: if test -n "$FC"; then
                   4790:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4791: $as_echo "$FC" >&6; }
1.14      bertrand 4792: else
1.15      bertrand 4793:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4794: $as_echo "no" >&6; }
1.14      bertrand 4795: fi
                   4796: 
1.1       bertrand 4797: 
1.15      bertrand 4798:     test -n "$FC" && break
                   4799:   done
                   4800: fi
                   4801: if test -z "$FC"; then
                   4802:   ac_ct_FC=$FC
                   4803:   for ac_prog in gfortran-4.4 gfortran
                   4804: do
                   4805:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4806: set dummy $ac_prog; ac_word=$2
                   4807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4808: $as_echo_n "checking for $ac_word... " >&6; }
                   4809: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4810:   $as_echo_n "(cached) " >&6
                   4811: else
                   4812:   if test -n "$ac_ct_FC"; then
                   4813:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4814: else
                   4815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4816: for as_dir in $PATH
                   4817: do
                   4818:   IFS=$as_save_IFS
                   4819:   test -z "$as_dir" && as_dir=.
                   4820:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4821:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4822:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4823:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4824:     break 2
                   4825:   fi
                   4826: done
                   4827:   done
                   4828: IFS=$as_save_IFS
1.1       bertrand 4829: 
1.15      bertrand 4830: fi
                   4831: fi
                   4832: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4833: if test -n "$ac_ct_FC"; then
                   4834:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4835: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4836: else
1.15      bertrand 4837:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4838: $as_echo "no" >&6; }
1.1       bertrand 4839: fi
1.14      bertrand 4840: 
1.1       bertrand 4841: 
1.15      bertrand 4842:   test -n "$ac_ct_FC" && break
                   4843: done
1.1       bertrand 4844: 
1.15      bertrand 4845:   if test "x$ac_ct_FC" = x; then
                   4846:     FC=""
                   4847:   else
                   4848:     case $cross_compiling:$ac_tool_warned in
                   4849: yes:)
                   4850: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4851: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4852: ac_tool_warned=yes ;;
1.14      bertrand 4853: esac
1.15      bertrand 4854:     FC=$ac_ct_FC
                   4855:   fi
1.14      bertrand 4856: fi
                   4857: 
                   4858: 
1.15      bertrand 4859: # Provide some information about the compiler.
                   4860: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4861: set X $ac_compile
                   4862: ac_compiler=$2
                   4863: for ac_option in --version -v -V -qversion; do
                   4864:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4865: case "(($ac_try" in
                   4866:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4867:   *) ac_try_echo=$ac_try;;
                   4868: esac
1.15      bertrand 4869: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4870: $as_echo "$ac_try_echo"; } >&5
                   4871:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4872:   ac_status=$?
1.15      bertrand 4873:   if test -s conftest.err; then
                   4874:     sed '10a\
                   4875: ... rest of stderr output deleted ...
                   4876:          10q' conftest.err >conftest.er1
                   4877:     cat conftest.er1 >&5
                   4878:   fi
                   4879:   rm -f conftest.er1 conftest.err
                   4880:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4881:   test $ac_status = 0; }
                   4882: done
                   4883: rm -f a.out
                   4884: 
                   4885: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4886: # input file.  (Note that this only needs to work for GNU compilers.)
                   4887: ac_save_ext=$ac_ext
                   4888: ac_ext=F
                   4889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4890: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4891: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4892:   $as_echo_n "(cached) " >&6
1.14      bertrand 4893: else
1.15      bertrand 4894:   cat > conftest.$ac_ext <<_ACEOF
                   4895:       program main
                   4896: #ifndef __GNUC__
                   4897:        choke me
                   4898: #endif
1.14      bertrand 4899: 
1.15      bertrand 4900:       end
                   4901: _ACEOF
                   4902: if ac_fn_fc_try_compile "$LINENO"; then :
                   4903:   ac_compiler_gnu=yes
                   4904: else
                   4905:   ac_compiler_gnu=no
1.14      bertrand 4906: fi
                   4907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4908: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4909: 
1.15      bertrand 4910: fi
                   4911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4912: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4913: ac_ext=$ac_save_ext
                   4914: ac_test_FCFLAGS=${FCFLAGS+set}
                   4915: ac_save_FCFLAGS=$FCFLAGS
                   4916: FCFLAGS=
                   4917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4918: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4919: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4920:   $as_echo_n "(cached) " >&6
                   4921: else
                   4922:   FCFLAGS=-g
                   4923: cat > conftest.$ac_ext <<_ACEOF
                   4924:       program main
1.1       bertrand 4925: 
1.15      bertrand 4926:       end
1.1       bertrand 4927: _ACEOF
1.15      bertrand 4928: if ac_fn_fc_try_compile "$LINENO"; then :
                   4929:   ac_cv_prog_fc_g=yes
1.1       bertrand 4930: else
1.15      bertrand 4931:   ac_cv_prog_fc_g=no
1.1       bertrand 4932: fi
1.14      bertrand 4933: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4934: 
1.15      bertrand 4935: fi
                   4936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4937: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4938: if test "$ac_test_FCFLAGS" = set; then
                   4939:   FCFLAGS=$ac_save_FCFLAGS
                   4940: elif test $ac_cv_prog_fc_g = yes; then
                   4941:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4942:     FCFLAGS="-g -O2"
                   4943:   else
                   4944:     FCFLAGS="-g"
                   4945:   fi
1.1       bertrand 4946: else
1.15      bertrand 4947:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4948:     FCFLAGS="-O2"
                   4949:   else
                   4950:     FCFLAGS=
                   4951:   fi
1.1       bertrand 4952: fi
                   4953: 
1.15      bertrand 4954: ac_ext=c
                   4955: ac_cpp='$CPP $CPPFLAGS'
                   4956: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4957: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4958: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4959: 
                   4960: 
1.15      bertrand 4961: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                   4962:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 4963: fi
                   4964: 
1.15      bertrand 4965: if test x"$FC" != x""; then
                   4966:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4967:            awk -F. '{ printf("%s", $1);}'`
                   4968:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4969:            awk -F. '{ printf("%s", $2);}'`
                   4970:    if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4971:        OPTIMISATION_F=-O3
                   4972:    else
                   4973:        if test $GCC_VERSION_MAJEURE -ge 5; then
                   4974:            OPTIMISATION_F=-O3
                   4975:        else
                   4976:            OPTIMISATION_F=-O2
1.14      bertrand 4977:        fi
                   4978:    fi
                   4979: fi
1.1       bertrand 4980: 
                   4981: 
1.15      bertrand 4982: ac_ext=c
                   4983: ac_cpp='$CPP $CPPFLAGS'
                   4984: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4985: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4986: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   4988: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   4989: # On Suns, sometimes $CPP names a directory.
                   4990: if test -n "$CPP" && test -d "$CPP"; then
                   4991:   CPP=
                   4992: fi
                   4993: if test -z "$CPP"; then
                   4994:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   4995:   $as_echo_n "(cached) " >&6
                   4996: else
                   4997:       # Double quotes because CPP needs to be expanded
                   4998:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4999:     do
                   5000:       ac_preproc_ok=false
                   5001: for ac_c_preproc_warn_flag in '' yes
                   5002: do
                   5003:   # Use a header file that comes with gcc, so configuring glibc
                   5004:   # with a fresh cross-compiler works.
                   5005:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5006:   # <limits.h> exists even on freestanding compilers.
                   5007:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5008:   # not just through cpp. "Syntax error" is here to catch this case.
                   5009:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5010: /* end confdefs.h.  */
1.15      bertrand 5011: #ifdef __STDC__
                   5012: # include <limits.h>
                   5013: #else
                   5014: # include <assert.h>
                   5015: #endif
                   5016:             Syntax error
1.1       bertrand 5017: _ACEOF
1.15      bertrand 5018: if ac_fn_c_try_cpp "$LINENO"; then :
                   5019: 
1.1       bertrand 5020: else
1.15      bertrand 5021:   # Broken: fails on valid input.
                   5022: continue
1.1       bertrand 5023: fi
1.15      bertrand 5024: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5025: 
1.15      bertrand 5026:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5027:   # can be detected and how.
                   5028:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5029: /* end confdefs.h.  */
                   5030: #include <ac_nonexistent.h>
                   5031: _ACEOF
                   5032: if ac_fn_c_try_cpp "$LINENO"; then :
                   5033:   # Broken: success on invalid input.
                   5034: continue
                   5035: else
                   5036:   # Passes both tests.
                   5037: ac_preproc_ok=:
                   5038: break
1.1       bertrand 5039: fi
1.15      bertrand 5040: rm -f conftest.err conftest.$ac_ext
1.14      bertrand 5041: 
1.15      bertrand 5042: done
                   5043: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5044: rm -f conftest.err conftest.$ac_ext
                   5045: if $ac_preproc_ok; then :
                   5046:   break
1.1       bertrand 5047: fi
                   5048: 
1.15      bertrand 5049:     done
                   5050:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5051: 
1.15      bertrand 5052: fi
                   5053:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5054: else
1.15      bertrand 5055:   ac_cv_prog_CPP=$CPP
                   5056: fi
                   5057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5058: $as_echo "$CPP" >&6; }
                   5059: ac_preproc_ok=false
                   5060: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5061: do
1.15      bertrand 5062:   # Use a header file that comes with gcc, so configuring glibc
                   5063:   # with a fresh cross-compiler works.
                   5064:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5065:   # <limits.h> exists even on freestanding compilers.
                   5066:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5067:   # not just through cpp. "Syntax error" is here to catch this case.
                   5068:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5069: /* end confdefs.h.  */
                   5070: #ifdef __STDC__
                   5071: # include <limits.h>
                   5072: #else
                   5073: # include <assert.h>
                   5074: #endif
                   5075:             Syntax error
                   5076: _ACEOF
                   5077: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5078: 
1.15      bertrand 5079: else
                   5080:   # Broken: fails on valid input.
                   5081: continue
                   5082: fi
                   5083: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5084: 
1.15      bertrand 5085:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5086:   # can be detected and how.
                   5087:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5088: /* end confdefs.h.  */
                   5089: #include <ac_nonexistent.h>
                   5090: _ACEOF
                   5091: if ac_fn_c_try_cpp "$LINENO"; then :
                   5092:   # Broken: success on invalid input.
                   5093: continue
                   5094: else
                   5095:   # Passes both tests.
                   5096: ac_preproc_ok=:
                   5097: break
                   5098: fi
                   5099: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5100: 
                   5101: done
1.15      bertrand 5102: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5103: rm -f conftest.err conftest.$ac_ext
                   5104: if $ac_preproc_ok; then :
1.1       bertrand 5105: 
1.15      bertrand 5106: else
                   5107:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5108: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5109: as_fn_error "C preprocessor \"$CPP\" fails sanity check
                   5110: See \`config.log' for more details." "$LINENO" 5; }
                   5111: fi
1.14      bertrand 5112: 
1.15      bertrand 5113: ac_ext=c
                   5114: ac_cpp='$CPP $CPPFLAGS'
                   5115: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5116: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5117: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5118: 
                   5119: 
1.15      bertrand 5120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5121: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5122: 
                   5123: 
1.15      bertrand 5124: # Check whether --with-x was given.
                   5125: if test "${with_x+set}" = set; then :
                   5126:   withval=$with_x;
1.1       bertrand 5127: fi
1.14      bertrand 5128: 
1.15      bertrand 5129: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5130: if test "x$with_x" = xno; then
                   5131:   # The user explicitly disabled X.
                   5132:   have_x=disabled
1.1       bertrand 5133: else
1.15      bertrand 5134:   case $x_includes,$x_libraries in #(
                   5135:     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5136:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5137:   $as_echo_n "(cached) " >&6
1.1       bertrand 5138: else
1.15      bertrand 5139:   # One or both of the vars are not set, and there is no cached value.
                   5140: ac_x_includes=no ac_x_libraries=no
                   5141: rm -f -r conftest.dir
                   5142: if mkdir conftest.dir; then
                   5143:   cd conftest.dir
                   5144:   cat >Imakefile <<'_ACEOF'
                   5145: incroot:
                   5146:    @echo incroot='${INCROOT}'
                   5147: usrlibdir:
                   5148:    @echo usrlibdir='${USRLIBDIR}'
                   5149: libdir:
                   5150:    @echo libdir='${LIBDIR}'
                   5151: _ACEOF
                   5152:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
                   5153:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   5154:     for ac_var in incroot usrlibdir libdir; do
                   5155:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5156:     done
                   5157:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5158:     for ac_extension in a so sl dylib la dll; do
                   5159:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5160:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5161:    ac_im_usrlibdir=$ac_im_libdir; break
                   5162:       fi
                   5163:     done
                   5164:     # Screen out bogus values from the imake configuration.  They are
                   5165:     # bogus both because they are the default anyway, and because
                   5166:     # using them would break gcc on systems where it needs fixed includes.
                   5167:     case $ac_im_incroot in
                   5168:    /usr/include) ac_x_includes= ;;
                   5169:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5170:     esac
                   5171:     case $ac_im_usrlibdir in
                   5172:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5173:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5174:     esac
                   5175:   fi
                   5176:   cd ..
                   5177:   rm -f -r conftest.dir
                   5178: fi
                   5179: 
                   5180: # Standard set of common directories for X headers.
                   5181: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5182: ac_x_header_dirs='
                   5183: /usr/X11/include
                   5184: /usr/X11R7/include
                   5185: /usr/X11R6/include
                   5186: /usr/X11R5/include
                   5187: /usr/X11R4/include
1.1       bertrand 5188: 
1.15      bertrand 5189: /usr/include/X11
                   5190: /usr/include/X11R7
                   5191: /usr/include/X11R6
                   5192: /usr/include/X11R5
                   5193: /usr/include/X11R4
1.1       bertrand 5194: 
1.15      bertrand 5195: /usr/local/X11/include
                   5196: /usr/local/X11R7/include
                   5197: /usr/local/X11R6/include
                   5198: /usr/local/X11R5/include
                   5199: /usr/local/X11R4/include
1.1       bertrand 5200: 
1.15      bertrand 5201: /usr/local/include/X11
                   5202: /usr/local/include/X11R7
                   5203: /usr/local/include/X11R6
                   5204: /usr/local/include/X11R5
                   5205: /usr/local/include/X11R4
1.1       bertrand 5206: 
1.15      bertrand 5207: /usr/X386/include
                   5208: /usr/x386/include
                   5209: /usr/XFree86/include/X11
1.1       bertrand 5210: 
1.15      bertrand 5211: /usr/include
                   5212: /usr/local/include
                   5213: /usr/unsupported/include
                   5214: /usr/athena/include
                   5215: /usr/local/x11r5/include
                   5216: /usr/lpp/Xamples/include
1.1       bertrand 5217: 
1.15      bertrand 5218: /usr/openwin/include
                   5219: /usr/openwin/share/include'
1.1       bertrand 5220: 
1.15      bertrand 5221: if test "$ac_x_includes" = no; then
                   5222:   # Guess where to find include files, by looking for Xlib.h.
                   5223:   # First, try using that file with no special directory specified.
                   5224:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5225: /* end confdefs.h.  */
                   5226: #include <X11/Xlib.h>
                   5227: _ACEOF
                   5228: if ac_fn_c_try_cpp "$LINENO"; then :
                   5229:   # We can compile using X headers with no special include directory.
                   5230: ac_x_includes=
1.1       bertrand 5231: else
1.15      bertrand 5232:   for ac_dir in $ac_x_header_dirs; do
                   5233:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5234:     ac_x_includes=$ac_dir
                   5235:     break
                   5236:   fi
                   5237: done
1.1       bertrand 5238: fi
1.15      bertrand 5239: rm -f conftest.err conftest.$ac_ext
                   5240: fi # $ac_x_includes = no
1.1       bertrand 5241: 
1.15      bertrand 5242: if test "$ac_x_libraries" = no; then
                   5243:   # Check for the libraries.
                   5244:   # See if we find them without any special options.
                   5245:   # Don't add to $LIBS permanently.
                   5246:   ac_save_LIBS=$LIBS
                   5247:   LIBS="-lX11 $LIBS"
                   5248:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5249: /* end confdefs.h.  */
1.15      bertrand 5250: #include <X11/Xlib.h>
1.14      bertrand 5251: int
                   5252: main ()
                   5253: {
1.15      bertrand 5254: XrmInitialize ()
1.14      bertrand 5255:   ;
                   5256:   return 0;
                   5257: }
1.1       bertrand 5258: _ACEOF
1.15      bertrand 5259: if ac_fn_c_try_link "$LINENO"; then :
                   5260:   LIBS=$ac_save_LIBS
                   5261: # We can link X programs with no special library path.
                   5262: ac_x_libraries=
1.1       bertrand 5263: else
1.15      bertrand 5264:   LIBS=$ac_save_LIBS
                   5265: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5266: do
                   5267:   # Don't even attempt the hair of trying to link an X program!
                   5268:   for ac_extension in a so sl dylib la dll; do
                   5269:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5270:       ac_x_libraries=$ac_dir
                   5271:       break 2
                   5272:     fi
                   5273:   done
                   5274: done
                   5275: fi
                   5276: rm -f core conftest.err conftest.$ac_objext \
                   5277:     conftest$ac_exeext conftest.$ac_ext
                   5278: fi # $ac_x_libraries = no
1.1       bertrand 5279: 
1.15      bertrand 5280: case $ac_x_includes,$ac_x_libraries in #(
                   5281:   no,* | *,no | *\'*)
                   5282:     # Didn't find X, or a directory has "'" in its name.
                   5283:     ac_cv_have_x="have_x=no";; #(
                   5284:   *)
                   5285:     # Record where we found X for the cache.
                   5286:     ac_cv_have_x="have_x=yes\
                   5287:    ac_x_includes='$ac_x_includes'\
                   5288:    ac_x_libraries='$ac_x_libraries'"
                   5289: esac
1.1       bertrand 5290: fi
1.15      bertrand 5291: ;; #(
                   5292:     *) have_x=yes;;
                   5293:   esac
                   5294:   eval "$ac_cv_have_x"
                   5295: fi # $with_x != no
1.1       bertrand 5296: 
1.15      bertrand 5297: if test "$have_x" != yes; then
                   5298:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5299: $as_echo "$have_x" >&6; }
                   5300:   no_x=yes
1.14      bertrand 5301: else
1.15      bertrand 5302:   # If each of the values was on the command line, it overrides each guess.
                   5303:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5304:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5305:   # Update the cache value to reflect the command line values.
                   5306:   ac_cv_have_x="have_x=yes\
                   5307:    ac_x_includes='$x_includes'\
                   5308:    ac_x_libraries='$x_libraries'"
                   5309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5310: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5311: fi
1.1       bertrand 5312: 
1.15      bertrand 5313: if test "$no_x" = yes; then
                   5314:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5315: 
1.15      bertrand 5316: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5317: 
1.15      bertrand 5318:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5319: else
1.15      bertrand 5320:   if test -n "$x_includes"; then
                   5321:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5322:   fi
                   5323: 
                   5324:   # It would also be nice to do this for all -L options, not just this one.
                   5325:   if test -n "$x_libraries"; then
                   5326:     X_LIBS="$X_LIBS -L$x_libraries"
                   5327:     # For Solaris; some versions of Sun CC require a space after -R and
                   5328:     # others require no space.  Words are not sufficient . . . .
                   5329:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5330: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5331:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5332:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5333:     ac_c_werror_flag=yes
                   5334:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5335: /* end confdefs.h.  */
1.1       bertrand 5336: 
1.15      bertrand 5337: int
                   5338: main ()
                   5339: {
1.1       bertrand 5340: 
1.15      bertrand 5341:   ;
                   5342:   return 0;
                   5343: }
                   5344: _ACEOF
                   5345: if ac_fn_c_try_link "$LINENO"; then :
                   5346:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5347: $as_echo "no" >&6; }
                   5348:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5349: else
1.15      bertrand 5350:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5351:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5352: /* end confdefs.h.  */
1.1       bertrand 5353: 
1.14      bertrand 5354: int
                   5355: main ()
                   5356: {
1.15      bertrand 5357: 
                   5358:   ;
1.14      bertrand 5359:   return 0;
                   5360: }
                   5361: _ACEOF
1.15      bertrand 5362: if ac_fn_c_try_link "$LINENO"; then :
                   5363:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5364: $as_echo "yes" >&6; }
                   5365:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5366: else
1.15      bertrand 5367:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5368: $as_echo "neither works" >&6; }
1.14      bertrand 5369: fi
1.15      bertrand 5370: rm -f core conftest.err conftest.$ac_objext \
                   5371:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5372: fi
1.15      bertrand 5373: rm -f core conftest.err conftest.$ac_objext \
                   5374:     conftest$ac_exeext conftest.$ac_ext
                   5375:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5376:     LIBS=$ac_xsave_LIBS
                   5377:   fi
1.1       bertrand 5378: 
1.15      bertrand 5379:   # Check for system-dependent libraries X programs must link with.
                   5380:   # Do this before checking for the system-independent R6 libraries
                   5381:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5382: 
1.15      bertrand 5383:   if test "$ISC" = yes; then
                   5384:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5385:   else
                   5386:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5387:     # libraries were built with DECnet support.  And Karl Berry says
                   5388:     # the Alpha needs dnet_stub (dnet does not exist).
                   5389:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5390:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5391: /* end confdefs.h.  */
1.1       bertrand 5392: 
1.15      bertrand 5393: /* Override any GCC internal prototype to avoid an error.
                   5394:    Use char because int might match the return type of a GCC
                   5395:    builtin and then its argument prototype would still apply.  */
                   5396: #ifdef __cplusplus
                   5397: extern "C"
                   5398: #endif
                   5399: char XOpenDisplay ();
                   5400: int
                   5401: main ()
                   5402: {
                   5403: return XOpenDisplay ();
                   5404:   ;
                   5405:   return 0;
                   5406: }
1.1       bertrand 5407: _ACEOF
1.15      bertrand 5408: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5409: 
                   5410: else
1.15      bertrand 5411:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5412: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5413: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5414:   $as_echo_n "(cached) " >&6
                   5415: else
                   5416:   ac_check_lib_save_LIBS=$LIBS
                   5417: LIBS="-ldnet  $LIBS"
                   5418: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5419: /* end confdefs.h.  */
1.14      bertrand 5420: 
1.15      bertrand 5421: /* Override any GCC internal prototype to avoid an error.
                   5422:    Use char because int might match the return type of a GCC
                   5423:    builtin and then its argument prototype would still apply.  */
                   5424: #ifdef __cplusplus
                   5425: extern "C"
                   5426: #endif
                   5427: char dnet_ntoa ();
                   5428: int
                   5429: main ()
                   5430: {
                   5431: return dnet_ntoa ();
                   5432:   ;
                   5433:   return 0;
                   5434: }
1.1       bertrand 5435: _ACEOF
1.15      bertrand 5436: if ac_fn_c_try_link "$LINENO"; then :
                   5437:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5438: else
1.15      bertrand 5439:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5440: fi
1.15      bertrand 5441: rm -f core conftest.err conftest.$ac_objext \
                   5442:     conftest$ac_exeext conftest.$ac_ext
                   5443: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5444: fi
1.15      bertrand 5445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5446: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5447: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5448:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5449: fi
                   5450: 
1.15      bertrand 5451:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5452:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5453: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5454: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5455:   $as_echo_n "(cached) " >&6
1.14      bertrand 5456: else
1.15      bertrand 5457:   ac_check_lib_save_LIBS=$LIBS
                   5458: LIBS="-ldnet_stub  $LIBS"
                   5459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5460: /* end confdefs.h.  */
1.15      bertrand 5461: 
                   5462: /* Override any GCC internal prototype to avoid an error.
                   5463:    Use char because int might match the return type of a GCC
                   5464:    builtin and then its argument prototype would still apply.  */
                   5465: #ifdef __cplusplus
                   5466: extern "C"
                   5467: #endif
                   5468: char dnet_ntoa ();
1.1       bertrand 5469: int
                   5470: main ()
                   5471: {
1.15      bertrand 5472: return dnet_ntoa ();
1.1       bertrand 5473:   ;
                   5474:   return 0;
                   5475: }
                   5476: _ACEOF
1.15      bertrand 5477: if ac_fn_c_try_link "$LINENO"; then :
                   5478:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5479: else
1.15      bertrand 5480:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5481: fi
                   5482: rm -f core conftest.err conftest.$ac_objext \
                   5483:     conftest$ac_exeext conftest.$ac_ext
                   5484: LIBS=$ac_check_lib_save_LIBS
                   5485: fi
                   5486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5487: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5488: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5489:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5490: fi
1.14      bertrand 5491: 
1.15      bertrand 5492:     fi
1.1       bertrand 5493: fi
1.15      bertrand 5494: rm -f core conftest.err conftest.$ac_objext \
                   5495:     conftest$ac_exeext conftest.$ac_ext
                   5496:     LIBS="$ac_xsave_LIBS"
                   5497: 
                   5498:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5499:     # to get the SysV transport functions.
                   5500:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5501:     # needs -lnsl.
                   5502:     # The nsl library prevents programs from opening the X display
                   5503:     # on Irix 5.2, according to T.E. Dickey.
                   5504:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5505:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5506:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5507: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5508: 
                   5509: fi
                   5510: 
1.15      bertrand 5511:     if test $ac_cv_func_gethostbyname = no; then
                   5512:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5513: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5514: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5515:   $as_echo_n "(cached) " >&6
1.1       bertrand 5516: else
1.15      bertrand 5517:   ac_check_lib_save_LIBS=$LIBS
                   5518: LIBS="-lnsl  $LIBS"
                   5519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5520: /* end confdefs.h.  */
1.15      bertrand 5521: 
                   5522: /* Override any GCC internal prototype to avoid an error.
                   5523:    Use char because int might match the return type of a GCC
                   5524:    builtin and then its argument prototype would still apply.  */
                   5525: #ifdef __cplusplus
                   5526: extern "C"
                   5527: #endif
                   5528: char gethostbyname ();
1.1       bertrand 5529: int
                   5530: main ()
                   5531: {
1.15      bertrand 5532: return gethostbyname ();
1.1       bertrand 5533:   ;
                   5534:   return 0;
                   5535: }
                   5536: _ACEOF
1.15      bertrand 5537: if ac_fn_c_try_link "$LINENO"; then :
                   5538:   ac_cv_lib_nsl_gethostbyname=yes
                   5539: else
                   5540:   ac_cv_lib_nsl_gethostbyname=no
                   5541: fi
                   5542: rm -f core conftest.err conftest.$ac_objext \
                   5543:     conftest$ac_exeext conftest.$ac_ext
                   5544: LIBS=$ac_check_lib_save_LIBS
                   5545: fi
                   5546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5547: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5548: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5549:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5550: fi
                   5551: 
                   5552:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5553:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5554: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5555: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5556:   $as_echo_n "(cached) " >&6
                   5557: else
                   5558:   ac_check_lib_save_LIBS=$LIBS
                   5559: LIBS="-lbsd  $LIBS"
                   5560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5561: /* end confdefs.h.  */
1.15      bertrand 5562: 
                   5563: /* Override any GCC internal prototype to avoid an error.
                   5564:    Use char because int might match the return type of a GCC
                   5565:    builtin and then its argument prototype would still apply.  */
                   5566: #ifdef __cplusplus
                   5567: extern "C"
                   5568: #endif
                   5569: char gethostbyname ();
1.1       bertrand 5570: int
                   5571: main ()
                   5572: {
1.15      bertrand 5573: return gethostbyname ();
1.1       bertrand 5574:   ;
                   5575:   return 0;
                   5576: }
                   5577: _ACEOF
1.15      bertrand 5578: if ac_fn_c_try_link "$LINENO"; then :
                   5579:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5580: else
1.15      bertrand 5581:   ac_cv_lib_bsd_gethostbyname=no
                   5582: fi
                   5583: rm -f core conftest.err conftest.$ac_objext \
                   5584:     conftest$ac_exeext conftest.$ac_ext
                   5585: LIBS=$ac_check_lib_save_LIBS
                   5586: fi
                   5587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5588: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5589: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5590:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5591: fi
                   5592: 
                   5593:       fi
                   5594:     fi
                   5595: 
                   5596:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5597:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5598:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5599:     # on later versions), says Simon Leinen: it contains gethostby*
                   5600:     # variants that don't use the name server (or something).  -lsocket
                   5601:     # must be given before -lnsl if both are needed.  We assume that
                   5602:     # if connect needs -lnsl, so does gethostbyname.
                   5603:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5604: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5605: 
1.1       bertrand 5606: fi
                   5607: 
1.15      bertrand 5608:     if test $ac_cv_func_connect = no; then
                   5609:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5610: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5611: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5612:   $as_echo_n "(cached) " >&6
1.14      bertrand 5613: else
1.15      bertrand 5614:   ac_check_lib_save_LIBS=$LIBS
                   5615: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5617: /* end confdefs.h.  */
1.1       bertrand 5618: 
1.15      bertrand 5619: /* Override any GCC internal prototype to avoid an error.
                   5620:    Use char because int might match the return type of a GCC
                   5621:    builtin and then its argument prototype would still apply.  */
                   5622: #ifdef __cplusplus
                   5623: extern "C"
                   5624: #endif
                   5625: char connect ();
1.14      bertrand 5626: int
                   5627: main ()
                   5628: {
1.15      bertrand 5629: return connect ();
1.14      bertrand 5630:   ;
                   5631:   return 0;
                   5632: }
                   5633: _ACEOF
1.15      bertrand 5634: if ac_fn_c_try_link "$LINENO"; then :
                   5635:   ac_cv_lib_socket_connect=yes
                   5636: else
                   5637:   ac_cv_lib_socket_connect=no
                   5638: fi
                   5639: rm -f core conftest.err conftest.$ac_objext \
                   5640:     conftest$ac_exeext conftest.$ac_ext
                   5641: LIBS=$ac_check_lib_save_LIBS
                   5642: fi
                   5643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5644: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5645: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5646:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5647: fi
                   5648: 
                   5649:     fi
                   5650: 
                   5651:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5652:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5653: if test "x$ac_cv_func_remove" = x""yes; then :
                   5654: 
                   5655: fi
                   5656: 
                   5657:     if test $ac_cv_func_remove = no; then
                   5658:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5659: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5660: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5661:   $as_echo_n "(cached) " >&6
                   5662: else
                   5663:   ac_check_lib_save_LIBS=$LIBS
                   5664: LIBS="-lposix  $LIBS"
                   5665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5666: /* end confdefs.h.  */
1.15      bertrand 5667: 
                   5668: /* Override any GCC internal prototype to avoid an error.
                   5669:    Use char because int might match the return type of a GCC
                   5670:    builtin and then its argument prototype would still apply.  */
                   5671: #ifdef __cplusplus
                   5672: extern "C"
                   5673: #endif
                   5674: char remove ();
1.1       bertrand 5675: int
                   5676: main ()
                   5677: {
1.15      bertrand 5678: return remove ();
1.1       bertrand 5679:   ;
                   5680:   return 0;
                   5681: }
                   5682: _ACEOF
1.15      bertrand 5683: if ac_fn_c_try_link "$LINENO"; then :
                   5684:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5685: else
1.15      bertrand 5686:   ac_cv_lib_posix_remove=no
                   5687: fi
                   5688: rm -f core conftest.err conftest.$ac_objext \
                   5689:     conftest$ac_exeext conftest.$ac_ext
                   5690: LIBS=$ac_check_lib_save_LIBS
                   5691: fi
                   5692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5693: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5694: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5695:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5696: fi
1.1       bertrand 5697: 
1.15      bertrand 5698:     fi
1.14      bertrand 5699: 
1.15      bertrand 5700:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5701:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5702: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5703: 
                   5704: fi
                   5705: 
1.15      bertrand 5706:     if test $ac_cv_func_shmat = no; then
                   5707:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5708: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5709: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5710:   $as_echo_n "(cached) " >&6
                   5711: else
                   5712:   ac_check_lib_save_LIBS=$LIBS
                   5713: LIBS="-lipc  $LIBS"
                   5714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5715: /* end confdefs.h.  */
1.15      bertrand 5716: 
                   5717: /* Override any GCC internal prototype to avoid an error.
                   5718:    Use char because int might match the return type of a GCC
                   5719:    builtin and then its argument prototype would still apply.  */
                   5720: #ifdef __cplusplus
                   5721: extern "C"
                   5722: #endif
                   5723: char shmat ();
1.1       bertrand 5724: int
                   5725: main ()
                   5726: {
1.15      bertrand 5727: return shmat ();
1.1       bertrand 5728:   ;
                   5729:   return 0;
                   5730: }
                   5731: _ACEOF
1.15      bertrand 5732: if ac_fn_c_try_link "$LINENO"; then :
                   5733:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5734: else
1.15      bertrand 5735:   ac_cv_lib_ipc_shmat=no
                   5736: fi
                   5737: rm -f core conftest.err conftest.$ac_objext \
                   5738:     conftest$ac_exeext conftest.$ac_ext
                   5739: LIBS=$ac_check_lib_save_LIBS
                   5740: fi
                   5741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5742: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5743: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5744:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5745: fi
1.14      bertrand 5746: 
1.15      bertrand 5747:     fi
                   5748:   fi
1.1       bertrand 5749: 
1.15      bertrand 5750:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5751:   ac_save_LDFLAGS=$LDFLAGS
                   5752:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5753:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5754:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5755:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5756:   # These have to be linked with before -lX11, unlike the other
                   5757:   # libraries we check for below, so use a different variable.
                   5758:   # John Interrante, Karl Berry
                   5759:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5760: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5761: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5762:   $as_echo_n "(cached) " >&6
1.1       bertrand 5763: else
1.15      bertrand 5764:   ac_check_lib_save_LIBS=$LIBS
                   5765: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5767: /* end confdefs.h.  */
1.15      bertrand 5768: 
                   5769: /* Override any GCC internal prototype to avoid an error.
                   5770:    Use char because int might match the return type of a GCC
                   5771:    builtin and then its argument prototype would still apply.  */
                   5772: #ifdef __cplusplus
                   5773: extern "C"
                   5774: #endif
                   5775: char IceConnectionNumber ();
1.1       bertrand 5776: int
                   5777: main ()
                   5778: {
1.15      bertrand 5779: return IceConnectionNumber ();
1.1       bertrand 5780:   ;
                   5781:   return 0;
                   5782: }
                   5783: _ACEOF
1.15      bertrand 5784: if ac_fn_c_try_link "$LINENO"; then :
                   5785:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5786: else
1.15      bertrand 5787:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5788: fi
                   5789: rm -f core conftest.err conftest.$ac_objext \
                   5790:     conftest$ac_exeext conftest.$ac_ext
                   5791: LIBS=$ac_check_lib_save_LIBS
                   5792: fi
                   5793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5794: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5795: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5796:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5797: fi
                   5798: 
                   5799:   LDFLAGS=$ac_save_LDFLAGS
                   5800: 
                   5801: fi
                   5802: 
1.14      bertrand 5803: 
1.15      bertrand 5804: if test "$ac_x_includes" != "no"; then
                   5805:    if test x"$ac_x_includes" != x; then
                   5806:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5807:        includeX="-I$ac_x_includes"
                   5808:    fi
1.1       bertrand 5809: fi
1.15      bertrand 5810: if test "$ac_x_libraries" != "no"; then
                   5811:    if test x"$ac_x_libraries" != x; then
                   5812:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5813:    fi
1.1       bertrand 5814: fi
1.15      bertrand 5815: 
                   5816: # Check whether --enable-optimization was given.
                   5817: if test "${enable_optimization+set}" = set; then :
                   5818:   enableval=$enable_optimization;
                   5819: if test "$enableval" = "no"; then
                   5820:    CFLAGS=
                   5821:    FFLAGS=
                   5822:    CXXFLAGS=
                   5823:    FCFLAGS=
                   5824: else
                   5825:    CFLAGS="$CFLAGS $enable_optimization"
                   5826:    FFLAGS="$FFLAGS $enable_optimization"
                   5827:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5828: fi
1.15      bertrand 5829: else
1.14      bertrand 5830: 
1.15      bertrand 5831:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5832:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5833:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5834: 
                   5835: 
1.15      bertrand 5836: fi
1.1       bertrand 5837: 
                   5838: 
1.15      bertrand 5839: # Check whether --enable-final-encoding was given.
                   5840: if test "${enable_final_encoding+set}" = set; then :
                   5841:   enableval=$enable_final_encoding;
                   5842: if test "$enableval" = "no"; then
                   5843:    FINAL_ENCODING="\$(shell locale charmap | \
                   5844:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.1       bertrand 5845: else
1.15      bertrand 5846:    FINAL_ENCODING="$enable_final_encoding"
                   5847: fi
1.1       bertrand 5848: else
1.15      bertrand 5849:   FINAL_ENCODING="\$(shell locale charmap | \
                   5850:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5851: fi
                   5852: 
1.14      bertrand 5853: 
1.15      bertrand 5854: # Check whether --enable-tex was given.
                   5855: if test "${enable_tex+set}" = set; then :
                   5856:   enableval=$enable_tex;
                   5857: if test "$enableval" = "no"; then
                   5858:    TEX_SUPPORT=no
                   5859: else
                   5860:    TEX_SUPPORT=yes
1.1       bertrand 5861: fi
1.15      bertrand 5862: else
                   5863:   TEX_SUPPORT=guessed
                   5864: fi
                   5865: 
1.14      bertrand 5866: 
1.15      bertrand 5867: # Check whether --enable-vim was given.
                   5868: if test "${enable_vim+set}" = set; then :
                   5869:   enableval=$enable_vim;
                   5870: if test "$enableval" = "no"; then
                   5871:    VIM_SUPPORT=no
                   5872: else
                   5873:    VIM_SUPPORT=yes
                   5874: fi
                   5875: else
                   5876:   VIM_SUPPORT=guessed
1.1       bertrand 5877: fi
                   5878: 
1.15      bertrand 5879: 
                   5880: # Check whether --enable-embedded-gnuplot was given.
                   5881: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5882:   enableval=$enable_embedded_gnuplot;
                   5883: if test "$enableval" = "no"; then
                   5884:    MYGNUPLOT=no
                   5885: else
                   5886:    MYGNUPLOT=yes
                   5887: fi
1.1       bertrand 5888: else
                   5889: 
1.15      bertrand 5890: MYGNUPLOT=yes
                   5891: fi
                   5892: 
1.14      bertrand 5893: 
1.15      bertrand 5894: # Check whether --enable-gnuplot was given.
                   5895: if test "${enable_gnuplot+set}" = set; then :
                   5896:   enableval=$enable_gnuplot;
                   5897: if test "$enableval" = "no"; then
                   5898:    GNUPLOT_SUPPORT=no
                   5899:    MYGNUPLOT=no
                   5900:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5901: else
                   5902:    GNUPLOT_SUPPORT=yes
                   5903:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5904: fi
1.1       bertrand 5905: else
                   5906: 
1.15      bertrand 5907: if test "$MYGNUPLOT" = "yes"; then
                   5908:    GNUPLOT_SUPPORT=yes
                   5909:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5910: else
                   5911:    GNUPLOT_SUPPORT=guessed
                   5912:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5913: fi
1.1       bertrand 5914: fi
                   5915: 
1.15      bertrand 5916: 
                   5917: # Check whether --enable-motif was given.
                   5918: if test "${enable_motif+set}" = set; then :
                   5919:   enableval=$enable_motif;
                   5920: if test "$enableval" = "no"; then
                   5921:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5922: else
                   5923:    CFLAGS_ORIG=$CFLAGS
                   5924:    LIBS_ORIG=$LIBS
                   5925:    CFLAGS="$CFLAGS $X_CFLAGS"
                   5926:    LIBS="$LIB $X_LIBS"
                   5927:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   5928: $as_echo_n "checking for main in -lXm... " >&6; }
                   5929: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   5930:   $as_echo_n "(cached) " >&6
1.1       bertrand 5931: else
1.15      bertrand 5932:   ac_check_lib_save_LIBS=$LIBS
                   5933: LIBS="-lXm  $LIBS"
                   5934: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5935: /* end confdefs.h.  */
1.14      bertrand 5936: 
                   5937: 
1.1       bertrand 5938: int
                   5939: main ()
                   5940: {
1.15      bertrand 5941: return main ();
1.1       bertrand 5942:   ;
                   5943:   return 0;
                   5944: }
                   5945: _ACEOF
1.15      bertrand 5946: if ac_fn_c_try_link "$LINENO"; then :
                   5947:   ac_cv_lib_Xm_main=yes
                   5948: else
                   5949:   ac_cv_lib_Xm_main=no
                   5950: fi
                   5951: rm -f core conftest.err conftest.$ac_objext \
                   5952:     conftest$ac_exeext conftest.$ac_ext
                   5953: LIBS=$ac_check_lib_save_LIBS
                   5954: fi
                   5955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   5956: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   5957: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   5958:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 5959: else
1.15      bertrand 5960:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5961: fi
1.14      bertrand 5962: 
1.15      bertrand 5963:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   5964:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   5965: Motif flag is disabled.
                   5966: " >&5
                   5967: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   5968: Motif flag is disabled.
                   5969: " >&2;}
                   5970:    fi
                   5971:    LIBS=$LIBS_ORIG
                   5972:    CFLAGS=$CFLAGS_ORIG
                   5973: fi
                   5974: else
                   5975:   MOTIF_SUPPORT=guessed
1.1       bertrand 5976: fi
                   5977: 
1.15      bertrand 5978: 
                   5979: # Check whether --enable-experimental was given.
                   5980: if test "${enable_experimental+set}" = set; then :
                   5981:   enableval=$enable_experimental;
                   5982: if test "$enableval" = "no"; then
                   5983:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   5984: else
                   5985:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   5986: fi
1.14      bertrand 5987: else
1.15      bertrand 5988:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   5989: fi
                   5990: 
1.1       bertrand 5991: 
1.15      bertrand 5992: # Check whether --enable-debug was given.
                   5993: if test "${enable_debug+set}" = set; then :
                   5994:   enableval=$enable_debug;
                   5995: if test "$enableval" = "no"; then
                   5996:    DEBUG=""
                   5997: else
                   5998:    DEBUG="-DDEBUG_MEMOIRE"
                   5999: fi
                   6000: else
                   6001:   DEBUG=""
1.14      bertrand 6002: fi
1.1       bertrand 6003: 
1.15      bertrand 6004: 
                   6005: # Check whether --enable-profile was given.
                   6006: if test "${enable_profile+set}" = set; then :
                   6007:   enableval=$enable_profile;
                   6008: if test "$enableval" = "no"; then
                   6009:    PROFILAGE=""
                   6010: else
                   6011:    PROFILAGE="-pg"
                   6012: fi
                   6013: else
                   6014:   PROFILAGE=""
1.1       bertrand 6015: fi
                   6016: 
1.14      bertrand 6017: 
                   6018: 
1.15      bertrand 6019: 
                   6020: if test ! -d tools; then
                   6021:    mkdir tools
                   6022: fi
                   6023: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6024:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6025:            (cd "$srcdir/tools" && tar -xf -)
                   6026: fi
                   6027: if test ! -d "$srcdir"/tools/$READLINE; then
                   6028:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6029:            (cd "$srcdir/tools" && tar -xf -)
                   6030: fi
                   6031: if test ! -d "$srcdir"/tools/$UNITS; then
                   6032:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6033:            (cd "$srcdir/tools" && tar -xf -)
                   6034: fi
                   6035: if test ! -d "$srcdir"/tools/$GSL; then
                   6036:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6037:            (cd "$srcdir/tools" && tar -xf -)
                   6038: fi
                   6039: if test ! -d "$srcdir"/tools/$GPP; then
                   6040:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6041:            (cd "$srcdir/tools" && tar -xf -)
                   6042: fi
                   6043: if test ! -d "$srcdir"/tools/$FILE; then
                   6044:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6045:            (cd "$srcdir/tools" && tar -xf - )
                   6046:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6047: fi
                   6048: if test ! -d "$srcdir"/tools/$ICONV; then
                   6049:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6050:            (cd "$srcdir/tools" && tar -xf -)
                   6051: fi
                   6052: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6053:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6054:            (cd "$srcdir/tools" && tar -xf -)
                   6055: fi
                   6056: if test ! -d tools/$OPENSSL; then
                   6057:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6058:            (cd tools && tar -xf -)
1.1       bertrand 6059: fi
                   6060: 
                   6061: 
                   6062: 
1.15      bertrand 6063: # Check whether --enable-final-run-path was given.
                   6064: if test "${enable_final_run_path+set}" = set; then :
                   6065:   enableval=$enable_final_run_path;
                   6066:    if test "x$enable_final_run_path" = "x"; then
                   6067:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6068: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
                   6069:        as_fn_error "\"You should specify final path !\"" "$LINENO" 5
                   6070:    else
                   6071:        RUNPATH="$enable_final_run_path"
                   6072:    fi
1.1       bertrand 6073: 
                   6074: else
1.15      bertrand 6075:   RUNPATH="\${prefix}"
1.1       bertrand 6076: 
                   6077: fi
                   6078: 
1.15      bertrand 6079: 
                   6080: 
                   6081: 
                   6082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6083: $as_echo_n "checking whether ln -s works... " >&6; }
                   6084: LN_S=$as_ln_s
                   6085: if test "$LN_S" = "ln -s"; then
                   6086:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6087: $as_echo "yes" >&6; }
                   6088: else
                   6089:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6090: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6091: fi
                   6092: 
1.15      bertrand 6093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6094: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6095: set x ${MAKE-make}
                   6096: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   6097: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   6098:   $as_echo_n "(cached) " >&6
1.1       bertrand 6099: else
1.15      bertrand 6100:   cat >conftest.make <<\_ACEOF
                   6101: SHELL = /bin/sh
                   6102: all:
                   6103:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6104: _ACEOF
1.15      bertrand 6105: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   6106: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6107:   *@@@%%%=?*=@@@%%%*)
                   6108:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6109:   *)
                   6110:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6111: esac
1.15      bertrand 6112: rm -f conftest.make
                   6113: fi
                   6114: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6115:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6116: $as_echo "yes" >&6; }
                   6117:   SET_MAKE=
                   6118: else
                   6119:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6120: $as_echo "no" >&6; }
                   6121:   SET_MAKE="MAKE=${MAKE-make}"
                   6122: fi
1.1       bertrand 6123: 
1.15      bertrand 6124: if test -n "$ac_tool_prefix"; then
                   6125:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6126: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6128: $as_echo_n "checking for $ac_word... " >&6; }
                   6129: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6130:   $as_echo_n "(cached) " >&6
                   6131: else
                   6132:   if test -n "$RANLIB"; then
                   6133:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6134: else
1.15      bertrand 6135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6136: for as_dir in $PATH
                   6137: do
                   6138:   IFS=$as_save_IFS
                   6139:   test -z "$as_dir" && as_dir=.
                   6140:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6141:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6142:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6143:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6144:     break 2
                   6145:   fi
                   6146: done
                   6147:   done
                   6148: IFS=$as_save_IFS
1.1       bertrand 6149: 
                   6150: fi
1.15      bertrand 6151: fi
                   6152: RANLIB=$ac_cv_prog_RANLIB
                   6153: if test -n "$RANLIB"; then
                   6154:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6155: $as_echo "$RANLIB" >&6; }
                   6156: else
                   6157:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6158: $as_echo "no" >&6; }
                   6159: fi
                   6160: 
1.1       bertrand 6161: 
1.15      bertrand 6162: fi
                   6163: if test -z "$ac_cv_prog_RANLIB"; then
                   6164:   ac_ct_RANLIB=$RANLIB
                   6165:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6166: set dummy ranlib; ac_word=$2
                   6167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6168: $as_echo_n "checking for $ac_word... " >&6; }
                   6169: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6170:   $as_echo_n "(cached) " >&6
                   6171: else
                   6172:   if test -n "$ac_ct_RANLIB"; then
                   6173:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6174: else
                   6175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6176: for as_dir in $PATH
                   6177: do
                   6178:   IFS=$as_save_IFS
                   6179:   test -z "$as_dir" && as_dir=.
                   6180:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6181:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6182:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6183:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6184:     break 2
                   6185:   fi
                   6186: done
1.14      bertrand 6187:   done
1.15      bertrand 6188: IFS=$as_save_IFS
                   6189: 
                   6190: fi
                   6191: fi
                   6192: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6193: if test -n "$ac_ct_RANLIB"; then
                   6194:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6195: $as_echo "$ac_ct_RANLIB" >&6; }
                   6196: else
                   6197:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6198: $as_echo "no" >&6; }
                   6199: fi
                   6200: 
                   6201:   if test "x$ac_ct_RANLIB" = x; then
                   6202:     RANLIB=":"
                   6203:   else
                   6204:     case $cross_compiling:$ac_tool_warned in
                   6205: yes:)
                   6206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6207: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6208: ac_tool_warned=yes ;;
                   6209: esac
                   6210:     RANLIB=$ac_ct_RANLIB
                   6211:   fi
1.14      bertrand 6212: else
1.15      bertrand 6213:   RANLIB="$ac_cv_prog_RANLIB"
                   6214: fi
1.1       bertrand 6215: 
                   6216: 
1.15      bertrand 6217: # Extract the first word of "nawk", so it can be a program name with args.
                   6218: set dummy nawk; ac_word=$2
                   6219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6220: $as_echo_n "checking for $ac_word... " >&6; }
                   6221: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6222:   $as_echo_n "(cached) " >&6
                   6223: else
                   6224:   if test -n "$AWK"; then
                   6225:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6226: else
                   6227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6228: for as_dir in $PATH
                   6229: do
                   6230:   IFS=$as_save_IFS
                   6231:   test -z "$as_dir" && as_dir=.
                   6232:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6233:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6234:     ac_cv_prog_AWK="yes"
                   6235:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6236:     break 2
                   6237:   fi
                   6238: done
                   6239:   done
                   6240: IFS=$as_save_IFS
1.1       bertrand 6241: 
1.15      bertrand 6242:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6243: fi
                   6244: fi
                   6245: AWK=$ac_cv_prog_AWK
                   6246: if test -n "$AWK"; then
                   6247:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6248: $as_echo "$AWK" >&6; }
1.1       bertrand 6249: else
1.15      bertrand 6250:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6251: $as_echo "no" >&6; }
                   6252: fi
                   6253: 
1.1       bertrand 6254: 
1.15      bertrand 6255: if test "$AWK" = no; then
                   6256:    as_fn_error "Can not find nawk !" "$LINENO" 5
1.1       bertrand 6257: fi
                   6258: 
1.15      bertrand 6259: # Extract the first word of "sed", so it can be a program name with args.
                   6260: set dummy sed; ac_word=$2
                   6261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6262: $as_echo_n "checking for $ac_word... " >&6; }
                   6263: if test "${ac_cv_prog_SED+set}" = set; then :
                   6264:   $as_echo_n "(cached) " >&6
                   6265: else
                   6266:   if test -n "$SED"; then
                   6267:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6268: else
                   6269: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6270: for as_dir in $PATH
                   6271: do
                   6272:   IFS=$as_save_IFS
                   6273:   test -z "$as_dir" && as_dir=.
                   6274:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6275:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6276:     ac_cv_prog_SED="yes"
                   6277:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6278:     break 2
                   6279:   fi
                   6280: done
1.14      bertrand 6281:   done
1.15      bertrand 6282: IFS=$as_save_IFS
1.1       bertrand 6283: 
1.15      bertrand 6284:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6285: fi
1.15      bertrand 6286: fi
                   6287: SED=$ac_cv_prog_SED
                   6288: if test -n "$SED"; then
                   6289:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6290: $as_echo "$SED" >&6; }
                   6291: else
                   6292:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6293: $as_echo "no" >&6; }
1.14      bertrand 6294: fi
1.1       bertrand 6295: 
                   6296: 
1.15      bertrand 6297: if test "$SED" = no; then
                   6298:    as_fn_error "Can not find sed !" "$LINENO" 5
                   6299: fi
1.14      bertrand 6300: 
1.15      bertrand 6301: if test "$TEX_SUPPORT" = guessed; then
                   6302:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6303: 
1.15      bertrand 6304:    # Extract the first word of "tex", so it can be a program name with args.
                   6305: set dummy tex; ac_word=$2
                   6306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6307: $as_echo_n "checking for $ac_word... " >&6; }
                   6308: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6309:   $as_echo_n "(cached) " >&6
1.1       bertrand 6310: else
1.15      bertrand 6311:   if test -n "$TEX"; then
                   6312:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6313: else
1.15      bertrand 6314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6315: for as_dir in $PATH
                   6316: do
                   6317:   IFS=$as_save_IFS
                   6318:   test -z "$as_dir" && as_dir=.
                   6319:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6320:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6321:     ac_cv_prog_TEX="yes"
                   6322:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6323:     break 2
                   6324:   fi
                   6325: done
                   6326:   done
                   6327: IFS=$as_save_IFS
1.1       bertrand 6328: 
1.15      bertrand 6329:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6330: fi
                   6331: fi
1.15      bertrand 6332: TEX=$ac_cv_prog_TEX
                   6333: if test -n "$TEX"; then
                   6334:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6335: $as_echo "$TEX" >&6; }
                   6336: else
                   6337:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6338: $as_echo "no" >&6; }
1.1       bertrand 6339: fi
1.14      bertrand 6340: 
                   6341: 
1.15      bertrand 6342:    if test "$TEX" = no; then
                   6343:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6344: Download at http://tex.loria.fr/
                   6345: " >&5
                   6346: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6347: Download at http://tex.loria.fr/
                   6348: " >&2;}
                   6349:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6350:    fi
1.14      bertrand 6351: 
1.15      bertrand 6352:    # Extract the first word of "latex", so it can be a program name with args.
                   6353: set dummy latex; ac_word=$2
                   6354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6355: $as_echo_n "checking for $ac_word... " >&6; }
                   6356: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6357:   $as_echo_n "(cached) " >&6
1.1       bertrand 6358: else
1.15      bertrand 6359:   if test -n "$LATEX"; then
                   6360:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6361: else
1.15      bertrand 6362: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6363: for as_dir in $PATH
                   6364: do
                   6365:   IFS=$as_save_IFS
                   6366:   test -z "$as_dir" && as_dir=.
                   6367:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6368:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6369:     ac_cv_prog_LATEX="yes"
                   6370:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6371:     break 2
                   6372:   fi
                   6373: done
                   6374:   done
                   6375: IFS=$as_save_IFS
1.1       bertrand 6376: 
1.15      bertrand 6377:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6378: fi
                   6379: fi
1.15      bertrand 6380: LATEX=$ac_cv_prog_LATEX
                   6381: if test -n "$LATEX"; then
                   6382:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6383: $as_echo "$LATEX" >&6; }
                   6384: else
                   6385:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6386: $as_echo "no" >&6; }
                   6387: fi
1.14      bertrand 6388: 
1.1       bertrand 6389: 
1.15      bertrand 6390:    if test "$LATEX" = no; then
                   6391:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6392: Download at http://tex.loria.fr/
                   6393: " >&5
                   6394: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6395: Download at http://tex.loria.fr/
                   6396: " >&2;}
                   6397:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6398:    fi
1.1       bertrand 6399: 
1.15      bertrand 6400:    # Extract the first word of "dvips", so it can be a program name with args.
                   6401: set dummy dvips; ac_word=$2
                   6402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6403: $as_echo_n "checking for $ac_word... " >&6; }
                   6404: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6405:   $as_echo_n "(cached) " >&6
                   6406: else
                   6407:   if test -n "$DVIPS"; then
                   6408:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6409: else
                   6410: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6411: for as_dir in $PATH
                   6412: do
                   6413:   IFS=$as_save_IFS
                   6414:   test -z "$as_dir" && as_dir=.
                   6415:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6416:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6417:     ac_cv_prog_DVIPS="yes"
                   6418:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6419:     break 2
                   6420:   fi
                   6421: done
                   6422:   done
                   6423: IFS=$as_save_IFS
1.1       bertrand 6424: 
1.15      bertrand 6425:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6426: fi
1.1       bertrand 6427: fi
1.15      bertrand 6428: DVIPS=$ac_cv_prog_DVIPS
                   6429: if test -n "$DVIPS"; then
                   6430:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6431: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6432: else
1.15      bertrand 6433:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6434: $as_echo "no" >&6; }
                   6435: fi
1.1       bertrand 6436: 
                   6437: 
1.15      bertrand 6438:    if test "$DVIPS" = no; then
                   6439:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6440: Download at http://tex.loria.fr/
                   6441: " >&5
                   6442: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6443: Download at http://tex.loria.fr/
                   6444: " >&2;}
                   6445:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6446:    fi
1.1       bertrand 6447: 
1.15      bertrand 6448:    # Extract the first word of "gs", so it can be a program name with args.
                   6449: set dummy gs; ac_word=$2
                   6450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6451: $as_echo_n "checking for $ac_word... " >&6; }
                   6452: if test "${ac_cv_prog_GS+set}" = set; then :
                   6453:   $as_echo_n "(cached) " >&6
                   6454: else
                   6455:   if test -n "$GS"; then
                   6456:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6457: else
1.15      bertrand 6458: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6459: for as_dir in $PATH
                   6460: do
                   6461:   IFS=$as_save_IFS
                   6462:   test -z "$as_dir" && as_dir=.
                   6463:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6464:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6465:     ac_cv_prog_GS="yes"
                   6466:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6467:     break 2
                   6468:   fi
                   6469: done
                   6470:   done
                   6471: IFS=$as_save_IFS
1.1       bertrand 6472: 
1.15      bertrand 6473:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6474: fi
                   6475: fi
                   6476: GS=$ac_cv_prog_GS
                   6477: if test -n "$GS"; then
                   6478:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6479: $as_echo "$GS" >&6; }
                   6480: else
                   6481:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6482: $as_echo "no" >&6; }
1.1       bertrand 6483: fi
                   6484: 
1.15      bertrand 6485: 
                   6486:    if test "$GS" = no; then
                   6487:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6488: Download at http://ftp.lip6.fr/
                   6489: " >&5
                   6490: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6491: Download at http://ftp.lip6.fr/
                   6492: " >&2;}
                   6493:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6494:    fi
                   6495: 
                   6496:    # Extract the first word of "gv", so it can be a program name with args.
                   6497: set dummy gv; ac_word=$2
                   6498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6499: $as_echo_n "checking for $ac_word... " >&6; }
                   6500: if test "${ac_cv_prog_GV+set}" = set; then :
                   6501:   $as_echo_n "(cached) " >&6
                   6502: else
                   6503:   if test -n "$GV"; then
                   6504:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6505: else
                   6506: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6507: for as_dir in $PATH
                   6508: do
                   6509:   IFS=$as_save_IFS
                   6510:   test -z "$as_dir" && as_dir=.
                   6511:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6512:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6513:     ac_cv_prog_GV="yes"
                   6514:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6515:     break 2
                   6516:   fi
                   6517: done
1.14      bertrand 6518:   done
1.15      bertrand 6519: IFS=$as_save_IFS
1.1       bertrand 6520: 
1.15      bertrand 6521:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6522: fi
1.1       bertrand 6523: fi
1.15      bertrand 6524: GV=$ac_cv_prog_GV
                   6525: if test -n "$GV"; then
                   6526:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6527: $as_echo "$GV" >&6; }
                   6528: else
                   6529:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6530: $as_echo "no" >&6; }
1.1       bertrand 6531: fi
1.14      bertrand 6532: 
                   6533: 
1.15      bertrand 6534:    if test "$GV" = no; then
                   6535:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6536: Download at http://ftp.lip6.fr/
                   6537: " >&5
                   6538: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6539: Download at http://ftp.lip6.fr/
                   6540: " >&2;}
                   6541:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6542:    fi
1.1       bertrand 6543: else
1.15      bertrand 6544:    if test "$TEX_SUPPORT" = no; then
                   6545:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6546:    else
                   6547:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6548:    fi
1.1       bertrand 6549: fi
                   6550: 
1.15      bertrand 6551: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6552:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6553: set dummy gnuplot; ac_word=$2
                   6554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6555: $as_echo_n "checking for $ac_word... " >&6; }
                   6556: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6557:   $as_echo_n "(cached) " >&6
1.14      bertrand 6558: else
1.15      bertrand 6559:   if test -n "$GNUPLOT_P"; then
                   6560:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6561: else
1.15      bertrand 6562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6563: for as_dir in $PATH
                   6564: do
                   6565:   IFS=$as_save_IFS
                   6566:   test -z "$as_dir" && as_dir=.
                   6567:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6568:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6569:     ac_cv_prog_GNUPLOT_P="yes"
                   6570:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6571:     break 2
                   6572:   fi
                   6573: done
                   6574:   done
                   6575: IFS=$as_save_IFS
1.1       bertrand 6576: 
1.15      bertrand 6577:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6578: fi
                   6579: fi
1.15      bertrand 6580: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6581: if test -n "$GNUPLOT_P"; then
                   6582:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6583: $as_echo "$GNUPLOT_P" >&6; }
                   6584: else
                   6585:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6586: $as_echo "no" >&6; }
1.1       bertrand 6587: fi
                   6588: 
                   6589: 
1.15      bertrand 6590:    if test "$GNUPLOT_P" = no; then
                   6591:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6592: Download at http://www.gnuplot.vt.edu/
                   6593: " >&5
                   6594: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6595: Download at http://www.gnuplot.vt.edu/
                   6596: " >&2;}
                   6597:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6598:    else
                   6599:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6600:    fi
                   6601: else
                   6602:    if test "$GNUPLOT_SUPPORT" = no; then
                   6603:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6604:    else
                   6605:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6606:    fi
                   6607: fi
1.1       bertrand 6608: 
1.15      bertrand 6609: if test "$VIM_SUPPORT" = guessed; then
                   6610:    # Extract the first word of "vim", so it can be a program name with args.
                   6611: set dummy vim; ac_word=$2
                   6612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6613: $as_echo_n "checking for $ac_word... " >&6; }
                   6614: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6615:   $as_echo_n "(cached) " >&6
1.1       bertrand 6616: else
1.15      bertrand 6617:   if test -n "$VIM"; then
                   6618:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6619: else
1.15      bertrand 6620: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6621: for as_dir in $PATH
                   6622: do
                   6623:   IFS=$as_save_IFS
                   6624:   test -z "$as_dir" && as_dir=.
                   6625:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6626:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6627:     ac_cv_prog_VIM="yes"
                   6628:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6629:     break 2
                   6630:   fi
                   6631: done
                   6632:   done
                   6633: IFS=$as_save_IFS
1.1       bertrand 6634: 
1.15      bertrand 6635:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6636: fi
                   6637: fi
1.15      bertrand 6638: VIM=$ac_cv_prog_VIM
                   6639: if test -n "$VIM"; then
                   6640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6641: $as_echo "$VIM" >&6; }
1.1       bertrand 6642: else
1.15      bertrand 6643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6644: $as_echo "no" >&6; }
                   6645: fi
1.1       bertrand 6646: 
                   6647: 
1.15      bertrand 6648:    if test "$VIM" = no; then
                   6649:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6650: Download at http://www.vim.org/
                   6651: " >&5
                   6652: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6653: Download at http://www.vim.org/
                   6654: " >&2;}
                   6655:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6656:    else
                   6657:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6658:    fi
1.1       bertrand 6659: else
1.15      bertrand 6660:    if test "$VIM_SUPPORT" = no; then
                   6661:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6662:    else
                   6663:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6664:    fi
1.1       bertrand 6665: fi
                   6666: 
1.15      bertrand 6667: if test "$MOTIF_SUPPORT" = guessed; then
                   6668:    CFLAGS_ORIG=$CFLAGS
                   6669:    LIBS_ORIG=$LIBS
                   6670:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6671:    LIBS="$LIB $X_LIBS"
                   6672:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6673: $as_echo_n "checking for main in -lXm... " >&6; }
                   6674: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6675:   $as_echo_n "(cached) " >&6
1.1       bertrand 6676: else
1.15      bertrand 6677:   ac_check_lib_save_LIBS=$LIBS
                   6678: LIBS="-lXm  $LIBS"
                   6679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6680: /* end confdefs.h.  */
1.1       bertrand 6681: 
                   6682: 
1.14      bertrand 6683: int
                   6684: main ()
                   6685: {
1.15      bertrand 6686: return main ();
1.14      bertrand 6687:   ;
                   6688:   return 0;
                   6689: }
                   6690: _ACEOF
1.15      bertrand 6691: if ac_fn_c_try_link "$LINENO"; then :
                   6692:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6693: else
1.15      bertrand 6694:   ac_cv_lib_Xm_main=no
                   6695: fi
                   6696: rm -f core conftest.err conftest.$ac_objext \
                   6697:     conftest$ac_exeext conftest.$ac_ext
                   6698: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6699: fi
1.15      bertrand 6700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6701: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6702: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6703:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6704: else
1.15      bertrand 6705:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6706: fi
1.14      bertrand 6707: 
1.15      bertrand 6708:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6709:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6710: Motif flag is disabled.
                   6711: " >&5
                   6712: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6713: Motif flag is disabled.
                   6714: " >&2;}
                   6715:    fi
                   6716:    LIBS=$LIBS_ORIG
                   6717:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6718: fi
                   6719: 
1.15      bertrand 6720: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6721:    CFLAGS_ORIG=$CFLAGS
                   6722:    LIBS_ORIG=$LIBS
                   6723:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6724:    LIBS="$LIB $X_LIBS"
                   6725:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6726: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6727: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6728:   $as_echo_n "(cached) " >&6
                   6729: else
                   6730:   ac_check_lib_save_LIBS=$LIBS
                   6731: LIBS="-lXpm  $LIBS"
                   6732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6733: /* end confdefs.h.  */
                   6734: 
1.1       bertrand 6735: 
                   6736: int
                   6737: main ()
                   6738: {
1.15      bertrand 6739: return main ();
1.1       bertrand 6740:   ;
                   6741:   return 0;
                   6742: }
                   6743: _ACEOF
1.15      bertrand 6744: if ac_fn_c_try_link "$LINENO"; then :
                   6745:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6746: else
1.15      bertrand 6747:   ac_cv_lib_Xpm_main=no
                   6748: fi
                   6749: rm -f core conftest.err conftest.$ac_objext \
                   6750:     conftest$ac_exeext conftest.$ac_ext
                   6751: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6752: fi
1.15      bertrand 6753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6754: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6755: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6756:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6757: else
                   6758:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6759: fi
1.15      bertrand 6760: 
                   6761:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6762:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6763:    else
                   6764:        libX=""
                   6765:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6766: Motif flag is disabled.
                   6767: " >&5
                   6768: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6769: Motif flag is disabled.
                   6770: " >&2;}
                   6771:    fi
                   6772:    LIBS=$LIBS_ORIG
                   6773:    CFLAGS=$CFLAGS_ORIG
                   6774: else
                   6775:    libX=""
1.1       bertrand 6776: fi
1.14      bertrand 6777: 
                   6778: 
                   6779: 
1.1       bertrand 6780: 
                   6781: 
1.15      bertrand 6782: 
                   6783: 
                   6784: 
                   6785: 
                   6786: 
                   6787: 
                   6788: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6789: 
                   6790: 
                   6791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6792: $as_echo_n "checking for main in -lm... " >&6; }
                   6793: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6794:   $as_echo_n "(cached) " >&6
1.1       bertrand 6795: else
1.15      bertrand 6796:   ac_check_lib_save_LIBS=$LIBS
                   6797: LIBS="-lm  $LIBS"
                   6798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6799: /* end confdefs.h.  */
1.15      bertrand 6800: 
                   6801: 
1.1       bertrand 6802: int
                   6803: main ()
                   6804: {
1.15      bertrand 6805: return main ();
1.1       bertrand 6806:   ;
                   6807:   return 0;
                   6808: }
                   6809: _ACEOF
1.15      bertrand 6810: if ac_fn_c_try_link "$LINENO"; then :
                   6811:   ac_cv_lib_m_main=yes
1.1       bertrand 6812: else
1.15      bertrand 6813:   ac_cv_lib_m_main=no
                   6814: fi
                   6815: rm -f core conftest.err conftest.$ac_objext \
                   6816:     conftest$ac_exeext conftest.$ac_ext
                   6817: LIBS=$ac_check_lib_save_LIBS
                   6818: fi
                   6819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6820: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6821: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6822:   cat >>confdefs.h <<_ACEOF
                   6823: #define HAVE_LIBM 1
                   6824: _ACEOF
1.14      bertrand 6825: 
1.15      bertrand 6826:   LIBS="-lm $LIBS"
1.1       bertrand 6827: 
1.15      bertrand 6828: else
                   6829:   as_fn_error "Can not find libm !" "$LINENO" 5
1.1       bertrand 6830: fi
                   6831: 
1.15      bertrand 6832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6833: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6834: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6835:   $as_echo_n "(cached) " >&6
1.1       bertrand 6836: else
1.15      bertrand 6837:   ac_check_lib_save_LIBS=$LIBS
                   6838: LIBS="-lpthread  $LIBS"
                   6839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6840: /* end confdefs.h.  */
1.15      bertrand 6841: 
                   6842: 
1.14      bertrand 6843: int
                   6844: main ()
                   6845: {
1.15      bertrand 6846: return main ();
1.14      bertrand 6847:   ;
                   6848:   return 0;
                   6849: }
                   6850: _ACEOF
1.15      bertrand 6851: if ac_fn_c_try_link "$LINENO"; then :
                   6852:   ac_cv_lib_pthread_main=yes
                   6853: else
                   6854:   ac_cv_lib_pthread_main=no
                   6855: fi
                   6856: rm -f core conftest.err conftest.$ac_objext \
                   6857:     conftest$ac_exeext conftest.$ac_ext
                   6858: LIBS=$ac_check_lib_save_LIBS
                   6859: fi
                   6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   6861: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   6862: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   6863:   cat >>confdefs.h <<_ACEOF
                   6864: #define HAVE_LIBPTHREAD 1
1.14      bertrand 6865: _ACEOF
                   6866: 
1.15      bertrand 6867:   LIBS="-lpthread $LIBS"
                   6868: 
1.1       bertrand 6869: else
1.15      bertrand 6870:   as_fn_error "Can not find libpthread !" "$LINENO" 5
                   6871: fi
1.14      bertrand 6872: 
1.1       bertrand 6873: 
1.15      bertrand 6874: if test "$CYGWIN" != yes; then
                   6875:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   6876: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   6877: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   6878:   $as_echo_n "(cached) " >&6
1.1       bertrand 6879: else
1.15      bertrand 6880:   ac_check_lib_save_LIBS=$LIBS
                   6881: LIBS="-ldl  $LIBS"
                   6882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6883: /* end confdefs.h.  */
                   6884: 
1.15      bertrand 6885: /* Override any GCC internal prototype to avoid an error.
                   6886:    Use char because int might match the return type of a GCC
                   6887:    builtin and then its argument prototype would still apply.  */
                   6888: #ifdef __cplusplus
                   6889: extern "C"
                   6890: #endif
                   6891: char dlopen ();
1.1       bertrand 6892: int
                   6893: main ()
                   6894: {
1.15      bertrand 6895: return dlopen ();
1.1       bertrand 6896:   ;
                   6897:   return 0;
                   6898: }
                   6899: _ACEOF
1.15      bertrand 6900: if ac_fn_c_try_link "$LINENO"; then :
                   6901:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 6902: else
1.15      bertrand 6903:   ac_cv_lib_dl_dlopen=no
                   6904: fi
                   6905: rm -f core conftest.err conftest.$ac_objext \
                   6906:     conftest$ac_exeext conftest.$ac_ext
                   6907: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6908: fi
1.15      bertrand 6909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   6910: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   6911: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   6912:   LIBS="$LIBS -ldl"
1.14      bertrand 6913: else
1.15      bertrand 6914:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   6915: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 6916: fi
                   6917: 
1.14      bertrand 6918: fi
1.1       bertrand 6919: 
1.15      bertrand 6920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   6921: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   6922: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   6923:   $as_echo_n "(cached) " >&6
                   6924: else
                   6925:   ac_check_lib_save_LIBS=$LIBS
                   6926: LIBS="-lrt  $LIBS"
                   6927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6928: /* end confdefs.h.  */
1.15      bertrand 6929: 
                   6930: /* Override any GCC internal prototype to avoid an error.
                   6931:    Use char because int might match the return type of a GCC
                   6932:    builtin and then its argument prototype would still apply.  */
                   6933: #ifdef __cplusplus
                   6934: extern "C"
                   6935: #endif
                   6936: char nanosleep ();
1.1       bertrand 6937: int
                   6938: main ()
                   6939: {
1.15      bertrand 6940: return nanosleep ();
1.1       bertrand 6941:   ;
                   6942:   return 0;
                   6943: }
                   6944: _ACEOF
1.15      bertrand 6945: if ac_fn_c_try_link "$LINENO"; then :
                   6946:   ac_cv_lib_rt_nanosleep=yes
                   6947: else
                   6948:   ac_cv_lib_rt_nanosleep=no
                   6949: fi
                   6950: rm -f core conftest.err conftest.$ac_objext \
                   6951:     conftest$ac_exeext conftest.$ac_ext
                   6952: LIBS=$ac_check_lib_save_LIBS
                   6953: fi
                   6954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   6955: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   6956: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   6957:   LIBS="$LIBS -lrt"
1.1       bertrand 6958: else
1.15      bertrand 6959:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   6960: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   6961: fi
1.1       bertrand 6962: 
                   6963: 
1.15      bertrand 6964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   6965: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   6966: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   6967:   $as_echo_n "(cached) " >&6
1.1       bertrand 6968: else
1.15      bertrand 6969:   ac_check_lib_save_LIBS=$LIBS
                   6970: LIBS="-lsocket  $LIBS"
                   6971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6972: /* end confdefs.h.  */
1.15      bertrand 6973: 
                   6974: /* Override any GCC internal prototype to avoid an error.
                   6975:    Use char because int might match the return type of a GCC
                   6976:    builtin and then its argument prototype would still apply.  */
                   6977: #ifdef __cplusplus
                   6978: extern "C"
                   6979: #endif
                   6980: char bind ();
1.1       bertrand 6981: int
                   6982: main ()
                   6983: {
1.15      bertrand 6984: return bind ();
1.1       bertrand 6985:   ;
                   6986:   return 0;
                   6987: }
                   6988: _ACEOF
1.15      bertrand 6989: if ac_fn_c_try_link "$LINENO"; then :
                   6990:   ac_cv_lib_socket_bind=yes
1.1       bertrand 6991: else
1.15      bertrand 6992:   ac_cv_lib_socket_bind=no
1.1       bertrand 6993: fi
1.15      bertrand 6994: rm -f core conftest.err conftest.$ac_objext \
                   6995:     conftest$ac_exeext conftest.$ac_ext
                   6996: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6997: fi
1.15      bertrand 6998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   6999: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7000: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7001:   LIBS="$LIBS -lsocket"
                   7002: else
                   7003:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7004: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7005: fi
                   7006: 
                   7007: 
1.15      bertrand 7008: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7009: 
                   7010: # Check whether --with-mysql was given.
                   7011: if test "${with_mysql+set}" = set; then :
                   7012:   withval=$with_mysql;
                   7013: else
                   7014:   with_mysql=check
                   7015: fi
1.14      bertrand 7016: 
                   7017: 
1.15      bertrand 7018: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7019:    libMySQLinc="-I/usr/include"
                   7020:    libMySQLlib="-L/usr/lib"
1.14      bertrand 7021: 
1.15      bertrand 7022:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7023: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7024:    saved_CFLAGS="$CFLAGS"
                   7025:    CFLAGS="$CFLAGS $libMySQLinc"
                   7026:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7027: /* end confdefs.h.  */
1.15      bertrand 7028: #include "mysql.h"
1.1       bertrand 7029: int
                   7030: main ()
                   7031: {
1.15      bertrand 7032: 
1.1       bertrand 7033:   ;
                   7034:   return 0;
                   7035: }
                   7036: _ACEOF
1.15      bertrand 7037: if ac_fn_c_try_compile "$LINENO"; then :
                   7038:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7039: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7040:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7041: else
1.15      bertrand 7042:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7043: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7044: fi
1.14      bertrand 7045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7046:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7047: 
1.15      bertrand 7048:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7049:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7050: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7051:        saved_CFLAGS="$CFLAGS"
                   7052:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7053:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7054: /* end confdefs.h.  */
1.15      bertrand 7055: #include "mysql.h"
1.1       bertrand 7056: int
                   7057: main ()
                   7058: {
                   7059: 
                   7060:   ;
                   7061:   return 0;
                   7062: }
                   7063: _ACEOF
1.15      bertrand 7064: if ac_fn_c_try_compile "$LINENO"; then :
                   7065:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7066: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7067:                        libMySQLinc=$libMySQLinc
                   7068: else
                   7069:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7070: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7071: fi
                   7072: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7073:        CFLAGS=$saved_CFLAGS
                   7074:        libMySQLinc=$libMySQLinc/mysql
                   7075:    fi
                   7076: 
                   7077:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7078:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7079: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7080:        saved_CFLAGS="$CFLAGS"
                   7081:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7082:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7083: /* end confdefs.h.  */
1.15      bertrand 7084: #include "mysql.h"
1.1       bertrand 7085: int
                   7086: main ()
                   7087: {
                   7088: 
                   7089:   ;
                   7090:   return 0;
                   7091: }
                   7092: _ACEOF
1.15      bertrand 7093: if ac_fn_c_try_compile "$LINENO"; then :
                   7094:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7095: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7096:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7097: else
1.15      bertrand 7098:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7099: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7100: fi
                   7101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7102:        CFLAGS=$saved_CFLAGS
                   7103:        libMySQLinc=$libMySQLinc/../local/include
                   7104:        libMySQLlib=$libMySQLlib/../local/lib
                   7105:    fi
1.1       bertrand 7106: 
1.15      bertrand 7107:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7108:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7109: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7110:        saved_CFLAGS="$CFLAGS"
                   7111:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7112:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7113: /* end confdefs.h.  */
1.15      bertrand 7114: #include "mysql.h"
1.1       bertrand 7115: int
                   7116: main ()
                   7117: {
                   7118: 
                   7119:   ;
                   7120:   return 0;
                   7121: }
                   7122: _ACEOF
1.15      bertrand 7123: if ac_fn_c_try_compile "$LINENO"; then :
                   7124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7125: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7126:                        libMySQLinc=$libMySQLinc/mysql
                   7127: else
                   7128:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7129: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7130: fi
                   7131: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7132:        CFLAGS=$saved_CFLAGS
                   7133:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7134:        libMySQLlib=$libMySQLlib/../local/lib
                   7135:    fi
                   7136: else
                   7137:    if test "x$with_mysql" != xno; then
                   7138:        libMySQLinc="-I$with_mysql/include"
                   7139:        libMySQLlib="-L$with_mysql/lib"
                   7140: 
                   7141:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7142: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7143:        saved_CFLAGS="$CFLAGS"
                   7144:        CFLAGS="$CFLAGS $libMySQLinc"
                   7145:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7146: /* end confdefs.h.  */
1.15      bertrand 7147: #include "mysql.h"
1.1       bertrand 7148: int
                   7149: main ()
                   7150: {
                   7151: 
                   7152:   ;
                   7153:   return 0;
                   7154: }
                   7155: _ACEOF
1.15      bertrand 7156: if ac_fn_c_try_compile "$LINENO"; then :
                   7157:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7158: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7159:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7160: else
1.15      bertrand 7161:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7162: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7163: fi
                   7164: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7165:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7166: 
1.15      bertrand 7167:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7168:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7169: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7170:            saved_CFLAGS="$CFLAGS"
                   7171:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7172:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7173: /* end confdefs.h.  */
1.15      bertrand 7174: #include "mysql.h"
1.1       bertrand 7175: int
                   7176: main ()
                   7177: {
                   7178: 
                   7179:   ;
                   7180:   return 0;
                   7181: }
                   7182: _ACEOF
1.15      bertrand 7183: if ac_fn_c_try_compile "$LINENO"; then :
                   7184:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7185: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7186:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7187: else
1.15      bertrand 7188:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7189: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7190: fi
                   7191: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7192:            CFLAGS=$saved_CFLAGS
                   7193:            libMySQLinc=$libMySQLinc/mysql
                   7194:        fi
                   7195:    else
                   7196:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7197:    fi
                   7198: fi
1.14      bertrand 7199: 
1.15      bertrand 7200: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7201:    MYSQL_LIB=no
1.14      bertrand 7202: 
1.15      bertrand 7203:    if test $MYSQL_LIB = no; then
                   7204:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7205: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7206:        saved_LIBS="$LIBS"
                   7207:        LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
                   7208:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7209: /* end confdefs.h.  */
1.15      bertrand 7210: #include "mysql.h"
1.1       bertrand 7211: int
                   7212: main ()
                   7213: {
1.15      bertrand 7214: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7215:   ;
                   7216:   return 0;
                   7217: }
                   7218: _ACEOF
1.15      bertrand 7219: if ac_fn_c_try_link "$LINENO"; then :
                   7220:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7221: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7222: else
1.15      bertrand 7223:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7224: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7225: fi
                   7226: rm -f core conftest.err conftest.$ac_objext \
                   7227:     conftest$ac_exeext conftest.$ac_ext
                   7228:        LIBS=$saved_LIBS;
                   7229:        libMySQLlib="$libMySQLlib -lmysqlclient_r"
                   7230:    fi
1.14      bertrand 7231: 
1.15      bertrand 7232:    if test $MYSQL_LIB = no; then
                   7233:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7234:    fi
1.14      bertrand 7235: fi
1.15      bertrand 7236: 
                   7237: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7238:    libMySQLinc=
                   7239:    libMySQLlib=
1.1       bertrand 7240: fi
1.14      bertrand 7241: 
                   7242: 
                   7243: 
1.1       bertrand 7244: 
                   7245: 
1.15      bertrand 7246: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7247: 
                   7248: # Check whether --with-postgresql was given.
                   7249: if test "${with_postgresql+set}" = set; then :
                   7250:   withval=$with_postgresql;
1.14      bertrand 7251: else
1.15      bertrand 7252:   with_postgresql=check
                   7253: fi
                   7254: 
                   7255: 
                   7256: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7257: # no [--without], valeur [--with=valeur].
                   7258: 
                   7259: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7260:    libPgSQLinc="-I/usr/include"
                   7261:    libPgSQLlib="-L/usr/lib"
                   7262: 
                   7263:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7264: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7265:    saved_CFLAGS="$CFLAGS"
                   7266:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7267:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7268: /* end confdefs.h.  */
1.15      bertrand 7269: #include "libpq-fe.h"
1.1       bertrand 7270: int
                   7271: main ()
                   7272: {
1.15      bertrand 7273: 
1.1       bertrand 7274:   ;
                   7275:   return 0;
                   7276: }
                   7277: _ACEOF
1.15      bertrand 7278: if ac_fn_c_try_compile "$LINENO"; then :
                   7279:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7280: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7281: else
1.15      bertrand 7282:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7283: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7284: fi
1.14      bertrand 7285: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7286:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7287: 
1.15      bertrand 7288:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7289:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7290: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7291:        saved_CFLAGS="$CFLAGS"
                   7292:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7293:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7294: /* end confdefs.h.  */
1.15      bertrand 7295: #include "libpq-fe.h"
1.1       bertrand 7296: int
                   7297: main ()
                   7298: {
                   7299: 
                   7300:   ;
                   7301:   return 0;
                   7302: }
                   7303: _ACEOF
1.15      bertrand 7304: if ac_fn_c_try_compile "$LINENO"; then :
                   7305:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7306: $as_echo "yes" >&6; };
                   7307:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7308: else
                   7309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7310: $as_echo "no" >&6; };
                   7311:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7312: fi
                   7313: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7314:        CFLAGS=$saved_CFLAGS
                   7315:        libPgSQLinc=$libPgSQLinc/postgresql
                   7316:    fi
                   7317: 
                   7318:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7319:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7320: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7321:        saved_CFLAGS="$CFLAGS"
                   7322:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7323:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7324: /* end confdefs.h.  */
1.15      bertrand 7325: #include "libpq-fe.h"
1.1       bertrand 7326: int
                   7327: main ()
                   7328: {
                   7329: 
                   7330:   ;
                   7331:   return 0;
                   7332: }
                   7333: _ACEOF
1.15      bertrand 7334: if ac_fn_c_try_compile "$LINENO"; then :
                   7335:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7336: $as_echo "yes" >&6; };
                   7337:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7338: else
1.15      bertrand 7339:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7340: $as_echo "no" >&6; };
                   7341:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7342: fi
                   7343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7344:        CFLAGS=$saved_CFLAGS
                   7345:        libPgSQLinc=$libPgSQLinc/pgsql
                   7346:    fi
1.1       bertrand 7347: 
1.15      bertrand 7348:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7349:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7350: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7351:        saved_CFLAGS="$CFLAGS"
                   7352:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7353:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7354: /* end confdefs.h.  */
1.15      bertrand 7355: #include "libpq-fe.h"
1.1       bertrand 7356: int
                   7357: main ()
                   7358: {
                   7359: 
                   7360:   ;
                   7361:   return 0;
                   7362: }
                   7363: _ACEOF
1.15      bertrand 7364: if ac_fn_c_try_compile "$LINENO"; then :
                   7365:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7366: $as_echo "yes" >&6; };
                   7367:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7368: else
                   7369:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7370: $as_echo "no" >&6; };
                   7371:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7372: fi
                   7373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7374:        CFLAGS=$saved_CFLAGS
                   7375:        libPgSQLinc=$libPgSQLinc/../local/include
                   7376:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7377:    fi
                   7378: 
                   7379:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7380:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7381: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7382:        saved_CFLAGS="$CFLAGS"
                   7383:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7384:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7385: /* end confdefs.h.  */
1.15      bertrand 7386: #include "libpq-fe.h"
1.1       bertrand 7387: int
                   7388: main ()
                   7389: {
                   7390: 
                   7391:   ;
                   7392:   return 0;
                   7393: }
                   7394: _ACEOF
1.15      bertrand 7395: if ac_fn_c_try_compile "$LINENO"; then :
                   7396:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7397: $as_echo "yes" >&6; };
                   7398:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7399: else
1.15      bertrand 7400:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7401: $as_echo "no" >&6; };
                   7402:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7403: fi
                   7404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7405:        CFLAGS=$saved_CFLAGS
                   7406:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7407:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7408:    fi
1.14      bertrand 7409: 
1.15      bertrand 7410:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7411:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7412: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7413:        saved_CFLAGS="$CFLAGS"
                   7414:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7415:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7416: /* end confdefs.h.  */
1.15      bertrand 7417: #include "libpq-fe.h"
1.1       bertrand 7418: int
                   7419: main ()
                   7420: {
                   7421: 
                   7422:   ;
                   7423:   return 0;
                   7424: }
                   7425: _ACEOF
1.15      bertrand 7426: if ac_fn_c_try_compile "$LINENO"; then :
                   7427:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7428: $as_echo "yes" >&6; };
                   7429:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7430: else
1.15      bertrand 7431:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7432: $as_echo "no" >&6; };
                   7433:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7434: fi
                   7435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7436:        CFLAGS=$saved_CFLAGS
                   7437:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7438:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7439:    fi
1.14      bertrand 7440: else
1.15      bertrand 7441:    if test "x$with_postgresql" != xno; then
                   7442:        libPgSQLinc="-I$with_postgresql/include"
                   7443:        libPgSQLlib="-L$with_postgresql/lib"
                   7444: 
                   7445:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7446: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7447:        saved_CFLAGS="$CFLAGS"
                   7448:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7449:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7450: /* end confdefs.h.  */
1.15      bertrand 7451: #include "libpq-fe.h"
1.1       bertrand 7452: int
                   7453: main ()
                   7454: {
                   7455: 
                   7456:   ;
                   7457:   return 0;
                   7458: }
                   7459: _ACEOF
1.15      bertrand 7460: if ac_fn_c_try_compile "$LINENO"; then :
                   7461:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7462: $as_echo "yes" >&6; };
                   7463:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7464: else
1.15      bertrand 7465:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7466: $as_echo "no" >&6; };
                   7467:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7468: fi
1.15      bertrand 7469: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7470:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7471: 
1.15      bertrand 7472:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7473:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7474: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7475:            saved_CFLAGS="$CFLAGS"
                   7476:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7477:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7478: /* end confdefs.h.  */
1.15      bertrand 7479: #include "libpq-fe.h"
1.1       bertrand 7480: int
                   7481: main ()
                   7482: {
1.15      bertrand 7483: 
1.1       bertrand 7484:   ;
                   7485:   return 0;
                   7486: }
                   7487: _ACEOF
1.15      bertrand 7488: if ac_fn_c_try_compile "$LINENO"; then :
                   7489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7490: $as_echo "yes" >&6; };
                   7491:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7492: else
1.15      bertrand 7493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7494: $as_echo "no" >&6; };
                   7495:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7496: fi
                   7497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7498:            CFLAGS=$saved_CFLAGS
                   7499:            libPgSQLinc=$libPgSQLinc/postgresql
                   7500:        fi
1.14      bertrand 7501: 
1.15      bertrand 7502:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7503:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7504: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7505:            saved_CFLAGS="$CFLAGS"
                   7506:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7507:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7508: /* end confdefs.h.  */
1.15      bertrand 7509: #include "libpq-fe.h"
1.1       bertrand 7510: int
                   7511: main ()
                   7512: {
1.15      bertrand 7513: 
1.1       bertrand 7514:   ;
                   7515:   return 0;
                   7516: }
                   7517: _ACEOF
1.15      bertrand 7518: if ac_fn_c_try_compile "$LINENO"; then :
                   7519:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7520: $as_echo "yes" >&6; };
                   7521:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7522: else
1.15      bertrand 7523:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7524: $as_echo "no" >&6; };
                   7525:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7526: fi
1.15      bertrand 7527: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7528:            CFLAGS=$saved_CFLAGS
                   7529:            libPgSQLinc=$libPgSQLinc/pgsql
                   7530:        fi
                   7531:    else
                   7532:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7533:    fi
1.1       bertrand 7534: fi
                   7535: 
1.15      bertrand 7536: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7537:    POSTGRESQL_LIB=no
1.1       bertrand 7538: 
1.15      bertrand 7539:    if test $POSTGRESQL_LIB = no; then
                   7540:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7541: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7542:        saved_LIBS="$LIBS"
                   7543:        LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
                   7544:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7545: /* end confdefs.h.  */
1.15      bertrand 7546: #include "libpq-fe.h"
1.1       bertrand 7547: int
                   7548: main ()
                   7549: {
1.15      bertrand 7550: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7551:             PQconnectdb(conninfo);
1.1       bertrand 7552:   ;
                   7553:   return 0;
                   7554: }
                   7555: _ACEOF
1.15      bertrand 7556: if ac_fn_c_try_link "$LINENO"; then :
                   7557:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7558: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7559: else
1.15      bertrand 7560:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7561: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7562: fi
                   7563: rm -f core conftest.err conftest.$ac_objext \
                   7564:     conftest$ac_exeext conftest.$ac_ext
                   7565:        LIBS=$saved_LIBS;
                   7566:        libPgSQLlib="$libPgSQLlib -lpq"
                   7567:    fi
                   7568: fi
                   7569: 
                   7570: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7571:    libPgSQLinc=
                   7572:    libPgSQLlib=
                   7573: fi
                   7574: 
                   7575: 
                   7576: 
                   7577: 
1.14      bertrand 7578: 
1.15      bertrand 7579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7580: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7581: if test "${ac_cv_path_GREP+set}" = set; then :
                   7582:   $as_echo_n "(cached) " >&6
                   7583: else
                   7584:   if test -z "$GREP"; then
                   7585:   ac_path_GREP_found=false
                   7586:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7587:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7588: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7589: do
                   7590:   IFS=$as_save_IFS
                   7591:   test -z "$as_dir" && as_dir=.
                   7592:     for ac_prog in grep ggrep; do
                   7593:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7594:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7595:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7596: # Check for GNU ac_path_GREP and select it if it is found.
                   7597:   # Check for GNU $ac_path_GREP
                   7598: case `"$ac_path_GREP" --version 2>&1` in
                   7599: *GNU*)
                   7600:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7601: *)
                   7602:   ac_count=0
                   7603:   $as_echo_n 0123456789 >"conftest.in"
                   7604:   while :
                   7605:   do
                   7606:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7607:     mv "conftest.tmp" "conftest.in"
                   7608:     cp "conftest.in" "conftest.nl"
                   7609:     $as_echo 'GREP' >> "conftest.nl"
                   7610:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7611:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7612:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7613:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7614:       # Best one so far, save it but keep looking for a better one
                   7615:       ac_cv_path_GREP="$ac_path_GREP"
                   7616:       ac_path_GREP_max=$ac_count
                   7617:     fi
                   7618:     # 10*(2^10) chars as input seems more than enough
                   7619:     test $ac_count -gt 10 && break
                   7620:   done
                   7621:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7622: esac
1.14      bertrand 7623: 
1.15      bertrand 7624:       $ac_path_GREP_found && break 3
                   7625:     done
                   7626:   done
                   7627:   done
                   7628: IFS=$as_save_IFS
                   7629:   if test -z "$ac_cv_path_GREP"; then
                   7630:     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7631:   fi
                   7632: else
                   7633:   ac_cv_path_GREP=$GREP
1.1       bertrand 7634: fi
                   7635: 
                   7636: fi
1.15      bertrand 7637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7638: $as_echo "$ac_cv_path_GREP" >&6; }
                   7639:  GREP="$ac_cv_path_GREP"
                   7640: 
                   7641: 
                   7642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7643: $as_echo_n "checking for egrep... " >&6; }
                   7644: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7645:   $as_echo_n "(cached) " >&6
                   7646: else
                   7647:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7648:    then ac_cv_path_EGREP="$GREP -E"
                   7649:    else
                   7650:      if test -z "$EGREP"; then
                   7651:   ac_path_EGREP_found=false
                   7652:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7653:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7654: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7655: do
                   7656:   IFS=$as_save_IFS
                   7657:   test -z "$as_dir" && as_dir=.
                   7658:     for ac_prog in egrep; do
                   7659:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7660:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7661:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7662: # Check for GNU ac_path_EGREP and select it if it is found.
                   7663:   # Check for GNU $ac_path_EGREP
                   7664: case `"$ac_path_EGREP" --version 2>&1` in
                   7665: *GNU*)
                   7666:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7667: *)
                   7668:   ac_count=0
                   7669:   $as_echo_n 0123456789 >"conftest.in"
                   7670:   while :
                   7671:   do
                   7672:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7673:     mv "conftest.tmp" "conftest.in"
                   7674:     cp "conftest.in" "conftest.nl"
                   7675:     $as_echo 'EGREP' >> "conftest.nl"
                   7676:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7677:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7678:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7679:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7680:       # Best one so far, save it but keep looking for a better one
                   7681:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7682:       ac_path_EGREP_max=$ac_count
                   7683:     fi
                   7684:     # 10*(2^10) chars as input seems more than enough
                   7685:     test $ac_count -gt 10 && break
                   7686:   done
                   7687:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7688: esac
                   7689: 
                   7690:       $ac_path_EGREP_found && break 3
                   7691:     done
                   7692:   done
                   7693:   done
                   7694: IFS=$as_save_IFS
                   7695:   if test -z "$ac_cv_path_EGREP"; then
                   7696:     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7697:   fi
1.1       bertrand 7698: else
1.15      bertrand 7699:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7700: fi
                   7701: 
1.15      bertrand 7702:    fi
1.1       bertrand 7703: fi
1.15      bertrand 7704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7705: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7706:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7707: 
                   7708: 
1.15      bertrand 7709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7710: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7711: if test "${ac_cv_header_stdc+set}" = set; then :
                   7712:   $as_echo_n "(cached) " >&6
1.1       bertrand 7713: else
1.15      bertrand 7714:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7715: /* end confdefs.h.  */
                   7716: #include <stdlib.h>
                   7717: #include <stdarg.h>
                   7718: #include <string.h>
                   7719: #include <float.h>
                   7720: 
                   7721: int
                   7722: main ()
                   7723: {
                   7724: 
                   7725:   ;
                   7726:   return 0;
                   7727: }
                   7728: _ACEOF
1.15      bertrand 7729: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7730:   ac_cv_header_stdc=yes
                   7731: else
1.15      bertrand 7732:   ac_cv_header_stdc=no
1.1       bertrand 7733: fi
                   7734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7735: 
                   7736: if test $ac_cv_header_stdc = yes; then
                   7737:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7738:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7739: /* end confdefs.h.  */
                   7740: #include <string.h>
                   7741: 
                   7742: _ACEOF
                   7743: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7744:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7745: 
1.1       bertrand 7746: else
                   7747:   ac_cv_header_stdc=no
                   7748: fi
                   7749: rm -f conftest*
                   7750: 
                   7751: fi
                   7752: 
                   7753: if test $ac_cv_header_stdc = yes; then
                   7754:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7755:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7756: /* end confdefs.h.  */
                   7757: #include <stdlib.h>
                   7758: 
                   7759: _ACEOF
                   7760: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7761:   $EGREP "free" >/dev/null 2>&1; then :
                   7762: 
1.1       bertrand 7763: else
                   7764:   ac_cv_header_stdc=no
                   7765: fi
                   7766: rm -f conftest*
                   7767: 
                   7768: fi
                   7769: 
                   7770: if test $ac_cv_header_stdc = yes; then
                   7771:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 7772:   if test "$cross_compiling" = yes; then :
1.1       bertrand 7773:   :
                   7774: else
1.15      bertrand 7775:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7776: /* end confdefs.h.  */
                   7777: #include <ctype.h>
                   7778: #include <stdlib.h>
                   7779: #if ((' ' & 0x0FF) == 0x020)
                   7780: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7781: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7782: #else
                   7783: # define ISLOWER(c) \
                   7784:           (('a' <= (c) && (c) <= 'i') \
                   7785:             || ('j' <= (c) && (c) <= 'r') \
                   7786:             || ('s' <= (c) && (c) <= 'z'))
                   7787: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7788: #endif
                   7789: 
                   7790: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   7791: int
                   7792: main ()
                   7793: {
                   7794:   int i;
                   7795:   for (i = 0; i < 256; i++)
                   7796:     if (XOR (islower (i), ISLOWER (i))
                   7797:    || toupper (i) != TOUPPER (i))
                   7798:       return 2;
                   7799:   return 0;
                   7800: }
                   7801: _ACEOF
1.15      bertrand 7802: if ac_fn_c_try_run "$LINENO"; then :
                   7803: 
1.14      bertrand 7804: else
1.15      bertrand 7805:   ac_cv_header_stdc=no
                   7806: fi
                   7807: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7808:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7809: fi
1.1       bertrand 7810: 
                   7811: fi
                   7812: fi
1.15      bertrand 7813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   7814: $as_echo "$ac_cv_header_stdc" >&6; }
                   7815: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 7816: 
1.15      bertrand 7817: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 7818: 
1.1       bertrand 7819: fi
                   7820: 
1.15      bertrand 7821: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   7822: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   7823:          inttypes.h stdint.h unistd.h
                   7824: do :
                   7825:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   7826: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   7827: "
                   7828: eval as_val=\$$as_ac_Header
                   7829:    if test "x$as_val" = x""yes; then :
                   7830:   cat >>confdefs.h <<_ACEOF
                   7831: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 7832: _ACEOF
1.1       bertrand 7833: 
                   7834: fi
                   7835: 
1.15      bertrand 7836: done
                   7837: 
                   7838: 
                   7839: # The cast to long int works around a bug in the HP C Compiler
                   7840: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7841: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7842: # This bug is HP SR number 8606223364.
                   7843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   7844: $as_echo_n "checking size of void *... " >&6; }
                   7845: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   7846:   $as_echo_n "(cached) " >&6
                   7847: else
                   7848:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 7849: 
                   7850: else
1.15      bertrand 7851:   if test "$ac_cv_type_void_p" = yes; then
                   7852:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7853: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7854: { as_fn_set_status 77
                   7855: as_fn_error "cannot compute sizeof (void *)
                   7856: See \`config.log' for more details." "$LINENO" 5; }; }
                   7857:    else
                   7858:      ac_cv_sizeof_void_p=0
                   7859:    fi
                   7860: fi
1.1       bertrand 7861: 
                   7862: fi
1.15      bertrand 7863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   7864: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   7865: 
1.1       bertrand 7866: 
                   7867: 
1.15      bertrand 7868: cat >>confdefs.h <<_ACEOF
                   7869: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 7870: _ACEOF
1.1       bertrand 7871: 
1.15      bertrand 7872: 
                   7873: # The cast to long int works around a bug in the HP C Compiler
                   7874: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7875: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7876: # This bug is HP SR number 8606223364.
                   7877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   7878: $as_echo_n "checking size of char... " >&6; }
                   7879: if test "${ac_cv_sizeof_char+set}" = set; then :
                   7880:   $as_echo_n "(cached) " >&6
                   7881: else
                   7882:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   7883: 
                   7884: else
                   7885:   if test "$ac_cv_type_char" = yes; then
                   7886:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7887: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7888: { as_fn_set_status 77
                   7889: as_fn_error "cannot compute sizeof (char)
                   7890: See \`config.log' for more details." "$LINENO" 5; }; }
                   7891:    else
                   7892:      ac_cv_sizeof_char=0
                   7893:    fi
                   7894: fi
                   7895: 
1.1       bertrand 7896: fi
1.15      bertrand 7897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   7898: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 7899: 
                   7900: 
                   7901: 
1.15      bertrand 7902: cat >>confdefs.h <<_ACEOF
                   7903: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   7904: _ACEOF
1.1       bertrand 7905: 
                   7906: 
1.15      bertrand 7907: # The cast to long int works around a bug in the HP C Compiler
                   7908: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7909: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7910: # This bug is HP SR number 8606223364.
                   7911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   7912: $as_echo_n "checking size of short int... " >&6; }
                   7913: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   7914:   $as_echo_n "(cached) " >&6
                   7915: else
                   7916:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 7917: 
1.15      bertrand 7918: else
                   7919:   if test "$ac_cv_type_short_int" = yes; then
                   7920:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7921: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7922: { as_fn_set_status 77
                   7923: as_fn_error "cannot compute sizeof (short int)
                   7924: See \`config.log' for more details." "$LINENO" 5; }; }
                   7925:    else
                   7926:      ac_cv_sizeof_short_int=0
                   7927:    fi
                   7928: fi
1.1       bertrand 7929: 
1.15      bertrand 7930: fi
                   7931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   7932: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 7933: 
                   7934: 
                   7935: 
1.15      bertrand 7936: cat >>confdefs.h <<_ACEOF
                   7937: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   7938: _ACEOF
1.1       bertrand 7939: 
                   7940: 
1.15      bertrand 7941: # The cast to long int works around a bug in the HP C Compiler
                   7942: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7943: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7944: # This bug is HP SR number 8606223364.
                   7945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   7946: $as_echo_n "checking size of int... " >&6; }
                   7947: if test "${ac_cv_sizeof_int+set}" = set; then :
                   7948:   $as_echo_n "(cached) " >&6
                   7949: else
                   7950:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 7951: 
1.15      bertrand 7952: else
                   7953:   if test "$ac_cv_type_int" = yes; then
                   7954:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7955: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7956: { as_fn_set_status 77
                   7957: as_fn_error "cannot compute sizeof (int)
                   7958: See \`config.log' for more details." "$LINENO" 5; }; }
                   7959:    else
                   7960:      ac_cv_sizeof_int=0
                   7961:    fi
                   7962: fi
1.1       bertrand 7963: 
1.15      bertrand 7964: fi
                   7965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   7966: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 7967: 
                   7968: 
                   7969: 
1.15      bertrand 7970: cat >>confdefs.h <<_ACEOF
                   7971: #define SIZEOF_INT $ac_cv_sizeof_int
                   7972: _ACEOF
1.1       bertrand 7973: 
                   7974: 
1.15      bertrand 7975: # The cast to long int works around a bug in the HP C Compiler
                   7976: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7977: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7978: # This bug is HP SR number 8606223364.
                   7979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   7980: $as_echo_n "checking size of long int... " >&6; }
                   7981: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   7982:   $as_echo_n "(cached) " >&6
                   7983: else
                   7984:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 7985: 
1.14      bertrand 7986: else
1.15      bertrand 7987:   if test "$ac_cv_type_long_int" = yes; then
                   7988:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7989: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7990: { as_fn_set_status 77
                   7991: as_fn_error "cannot compute sizeof (long int)
                   7992: See \`config.log' for more details." "$LINENO" 5; }; }
                   7993:    else
                   7994:      ac_cv_sizeof_long_int=0
                   7995:    fi
                   7996: fi
1.1       bertrand 7997: 
                   7998: fi
1.15      bertrand 7999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8000: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8001: 
1.1       bertrand 8002: 
                   8003: 
1.15      bertrand 8004: cat >>confdefs.h <<_ACEOF
                   8005: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8006: _ACEOF
1.15      bertrand 8007: 
                   8008: 
                   8009: # The cast to long int works around a bug in the HP C Compiler
                   8010: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8011: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8012: # This bug is HP SR number 8606223364.
                   8013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8014: $as_echo_n "checking size of long long int... " >&6; }
                   8015: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8016:   $as_echo_n "(cached) " >&6
                   8017: else
                   8018:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8019: 
1.14      bertrand 8020: else
1.15      bertrand 8021:   if test "$ac_cv_type_long_long_int" = yes; then
                   8022:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8023: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8024: { as_fn_set_status 77
                   8025: as_fn_error "cannot compute sizeof (long long int)
                   8026: See \`config.log' for more details." "$LINENO" 5; }; }
                   8027:    else
                   8028:      ac_cv_sizeof_long_long_int=0
                   8029:    fi
                   8030: fi
1.1       bertrand 8031: 
1.14      bertrand 8032: fi
1.15      bertrand 8033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8034: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8035: 
                   8036: 
                   8037: 
                   8038: cat >>confdefs.h <<_ACEOF
                   8039: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8040: _ACEOF
1.1       bertrand 8041: 
                   8042: 
1.15      bertrand 8043: # The cast to long int works around a bug in the HP C Compiler
                   8044: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8045: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8046: # This bug is HP SR number 8606223364.
                   8047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8048: $as_echo_n "checking size of float... " >&6; }
                   8049: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8050:   $as_echo_n "(cached) " >&6
                   8051: else
                   8052:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8053: 
                   8054: else
1.15      bertrand 8055:   if test "$ac_cv_type_float" = yes; then
                   8056:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8057: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8058: { as_fn_set_status 77
                   8059: as_fn_error "cannot compute sizeof (float)
                   8060: See \`config.log' for more details." "$LINENO" 5; }; }
                   8061:    else
                   8062:      ac_cv_sizeof_float=0
                   8063:    fi
1.14      bertrand 8064: fi
                   8065: 
1.1       bertrand 8066: fi
1.15      bertrand 8067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8068: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8069: 
                   8070: 
                   8071: 
                   8072: cat >>confdefs.h <<_ACEOF
                   8073: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8074: _ACEOF
1.1       bertrand 8075: 
                   8076: 
1.15      bertrand 8077: # The cast to long int works around a bug in the HP C Compiler
                   8078: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8079: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8080: # This bug is HP SR number 8606223364.
                   8081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8082: $as_echo_n "checking size of double... " >&6; }
                   8083: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8084:   $as_echo_n "(cached) " >&6
                   8085: else
                   8086:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8087: 
1.15      bertrand 8088: else
                   8089:   if test "$ac_cv_type_double" = yes; then
                   8090:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8091: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8092: { as_fn_set_status 77
                   8093: as_fn_error "cannot compute sizeof (double)
                   8094: See \`config.log' for more details." "$LINENO" 5; }; }
                   8095:    else
                   8096:      ac_cv_sizeof_double=0
                   8097:    fi
                   8098: fi
1.1       bertrand 8099: 
1.15      bertrand 8100: fi
                   8101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8102: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8103: 
1.1       bertrand 8104: 
                   8105: 
1.15      bertrand 8106: cat >>confdefs.h <<_ACEOF
                   8107: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8108: _ACEOF
1.15      bertrand 8109: 
                   8110: 
                   8111: # The cast to long int works around a bug in the HP C Compiler
                   8112: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8113: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8114: # This bug is HP SR number 8606223364.
                   8115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8116: $as_echo_n "checking size of long double... " >&6; }
                   8117: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8118:   $as_echo_n "(cached) " >&6
                   8119: else
                   8120:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8121: 
1.14      bertrand 8122: else
1.15      bertrand 8123:   if test "$ac_cv_type_long_double" = yes; then
                   8124:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8125: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8126: { as_fn_set_status 77
                   8127: as_fn_error "cannot compute sizeof (long double)
                   8128: See \`config.log' for more details." "$LINENO" 5; }; }
                   8129:    else
                   8130:      ac_cv_sizeof_long_double=0
                   8131:    fi
                   8132: fi
1.1       bertrand 8133: 
                   8134: fi
1.15      bertrand 8135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8136: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8137: 
1.1       bertrand 8138: 
                   8139: 
1.15      bertrand 8140: cat >>confdefs.h <<_ACEOF
                   8141: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8142: _ACEOF
                   8143: 
                   8144: 
1.15      bertrand 8145: 
                   8146: ac_header_dirent=no
                   8147: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8148:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8150: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   8151: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
                   8152:   $as_echo_n "(cached) " >&6
1.1       bertrand 8153: else
1.15      bertrand 8154:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8155: /* end confdefs.h.  */
                   8156: #include <sys/types.h>
1.15      bertrand 8157: #include <$ac_hdr>
1.1       bertrand 8158: 
1.15      bertrand 8159: int
                   8160: main ()
                   8161: {
                   8162: if ((DIR *) 0)
                   8163: return 0;
                   8164:   ;
                   8165:   return 0;
                   8166: }
1.1       bertrand 8167: _ACEOF
1.15      bertrand 8168: if ac_fn_c_try_compile "$LINENO"; then :
                   8169:   eval "$as_ac_Header=yes"
1.1       bertrand 8170: else
1.15      bertrand 8171:   eval "$as_ac_Header=no"
                   8172: fi
                   8173: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8174: fi
1.15      bertrand 8175: eval ac_res=\$$as_ac_Header
                   8176:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8177: $as_echo "$ac_res" >&6; }
                   8178: eval as_val=\$$as_ac_Header
                   8179:    if test "x$as_val" = x""yes; then :
                   8180:   cat >>confdefs.h <<_ACEOF
                   8181: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8182: _ACEOF
1.1       bertrand 8183: 
1.15      bertrand 8184: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8185: fi
                   8186: 
1.15      bertrand 8187: done
                   8188: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8189: if test $ac_header_dirent = dirent.h; then
                   8190:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8191: $as_echo_n "checking for library containing opendir... " >&6; }
                   8192: if test "${ac_cv_search_opendir+set}" = set; then :
                   8193:   $as_echo_n "(cached) " >&6
                   8194: else
                   8195:   ac_func_search_save_LIBS=$LIBS
                   8196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8197: /* end confdefs.h.  */
                   8198: 
                   8199: /* Override any GCC internal prototype to avoid an error.
                   8200:    Use char because int might match the return type of a GCC
                   8201:    builtin and then its argument prototype would still apply.  */
                   8202: #ifdef __cplusplus
                   8203: extern "C"
                   8204: #endif
                   8205: char opendir ();
                   8206: int
                   8207: main ()
                   8208: {
                   8209: return opendir ();
                   8210:   ;
                   8211:   return 0;
                   8212: }
1.14      bertrand 8213: _ACEOF
1.15      bertrand 8214: for ac_lib in '' dir; do
                   8215:   if test -z "$ac_lib"; then
                   8216:     ac_res="none required"
                   8217:   else
                   8218:     ac_res=-l$ac_lib
                   8219:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8220:   fi
                   8221:   if ac_fn_c_try_link "$LINENO"; then :
                   8222:   ac_cv_search_opendir=$ac_res
                   8223: fi
                   8224: rm -f core conftest.err conftest.$ac_objext \
                   8225:     conftest$ac_exeext
                   8226:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8227:   break
                   8228: fi
                   8229: done
                   8230: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8231: 
1.15      bertrand 8232: else
                   8233:   ac_cv_search_opendir=no
                   8234: fi
                   8235: rm conftest.$ac_ext
                   8236: LIBS=$ac_func_search_save_LIBS
                   8237: fi
                   8238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8239: $as_echo "$ac_cv_search_opendir" >&6; }
                   8240: ac_res=$ac_cv_search_opendir
                   8241: if test "$ac_res" != no; then :
                   8242:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8243: 
1.14      bertrand 8244: fi
1.1       bertrand 8245: 
                   8246: else
1.15      bertrand 8247:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8248: $as_echo_n "checking for library containing opendir... " >&6; }
                   8249: if test "${ac_cv_search_opendir+set}" = set; then :
                   8250:   $as_echo_n "(cached) " >&6
                   8251: else
                   8252:   ac_func_search_save_LIBS=$LIBS
                   8253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8254: /* end confdefs.h.  */
1.15      bertrand 8255: 
                   8256: /* Override any GCC internal prototype to avoid an error.
                   8257:    Use char because int might match the return type of a GCC
                   8258:    builtin and then its argument prototype would still apply.  */
                   8259: #ifdef __cplusplus
                   8260: extern "C"
                   8261: #endif
                   8262: char opendir ();
1.1       bertrand 8263: int
                   8264: main ()
                   8265: {
1.15      bertrand 8266: return opendir ();
1.1       bertrand 8267:   ;
                   8268:   return 0;
                   8269: }
                   8270: _ACEOF
1.15      bertrand 8271: for ac_lib in '' x; do
                   8272:   if test -z "$ac_lib"; then
                   8273:     ac_res="none required"
                   8274:   else
                   8275:     ac_res=-l$ac_lib
                   8276:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8277:   fi
                   8278:   if ac_fn_c_try_link "$LINENO"; then :
                   8279:   ac_cv_search_opendir=$ac_res
                   8280: fi
                   8281: rm -f core conftest.err conftest.$ac_objext \
                   8282:     conftest$ac_exeext
                   8283:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8284:   break
                   8285: fi
                   8286: done
                   8287: if test "${ac_cv_search_opendir+set}" = set; then :
                   8288: 
1.1       bertrand 8289: else
1.15      bertrand 8290:   ac_cv_search_opendir=no
                   8291: fi
                   8292: rm conftest.$ac_ext
                   8293: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8294: fi
1.15      bertrand 8295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8296: $as_echo "$ac_cv_search_opendir" >&6; }
                   8297: ac_res=$ac_cv_search_opendir
                   8298: if test "$ac_res" != no; then :
                   8299:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8300: 
1.1       bertrand 8301: fi
                   8302: 
                   8303: fi
                   8304: 
1.15      bertrand 8305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8306: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8307: if test "${ac_cv_header_stdc+set}" = set; then :
                   8308:   $as_echo_n "(cached) " >&6
1.1       bertrand 8309: else
1.15      bertrand 8310:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8311: /* end confdefs.h.  */
1.15      bertrand 8312: #include <stdlib.h>
                   8313: #include <stdarg.h>
                   8314: #include <string.h>
                   8315: #include <float.h>
                   8316: 
1.1       bertrand 8317: int
                   8318: main ()
                   8319: {
1.15      bertrand 8320: 
1.1       bertrand 8321:   ;
                   8322:   return 0;
                   8323: }
                   8324: _ACEOF
1.15      bertrand 8325: if ac_fn_c_try_compile "$LINENO"; then :
                   8326:   ac_cv_header_stdc=yes
1.14      bertrand 8327: else
1.15      bertrand 8328:   ac_cv_header_stdc=no
                   8329: fi
                   8330: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8331: 
                   8332: if test $ac_cv_header_stdc = yes; then
                   8333:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8334:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8335: /* end confdefs.h.  */
                   8336: #include <string.h>
                   8337: 
                   8338: _ACEOF
                   8339: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8340:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8341: 
1.15      bertrand 8342: else
                   8343:   ac_cv_header_stdc=no
1.1       bertrand 8344: fi
1.15      bertrand 8345: rm -f conftest*
1.14      bertrand 8346: 
1.1       bertrand 8347: fi
                   8348: 
1.15      bertrand 8349: if test $ac_cv_header_stdc = yes; then
                   8350:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8351:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8352: /* end confdefs.h.  */
                   8353: #include <stdlib.h>
                   8354: 
1.14      bertrand 8355: _ACEOF
1.15      bertrand 8356: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8357:   $EGREP "free" >/dev/null 2>&1; then :
                   8358: 
                   8359: else
                   8360:   ac_cv_header_stdc=no
                   8361: fi
                   8362: rm -f conftest*
1.1       bertrand 8363: 
                   8364: fi
                   8365: 
1.15      bertrand 8366: if test $ac_cv_header_stdc = yes; then
                   8367:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8368:   if test "$cross_compiling" = yes; then :
                   8369:   :
1.1       bertrand 8370: else
1.15      bertrand 8371:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8372: /* end confdefs.h.  */
1.15      bertrand 8373: #include <ctype.h>
                   8374: #include <stdlib.h>
                   8375: #if ((' ' & 0x0FF) == 0x020)
                   8376: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8377: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8378: #else
                   8379: # define ISLOWER(c) \
                   8380:           (('a' <= (c) && (c) <= 'i') \
                   8381:             || ('j' <= (c) && (c) <= 'r') \
                   8382:             || ('s' <= (c) && (c) <= 'z'))
                   8383: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8384: #endif
1.1       bertrand 8385: 
1.15      bertrand 8386: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8387: int
                   8388: main ()
                   8389: {
1.15      bertrand 8390:   int i;
                   8391:   for (i = 0; i < 256; i++)
                   8392:     if (XOR (islower (i), ISLOWER (i))
                   8393:    || toupper (i) != TOUPPER (i))
                   8394:       return 2;
1.1       bertrand 8395:   return 0;
                   8396: }
                   8397: _ACEOF
1.15      bertrand 8398: if ac_fn_c_try_run "$LINENO"; then :
                   8399: 
1.14      bertrand 8400: else
1.15      bertrand 8401:   ac_cv_header_stdc=no
                   8402: fi
                   8403: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8404:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8405: fi
1.14      bertrand 8406: 
1.1       bertrand 8407: fi
                   8408: fi
1.15      bertrand 8409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8410: $as_echo "$ac_cv_header_stdc" >&6; }
                   8411: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8412: 
1.15      bertrand 8413: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8414: 
                   8415: fi
                   8416: 
1.15      bertrand 8417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8418: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8419: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8420:   $as_echo_n "(cached) " >&6
1.1       bertrand 8421: else
1.15      bertrand 8422:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8423: /* end confdefs.h.  */
1.14      bertrand 8424: #include <sys/types.h>
1.15      bertrand 8425: #include <sys/wait.h>
                   8426: #ifndef WEXITSTATUS
                   8427: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8428: #endif
                   8429: #ifndef WIFEXITED
                   8430: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8431: #endif
1.1       bertrand 8432: 
                   8433: int
                   8434: main ()
                   8435: {
1.15      bertrand 8436:   int s;
                   8437:   wait (&s);
                   8438:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8439:   ;
                   8440:   return 0;
                   8441: }
                   8442: _ACEOF
1.15      bertrand 8443: if ac_fn_c_try_compile "$LINENO"; then :
                   8444:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8445: else
1.15      bertrand 8446:   ac_cv_header_sys_wait_h=no
                   8447: fi
                   8448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8449: fi
                   8450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8451: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8452: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8453: 
1.15      bertrand 8454: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8455: 
                   8456: fi
                   8457: 
1.15      bertrand 8458: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8459:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8460:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8461: do :
                   8462:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8463: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   8464: eval as_val=\$$as_ac_Header
                   8465:    if test "x$as_val" = x""yes; then :
                   8466:   cat >>confdefs.h <<_ACEOF
                   8467: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8468: _ACEOF
                   8469: 
                   8470: fi
                   8471: 
1.15      bertrand 8472: done
                   8473: 
1.1       bertrand 8474: 
1.15      bertrand 8475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8476: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8477: if test "${ac_cv_c_const+set}" = set; then :
                   8478:   $as_echo_n "(cached) " >&6
1.1       bertrand 8479: else
1.15      bertrand 8480:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8481: /* end confdefs.h.  */
                   8482: 
                   8483: int
                   8484: main ()
                   8485: {
1.15      bertrand 8486: /* FIXME: Include the comments suggested by Paul. */
                   8487: #ifndef __cplusplus
                   8488:   /* Ultrix mips cc rejects this.  */
                   8489:   typedef int charset[2];
                   8490:   const charset cs;
                   8491:   /* SunOS 4.1.1 cc rejects this.  */
                   8492:   char const *const *pcpcc;
                   8493:   char **ppc;
                   8494:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8495:   struct point {int x, y;};
                   8496:   static struct point const zero = {0,0};
                   8497:   /* AIX XL C 1.02.0.0 rejects this.
                   8498:      It does not let you subtract one const X* pointer from another in
                   8499:      an arm of an if-expression whose if-part is not a constant
                   8500:      expression */
                   8501:   const char *g = "string";
                   8502:   pcpcc = &g + (g ? g-g : 0);
                   8503:   /* HPUX 7.0 cc rejects these. */
                   8504:   ++pcpcc;
                   8505:   ppc = (char**) pcpcc;
                   8506:   pcpcc = (char const *const *) ppc;
                   8507:   { /* SCO 3.2v4 cc rejects this.  */
                   8508:     char *t;
                   8509:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8510: 
                   8511:     *t++ = 0;
                   8512:     if (s) return 0;
                   8513:   }
                   8514:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8515:     int x[] = {25, 17};
                   8516:     const int *foo = &x[0];
                   8517:     ++foo;
                   8518:   }
                   8519:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8520:     typedef const int *iptr;
                   8521:     iptr p = 0;
                   8522:     ++p;
                   8523:   }
                   8524:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8525:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8526:     struct s { int j; const int *ap[3]; };
                   8527:     struct s *b; b->j = 5;
                   8528:   }
                   8529:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8530:     const int foo = 10;
                   8531:     if (!foo) return 0;
                   8532:   }
                   8533:   return !cs[0] && !zero.x;
                   8534: #endif
                   8535: 
1.14      bertrand 8536:   ;
1.1       bertrand 8537:   return 0;
                   8538: }
                   8539: _ACEOF
1.15      bertrand 8540: if ac_fn_c_try_compile "$LINENO"; then :
                   8541:   ac_cv_c_const=yes
1.14      bertrand 8542: else
1.15      bertrand 8543:   ac_cv_c_const=no
1.1       bertrand 8544: fi
1.14      bertrand 8545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8546: fi
1.15      bertrand 8547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8548: $as_echo "$ac_cv_c_const" >&6; }
                   8549: if test $ac_cv_c_const = no; then
1.1       bertrand 8550: 
1.15      bertrand 8551: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8552: 
1.15      bertrand 8553: fi
1.1       bertrand 8554: 
1.15      bertrand 8555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8556: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8557: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8558:   $as_echo_n "(cached) " >&6
1.1       bertrand 8559: else
1.15      bertrand 8560:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8561: /* end confdefs.h.  */
1.15      bertrand 8562: #include <sys/types.h>
                   8563: 
1.1       bertrand 8564: _ACEOF
1.15      bertrand 8565: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8566:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8567:   ac_cv_type_uid_t=yes
1.1       bertrand 8568: else
1.15      bertrand 8569:   ac_cv_type_uid_t=no
                   8570: fi
                   8571: rm -f conftest*
1.14      bertrand 8572: 
1.1       bertrand 8573: fi
1.15      bertrand 8574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8575: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8576: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8577: 
1.15      bertrand 8578: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8579: 
                   8580: 
1.15      bertrand 8581: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8582: 
                   8583: fi
                   8584: 
1.15      bertrand 8585: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8586: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8587: 
                   8588: else
1.15      bertrand 8589: 
                   8590: cat >>confdefs.h <<_ACEOF
                   8591: #define pid_t int
1.14      bertrand 8592: _ACEOF
                   8593: 
1.15      bertrand 8594: fi
1.14      bertrand 8595: 
1.15      bertrand 8596: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8597: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8598: 
1.15      bertrand 8599: else
1.1       bertrand 8600: 
1.15      bertrand 8601: cat >>confdefs.h <<_ACEOF
                   8602: #define size_t unsigned int
1.1       bertrand 8603: _ACEOF
1.14      bertrand 8604: 
1.1       bertrand 8605: fi
                   8606: 
1.15      bertrand 8607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8608: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8609: if test "${ac_cv_header_time+set}" = set; then :
                   8610:   $as_echo_n "(cached) " >&6
1.1       bertrand 8611: else
1.15      bertrand 8612:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8613: /* end confdefs.h.  */
1.15      bertrand 8614: #include <sys/types.h>
                   8615: #include <sys/time.h>
                   8616: #include <time.h>
1.1       bertrand 8617: 
1.14      bertrand 8618: int
                   8619: main ()
                   8620: {
1.15      bertrand 8621: if ((struct tm *) 0)
                   8622: return 0;
1.14      bertrand 8623:   ;
                   8624:   return 0;
                   8625: }
1.1       bertrand 8626: _ACEOF
1.15      bertrand 8627: if ac_fn_c_try_compile "$LINENO"; then :
                   8628:   ac_cv_header_time=yes
1.1       bertrand 8629: else
1.15      bertrand 8630:   ac_cv_header_time=no
1.1       bertrand 8631: fi
1.15      bertrand 8632: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8633: fi
1.15      bertrand 8634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8635: $as_echo "$ac_cv_header_time" >&6; }
                   8636: if test $ac_cv_header_time = yes; then
1.1       bertrand 8637: 
1.15      bertrand 8638: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8639: 
                   8640: fi
                   8641: 
1.15      bertrand 8642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8643: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8644: if test "${ac_cv_struct_tm+set}" = set; then :
                   8645:   $as_echo_n "(cached) " >&6
1.1       bertrand 8646: else
1.15      bertrand 8647:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8648: /* end confdefs.h.  */
1.15      bertrand 8649: #include <sys/types.h>
                   8650: #include <time.h>
1.1       bertrand 8651: 
                   8652: int
                   8653: main ()
                   8654: {
1.15      bertrand 8655: struct tm tm;
                   8656:                     int *p = &tm.tm_sec;
                   8657:                     return !p;
1.1       bertrand 8658:   ;
                   8659:   return 0;
                   8660: }
                   8661: _ACEOF
1.15      bertrand 8662: if ac_fn_c_try_compile "$LINENO"; then :
                   8663:   ac_cv_struct_tm=time.h
1.1       bertrand 8664: else
1.15      bertrand 8665:   ac_cv_struct_tm=sys/time.h
                   8666: fi
                   8667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8668: fi
                   8669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8670: $as_echo "$ac_cv_struct_tm" >&6; }
                   8671: if test $ac_cv_struct_tm = sys/time.h; then
                   8672: 
                   8673: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8674: 
1.1       bertrand 8675: fi
                   8676: 
                   8677: 
1.15      bertrand 8678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8679: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8680: if test "${ac_cv_type_signal+set}" = set; then :
                   8681:   $as_echo_n "(cached) " >&6
1.1       bertrand 8682: else
1.15      bertrand 8683:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8684: /* end confdefs.h.  */
1.15      bertrand 8685: #include <sys/types.h>
                   8686: #include <signal.h>
1.1       bertrand 8687: 
                   8688: int
                   8689: main ()
                   8690: {
1.15      bertrand 8691: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8692:   ;
                   8693:   return 0;
                   8694: }
                   8695: _ACEOF
1.15      bertrand 8696: if ac_fn_c_try_compile "$LINENO"; then :
                   8697:   ac_cv_type_signal=int
1.1       bertrand 8698: else
1.15      bertrand 8699:   ac_cv_type_signal=void
1.1       bertrand 8700: fi
1.15      bertrand 8701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8702: fi
1.15      bertrand 8703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8704: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8705: 
1.15      bertrand 8706: cat >>confdefs.h <<_ACEOF
                   8707: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8708: _ACEOF
1.1       bertrand 8709: 
1.15      bertrand 8710: 
                   8711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8712: $as_echo_n "checking for working strcoll... " >&6; }
                   8713: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8714:   $as_echo_n "(cached) " >&6
                   8715: else
                   8716:   if test "$cross_compiling" = yes; then :
                   8717:   ac_cv_func_strcoll_works=no
                   8718: else
                   8719:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8720: /* end confdefs.h.  */
                   8721: $ac_includes_default
                   8722: int
                   8723: main ()
                   8724: {
                   8725: return (strcoll ("abc", "def") >= 0 ||
                   8726:     strcoll ("ABC", "DEF") >= 0 ||
                   8727:     strcoll ("123", "456") >= 0)
                   8728:   ;
                   8729:   return 0;
                   8730: }
                   8731: _ACEOF
                   8732: if ac_fn_c_try_run "$LINENO"; then :
                   8733:   ac_cv_func_strcoll_works=yes
                   8734: else
                   8735:   ac_cv_func_strcoll_works=no
                   8736: fi
                   8737: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8738:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8739: fi
1.1       bertrand 8740: 
                   8741: fi
1.15      bertrand 8742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   8743: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   8744: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 8745: 
1.15      bertrand 8746: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 8747: 
1.15      bertrand 8748: fi
1.1       bertrand 8749: 
1.15      bertrand 8750: for ac_func in strftime
                   8751: do :
                   8752:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   8753: if test "x$ac_cv_func_strftime" = x""yes; then :
                   8754:   cat >>confdefs.h <<_ACEOF
                   8755: #define HAVE_STRFTIME 1
                   8756: _ACEOF
1.1       bertrand 8757: 
                   8758: else
1.15      bertrand 8759:   # strftime is in -lintl on SCO UNIX.
                   8760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   8761: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   8762: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   8763:   $as_echo_n "(cached) " >&6
                   8764: else
                   8765:   ac_check_lib_save_LIBS=$LIBS
                   8766: LIBS="-lintl  $LIBS"
                   8767: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8768: /* end confdefs.h.  */
                   8769: 
                   8770: /* Override any GCC internal prototype to avoid an error.
                   8771:    Use char because int might match the return type of a GCC
                   8772:    builtin and then its argument prototype would still apply.  */
                   8773: #ifdef __cplusplus
                   8774: extern "C"
                   8775: #endif
1.15      bertrand 8776: char strftime ();
1.1       bertrand 8777: int
                   8778: main ()
                   8779: {
1.15      bertrand 8780: return strftime ();
1.1       bertrand 8781:   ;
                   8782:   return 0;
                   8783: }
                   8784: _ACEOF
1.15      bertrand 8785: if ac_fn_c_try_link "$LINENO"; then :
                   8786:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 8787: else
1.15      bertrand 8788:   ac_cv_lib_intl_strftime=no
                   8789: fi
                   8790: rm -f core conftest.err conftest.$ac_objext \
                   8791:     conftest$ac_exeext conftest.$ac_ext
                   8792: LIBS=$ac_check_lib_save_LIBS
                   8793: fi
                   8794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   8795: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   8796: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   8797:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   8798: 
                   8799: LIBS="-lintl $LIBS"
                   8800: fi
                   8801: 
                   8802: fi
                   8803: done
                   8804: 
                   8805: for ac_func in vprintf
                   8806: do :
                   8807:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   8808: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   8809:   cat >>confdefs.h <<_ACEOF
                   8810: #define HAVE_VPRINTF 1
                   8811: _ACEOF
                   8812: 
                   8813: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   8814: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   8815: 
                   8816: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 8817: 
                   8818: fi
                   8819: 
                   8820: fi
1.15      bertrand 8821: done
                   8822: 
                   8823: 
                   8824: for ac_func in ftime getcwd putenv select strcspn strdup \
                   8825:        strerror strspn strstr strtod
                   8826: do :
                   8827:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8828: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   8829: eval as_val=\$$as_ac_var
                   8830:    if test "x$as_val" = x""yes; then :
1.1       bertrand 8831:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 8832: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 8833: _ACEOF
                   8834: 
                   8835: fi
                   8836: done
                   8837: 
                   8838: 
1.18      bertrand 8839: ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static"
1.17      bertrand 8840: 
1.15      bertrand 8841: 
                   8842: 
1.1       bertrand 8843: subdirs="$subdirs tools/$NCURSES"
                   8844: 
                   8845: subdirs="$subdirs tools/$READLINE"
                   8846: 
                   8847: subdirs="$subdirs tools/$GSL"
                   8848: 
                   8849: subdirs="$subdirs tools/$GPP"
                   8850: 
                   8851: subdirs="$subdirs tools/$FILE"
                   8852: 
                   8853: subdirs="$subdirs tools/$ICONV"
                   8854: 
1.9       bertrand 8855: subdirs="$subdirs tools/$SQLITE"
                   8856: 
1.17      bertrand 8857: subdirs="$subdirs tools/$UNITS"
                   8858: 
1.15      bertrand 8859: 
                   8860: 
                   8861: # Check whether --with-openssl_arch was given.
                   8862: if test "${with_openssl_arch+set}" = set; then :
                   8863:   withval=$with_openssl_arch;
                   8864: else
                   8865:   with_openssl_arch=none
                   8866: fi
                   8867: 
                   8868: 
                   8869: if test "x$with_openssl_arch" = xnone; then
                   8870:    (cd tools/$OPENSSL && ./config)
                   8871: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   8872:    (cd tools/$OPENSSL && ./Configure)
                   8873:    as_fn_error "OS/COMP informations are required!" "$LINENO" 5
                   8874: elif test "x$with_openssl_arch" = xlist; then
                   8875:    (cd tools/$OPENSSL && ./Configure)
                   8876:    as_fn_error "Please specify OS and Architecture" "$LINENO" 5
                   8877: else
                   8878:    (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   8879: fi
1.1       bertrand 8880: 
                   8881: if test "$MYGNUPLOT" = "yes"; then
                   8882:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   8883:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   8884:                (cd "$srcdir/tools" && tar -xf -)
                   8885:    fi
                   8886:    subdirs="$subdirs tools/$GNUPLOT"
                   8887: 
                   8888:    GNUPLOT_COMPILATION=$GNUPLOT
                   8889: else
                   8890:    GNUPLOT_COMPILATION=
                   8891: fi
                   8892: 
                   8893: 
                   8894: 
                   8895: case $host_cpu in
                   8896: 
                   8897:     i?86)
                   8898:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8899:            -Wno-pointer-sign"
                   8900:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8901:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8902:    break ;;
                   8903: 
                   8904:    x86_64*)
                   8905:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8906:            -Wno-pointer-sign"
                   8907:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8908:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8909:    break ;;
                   8910: 
                   8911:     alpha*)
                   8912:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   8913:            -Wno-pointer-sign"
                   8914:    FFLAGS="$FFLAGS -mieee -Wall"
                   8915:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   8916:    break ;;
                   8917: 
                   8918:     sparc*)
                   8919:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   8920:            -Wno-pointer-sign"
                   8921:    FFLAGS="$FFLAGS -Wall"
                   8922:    FCFLAGS="$FCFLAGS -Wall"
                   8923:    break ;;
                   8924: 
                   8925: esac
                   8926: 
1.8       bertrand 8927: case $host_os in
                   8928: 
                   8929:    cygwin*)
                   8930:        OS=Cygwin
                   8931:    break ;;
                   8932: 
                   8933:    interix*)
                   8934:        OS=Interix
                   8935:    break ;;
                   8936: 
                   8937:    *)
                   8938:        OS=$(uname)
                   8939:    break ;;
                   8940: 
                   8941: esac
                   8942: 
                   8943: 
                   8944: 
1.1       bertrand 8945: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   8946: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                   8947: 
1.17      bertrand 8948: case $(OS) in
                   8949: 
                   8950:     Darwin)
                   8951:        EXPORT_DYNAMIC=-flat_namespace
                   8952:        NESTED_FUNCTIONS=-fnested-functions
                   8953:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
                   8954:    break ;;
                   8955: 
                   8956:    Cygwin)
                   8957:        EXPORT_DYNAMIC=--export-all-symbols
                   8958:        NESTED_FUNCTIONS=
                   8959:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   8960:    break ;;
                   8961: 
1.18      bertrand 8962:    AIX)
                   8963:        EXPORT_DYNAMIC=--export-dynamic
                   8964:        NESTED_FUNCTIONS=
                   8965:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
                   8966:    break ;;
                   8967: 
1.17      bertrand 8968:     *)
                   8969:        EXPORT_DYNAMIC=--export-dynamic
                   8970:        NESTED_FUNCTIONS=
                   8971:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   8972:    break ;;
                   8973: 
                   8974: esac
                   8975: 
                   8976: 
                   8977: 
                   8978: 
1.1       bertrand 8979: 
                   8980: 
                   8981: 
                   8982: 
                   8983: 
                   8984: 
                   8985: 
                   8986: 
                   8987: 
                   8988: 
                   8989: 
                   8990: 
                   8991: 
                   8992: 
                   8993: 
                   8994: 
                   8995: 
                   8996: 
                   8997: 
1.9       bertrand 8998: 
1.1       bertrand 8999: ac_config_files="$ac_config_files Makefile"
                   9000: 
                   9001: ac_config_files="$ac_config_files COPYING"
                   9002: 
                   9003: ac_config_files="$ac_config_files tools/Makefile"
                   9004: 
                   9005: ac_config_files="$ac_config_files src/Makefile"
                   9006: 
                   9007: ac_config_files="$ac_config_files man/Makefile"
                   9008: 
                   9009: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9010: 
                   9011: ac_config_files="$ac_config_files doc/Makefile"
                   9012: 
                   9013: ac_config_files="$ac_config_files scripts/Makefile"
                   9014: 
                   9015: ac_config_files="$ac_config_files scripts/mkrplso"
                   9016: 
                   9017: ac_config_files="$ac_config_files scripts/rplcc"
                   9018: 
                   9019: ac_config_files="$ac_config_files scripts/rpllink"
                   9020: 
                   9021: ac_config_files="$ac_config_files rpltags/Makefile"
                   9022: 
                   9023: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9024: 
1.9       bertrand 9025: ac_config_files="$ac_config_files rplsums/Makefile"
                   9026: 
1.1       bertrand 9027: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9028: 
                   9029: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9030: 
1.20      bertrand 9031: ac_config_files="$ac_config_files ptmalloc3/Makefile"
                   9032: 
1.1       bertrand 9033: 
                   9034: ac_config_files="$ac_config_files man/rpl.1"
                   9035: 
                   9036: ac_config_files="$ac_config_files man/rplcc.1"
                   9037: 
                   9038: ac_config_files="$ac_config_files man/rpllink.1"
                   9039: 
                   9040: ac_config_files="$ac_config_files man/rpltags.1"
                   9041: 
                   9042: ac_config_files="$ac_config_files man/mkrplso.1"
                   9043: 
                   9044: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9045: 
                   9046: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9047: 
                   9048: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9049: 
                   9050: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9051: 
                   9052: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9053: 
                   9054: 
                   9055: cat >confcache <<\_ACEOF
                   9056: # This file is a shell script that caches the results of configure
                   9057: # tests run on this system so they can be shared between configure
                   9058: # scripts and configure runs, see configure's option --config-cache.
                   9059: # It is not useful on other systems.  If it contains results you don't
                   9060: # want to keep, you may remove or edit it.
                   9061: #
                   9062: # config.status only pays attention to the cache file if you give it
                   9063: # the --recheck option to rerun configure.
                   9064: #
                   9065: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9066: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9067: # following values.
                   9068: 
                   9069: _ACEOF
                   9070: 
                   9071: # The following way of writing the cache mishandles newlines in values,
                   9072: # but we know of no workaround that is simple, portable, and efficient.
                   9073: # So, we kill variables containing newlines.
                   9074: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9075: # and sets the high bit in the cache file unless we assign to the vars.
                   9076: (
                   9077:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9078:     eval ac_val=\$$ac_var
                   9079:     case $ac_val in #(
                   9080:     *${as_nl}*)
                   9081:       case $ac_var in #(
1.15      bertrand 9082:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9083: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9084:       esac
                   9085:       case $ac_var in #(
                   9086:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9087:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9088:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9089:       esac ;;
                   9090:     esac
                   9091:   done
                   9092: 
                   9093:   (set) 2>&1 |
                   9094:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9095:     *${as_nl}ac_space=\ *)
1.15      bertrand 9096:       # `set' does not quote correctly, so add quotes: double-quote
                   9097:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9098:       sed -n \
                   9099:    "s/'/'\\\\''/g;
                   9100:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9101:       ;; #(
                   9102:     *)
                   9103:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9104:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9105:       ;;
                   9106:     esac |
                   9107:     sort
                   9108: ) |
                   9109:   sed '
                   9110:      /^ac_cv_env_/b end
                   9111:      t clear
                   9112:      :clear
                   9113:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9114:      t end
                   9115:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9116:      :end' >>confcache
                   9117: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9118:   if test -w "$cache_file"; then
                   9119:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9120:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9121: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9122:     cat confcache >$cache_file
                   9123:   else
1.15      bertrand 9124:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9125: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9126:   fi
                   9127: fi
                   9128: rm -f confcache
                   9129: 
                   9130: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9131: # Let make expand exec_prefix.
                   9132: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9133: 
                   9134: DEFS=-DHAVE_CONFIG_H
                   9135: 
                   9136: ac_libobjs=
                   9137: ac_ltlibobjs=
                   9138: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9139:   # 1. Remove the extension, and $U if already installed.
                   9140:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9141:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9142:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9143:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9144:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9145:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9146: done
                   9147: LIBOBJS=$ac_libobjs
                   9148: 
                   9149: LTLIBOBJS=$ac_ltlibobjs
                   9150: 
                   9151: 
1.15      bertrand 9152:  if test -n "$EXEEXT"; then
                   9153:   am__EXEEXT_TRUE=
                   9154:   am__EXEEXT_FALSE='#'
                   9155: else
                   9156:   am__EXEEXT_TRUE='#'
                   9157:   am__EXEEXT_FALSE=
                   9158: fi
                   9159: 
1.1       bertrand 9160: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.15      bertrand 9161:   as_fn_error "conditional \"AMDEP\" was never defined.
                   9162: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9163: fi
                   9164: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.15      bertrand 9165:   as_fn_error "conditional \"am__fastdepCC\" was never defined.
                   9166: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9167: fi
                   9168: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.15      bertrand 9169:   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
                   9170: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9171: fi
                   9172: 
                   9173: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9174: ac_write_fail=0
1.1       bertrand 9175: ac_clean_files_save=$ac_clean_files
                   9176: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9177: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9178: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9179: as_write_fail=0
                   9180: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9181: #! $SHELL
                   9182: # Generated by $as_me.
                   9183: # Run this file to recreate the current configuration.
                   9184: # Compiler output produced by configure, useful for debugging
                   9185: # configure, is in config.log if it exists.
                   9186: 
                   9187: debug=false
                   9188: ac_cs_recheck=false
                   9189: ac_cs_silent=false
1.15      bertrand 9190: 
1.14      bertrand 9191: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9192: export SHELL
                   9193: _ASEOF
                   9194: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9195: ## -------------------- ##
                   9196: ## M4sh Initialization. ##
                   9197: ## -------------------- ##
1.1       bertrand 9198: 
                   9199: # Be more Bourne compatible
                   9200: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9201: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9202:   emulate sh
                   9203:   NULLCMD=:
1.15      bertrand 9204:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9205:   # is contrary to our usage.  Disable this feature.
                   9206:   alias -g '${1+"$@"}'='"$@"'
                   9207:   setopt NO_GLOB_SUBST
                   9208: else
1.15      bertrand 9209:   case `(set -o) 2>/dev/null` in #(
                   9210:   *posix*) :
                   9211:     set -o posix ;; #(
                   9212:   *) :
                   9213:      ;;
1.1       bertrand 9214: esac
                   9215: fi
                   9216: 
                   9217: 
1.15      bertrand 9218: as_nl='
                   9219: '
                   9220: export as_nl
                   9221: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9222: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9223: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9224: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9225: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9226: # but without wasting forks for bash or zsh.
                   9227: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9228:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9229:   as_echo='print -r --'
                   9230:   as_echo_n='print -rn --'
                   9231: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9232:   as_echo='printf %s\n'
                   9233:   as_echo_n='printf %s'
                   9234: else
                   9235:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9236:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9237:     as_echo_n='/usr/ucb/echo -n'
                   9238:   else
                   9239:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9240:     as_echo_n_body='eval
                   9241:       arg=$1;
                   9242:       case $arg in #(
                   9243:       *"$as_nl"*)
                   9244:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9245:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9246:       esac;
                   9247:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9248:     '
                   9249:     export as_echo_n_body
                   9250:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9251:   fi
                   9252:   export as_echo_body
                   9253:   as_echo='sh -c $as_echo_body as_echo'
                   9254: fi
1.14      bertrand 9255: 
                   9256: # The user is always right.
                   9257: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9258:   PATH_SEPARATOR=:
                   9259:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9260:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9261:       PATH_SEPARATOR=';'
                   9262:   }
1.1       bertrand 9263: fi
                   9264: 
                   9265: 
                   9266: # IFS
                   9267: # We need space, tab and new line, in precisely that order.  Quoting is
                   9268: # there to prevent editors from complaining about space-tab.
                   9269: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9270: # splitting by setting IFS to empty value.)
                   9271: IFS=" ""   $as_nl"
                   9272: 
                   9273: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9274: case $0 in #((
1.1       bertrand 9275:   *[\\/]* ) as_myself=$0 ;;
                   9276:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9277: for as_dir in $PATH
                   9278: do
                   9279:   IFS=$as_save_IFS
                   9280:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9281:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9282:   done
1.1       bertrand 9283: IFS=$as_save_IFS
                   9284: 
                   9285:      ;;
                   9286: esac
                   9287: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9288: # in which case we are not to be found in the path.
                   9289: if test "x$as_myself" = x; then
                   9290:   as_myself=$0
                   9291: fi
                   9292: if test ! -f "$as_myself"; then
1.15      bertrand 9293:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9294:   exit 1
1.1       bertrand 9295: fi
                   9296: 
1.15      bertrand 9297: # Unset variables that we do not need and which cause bugs (e.g. in
                   9298: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9299: # suppresses any "Segmentation fault" message there.  '((' could
                   9300: # trigger a bug in pdksh 5.2.14.
                   9301: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9302: do eval test x\${$as_var+set} = xset \
                   9303:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9304: done
                   9305: PS1='$ '
                   9306: PS2='> '
                   9307: PS4='+ '
                   9308: 
                   9309: # NLS nuisances.
1.15      bertrand 9310: LC_ALL=C
                   9311: export LC_ALL
                   9312: LANGUAGE=C
                   9313: export LANGUAGE
                   9314: 
                   9315: # CDPATH.
                   9316: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9317: 
                   9318: 
                   9319: # as_fn_error ERROR [LINENO LOG_FD]
                   9320: # ---------------------------------
                   9321: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9322: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   9323: # script with status $?, using 1 if that was 0.
                   9324: as_fn_error ()
                   9325: {
                   9326:   as_status=$?; test $as_status -eq 0 && as_status=1
                   9327:   if test "$3"; then
                   9328:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9329:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                   9330:   fi
                   9331:   $as_echo "$as_me: error: $1" >&2
                   9332:   as_fn_exit $as_status
                   9333: } # as_fn_error
                   9334: 
                   9335: 
                   9336: # as_fn_set_status STATUS
                   9337: # -----------------------
                   9338: # Set $? to STATUS, without forking.
                   9339: as_fn_set_status ()
                   9340: {
                   9341:   return $1
                   9342: } # as_fn_set_status
                   9343: 
                   9344: # as_fn_exit STATUS
                   9345: # -----------------
                   9346: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9347: as_fn_exit ()
                   9348: {
                   9349:   set +e
                   9350:   as_fn_set_status $1
                   9351:   exit $1
                   9352: } # as_fn_exit
                   9353: 
                   9354: # as_fn_unset VAR
                   9355: # ---------------
                   9356: # Portably unset VAR.
                   9357: as_fn_unset ()
                   9358: {
                   9359:   { eval $1=; unset $1;}
                   9360: }
                   9361: as_unset=as_fn_unset
                   9362: # as_fn_append VAR VALUE
                   9363: # ----------------------
                   9364: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9365: # advantage of any shell optimizations that allow amortized linear growth over
                   9366: # repeated appends, instead of the typical quadratic growth present in naive
                   9367: # implementations.
                   9368: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9369:   eval 'as_fn_append ()
                   9370:   {
                   9371:     eval $1+=\$2
                   9372:   }'
                   9373: else
                   9374:   as_fn_append ()
                   9375:   {
                   9376:     eval $1=\$$1\$2
                   9377:   }
                   9378: fi # as_fn_append
                   9379: 
                   9380: # as_fn_arith ARG...
                   9381: # ------------------
                   9382: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9383: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9384: # must be portable across $(()) and expr.
                   9385: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9386:   eval 'as_fn_arith ()
                   9387:   {
                   9388:     as_val=$(( $* ))
                   9389:   }'
                   9390: else
                   9391:   as_fn_arith ()
                   9392:   {
                   9393:     as_val=`expr "$@" || test $? -eq 1`
                   9394:   }
                   9395: fi # as_fn_arith
                   9396: 
1.1       bertrand 9397: 
                   9398: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9399:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9400:   as_expr=expr
                   9401: else
                   9402:   as_expr=false
                   9403: fi
                   9404: 
                   9405: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9406:   as_basename=basename
                   9407: else
                   9408:   as_basename=false
                   9409: fi
                   9410: 
1.15      bertrand 9411: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9412:   as_dirname=dirname
                   9413: else
                   9414:   as_dirname=false
                   9415: fi
1.1       bertrand 9416: 
                   9417: as_me=`$as_basename -- "$0" ||
                   9418: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9419:     X"$0" : 'X\(//\)$' \| \
                   9420:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9421: $as_echo X/"$0" |
1.1       bertrand 9422:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9423:        s//\1/
                   9424:        q
                   9425:      }
                   9426:      /^X\/\(\/\/\)$/{
                   9427:        s//\1/
                   9428:        q
                   9429:      }
                   9430:      /^X\/\(\/\).*/{
                   9431:        s//\1/
                   9432:        q
                   9433:      }
1.14      bertrand 9434:      s/.*/./; q'`
                   9435: 
1.15      bertrand 9436: # Avoid depending upon Character Ranges.
                   9437: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9438: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9439: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9440: as_cr_digits='0123456789'
                   9441: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9442: 
                   9443: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9444: case `echo -n x` in #(((((
1.1       bertrand 9445: -n*)
1.15      bertrand 9446:   case `echo 'xy\c'` in
1.1       bertrand 9447:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9448:   xy)  ECHO_C='\c';;
                   9449:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9450:        ECHO_T='    ';;
1.1       bertrand 9451:   esac;;
                   9452: *)
                   9453:   ECHO_N='-n';;
                   9454: esac
                   9455: 
                   9456: rm -f conf$$ conf$$.exe conf$$.file
                   9457: if test -d conf$$.dir; then
                   9458:   rm -f conf$$.dir/conf$$.file
                   9459: else
                   9460:   rm -f conf$$.dir
1.15      bertrand 9461:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9462: fi
1.15      bertrand 9463: if (echo >conf$$.file) 2>/dev/null; then
                   9464:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9465:     as_ln_s='ln -s'
                   9466:     # ... but there are two gotchas:
                   9467:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9468:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9469:     # In both cases, we have to default to `cp -p'.
                   9470:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9471:       as_ln_s='cp -p'
                   9472:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9473:     as_ln_s=ln
                   9474:   else
1.1       bertrand 9475:     as_ln_s='cp -p'
1.15      bertrand 9476:   fi
1.1       bertrand 9477: else
                   9478:   as_ln_s='cp -p'
                   9479: fi
                   9480: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9481: rmdir conf$$.dir 2>/dev/null
                   9482: 
1.15      bertrand 9483: 
                   9484: # as_fn_mkdir_p
                   9485: # -------------
                   9486: # Create "$as_dir" as a directory, including parents if necessary.
                   9487: as_fn_mkdir_p ()
                   9488: {
                   9489: 
                   9490:   case $as_dir in #(
                   9491:   -*) as_dir=./$as_dir;;
                   9492:   esac
                   9493:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9494:     as_dirs=
                   9495:     while :; do
                   9496:       case $as_dir in #(
                   9497:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9498:       *) as_qdir=$as_dir;;
                   9499:       esac
                   9500:       as_dirs="'$as_qdir' $as_dirs"
                   9501:       as_dir=`$as_dirname -- "$as_dir" ||
                   9502: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9503:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9504:     X"$as_dir" : 'X\(//\)$' \| \
                   9505:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9506: $as_echo X"$as_dir" |
                   9507:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9508:        s//\1/
                   9509:        q
                   9510:      }
                   9511:      /^X\(\/\/\)[^/].*/{
                   9512:        s//\1/
                   9513:        q
                   9514:      }
                   9515:      /^X\(\/\/\)$/{
                   9516:        s//\1/
                   9517:        q
                   9518:      }
                   9519:      /^X\(\/\).*/{
                   9520:        s//\1/
                   9521:        q
                   9522:      }
                   9523:      s/.*/./; q'`
                   9524:       test -d "$as_dir" && break
                   9525:     done
                   9526:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   9527:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
                   9528: 
                   9529: 
                   9530: } # as_fn_mkdir_p
1.1       bertrand 9531: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9532:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9533: else
                   9534:   test -d ./-p && rmdir ./-p
                   9535:   as_mkdir_p=false
                   9536: fi
                   9537: 
                   9538: if test -x / >/dev/null 2>&1; then
                   9539:   as_test_x='test -x'
                   9540: else
                   9541:   if ls -dL / >/dev/null 2>&1; then
                   9542:     as_ls_L_option=L
                   9543:   else
                   9544:     as_ls_L_option=
                   9545:   fi
                   9546:   as_test_x='
                   9547:     eval sh -c '\''
                   9548:       if test -d "$1"; then
1.15      bertrand 9549:    test -d "$1/.";
1.1       bertrand 9550:       else
1.15      bertrand 9551:    case $1 in #(
                   9552:    -*)set "./$1";;
1.1       bertrand 9553:    esac;
1.15      bertrand 9554:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9555:    ???[sx]*):;;*)false;;esac;fi
                   9556:     '\'' sh
                   9557:   '
                   9558: fi
                   9559: as_executable_p=$as_test_x
                   9560: 
                   9561: # Sed expression to map a string onto a valid CPP name.
                   9562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9563: 
                   9564: # Sed expression to map a string onto a valid variable name.
                   9565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9566: 
                   9567: 
                   9568: exec 6>&1
1.15      bertrand 9569: ## ----------------------------------- ##
                   9570: ## Main body of $CONFIG_STATUS script. ##
                   9571: ## ----------------------------------- ##
                   9572: _ASEOF
                   9573: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9574: 
1.15      bertrand 9575: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9576: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9577: # report actual input values of CONFIG_FILES etc. instead of their
                   9578: # values after options handling.
                   9579: ac_log="
1.19      bertrand 9580: This file was extended by rpl $as_me 4.0.15, which was
1.15      bertrand 9581: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 9582: 
                   9583:   CONFIG_FILES    = $CONFIG_FILES
                   9584:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9585:   CONFIG_LINKS    = $CONFIG_LINKS
                   9586:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9587:   $ $0 $@
                   9588: 
                   9589: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9590: "
                   9591: 
                   9592: _ACEOF
                   9593: 
1.15      bertrand 9594: case $ac_config_files in *"
                   9595: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9596: esac
                   9597: 
                   9598: case $ac_config_headers in *"
                   9599: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9600: esac
                   9601: 
                   9602: 
                   9603: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9604: # Files that config.status was made for.
                   9605: config_files="$ac_config_files"
                   9606: config_headers="$ac_config_headers"
                   9607: config_commands="$ac_config_commands"
                   9608: 
                   9609: _ACEOF
                   9610: 
1.15      bertrand 9611: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9612: ac_cs_usage="\
1.15      bertrand 9613: \`$as_me' instantiates files and other configuration actions
                   9614: from templates according to the current configuration.  Unless the files
                   9615: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9616: 
1.15      bertrand 9617: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9618: 
                   9619:   -h, --help       print this help, then exit
                   9620:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9621:       --config     print configuration, then exit
                   9622:   -q, --quiet, --silent
                   9623:                    do not print progress messages
1.1       bertrand 9624:   -d, --debug      don't remove temporary files
                   9625:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9626:       --file=FILE[:TEMPLATE]
                   9627:                    instantiate the configuration file FILE
                   9628:       --header=FILE[:TEMPLATE]
                   9629:                    instantiate the configuration header FILE
1.1       bertrand 9630: 
                   9631: Configuration files:
                   9632: $config_files
                   9633: 
                   9634: Configuration headers:
                   9635: $config_headers
                   9636: 
                   9637: Configuration commands:
                   9638: $config_commands
                   9639: 
1.15      bertrand 9640: Report bugs to the package provider."
1.1       bertrand 9641: 
                   9642: _ACEOF
1.15      bertrand 9643: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9644: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 9645: ac_cs_version="\\
1.19      bertrand 9646: rpl config.status 4.0.15
1.15      bertrand 9647: configured by $0, generated by GNU Autoconf 2.65,
                   9648:   with options \\"\$ac_cs_config\\"
1.1       bertrand 9649: 
1.15      bertrand 9650: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 9651: This config.status script is free software; the Free Software Foundation
                   9652: gives unlimited permission to copy, distribute and modify it."
                   9653: 
                   9654: ac_pwd='$ac_pwd'
                   9655: srcdir='$srcdir'
                   9656: INSTALL='$INSTALL'
                   9657: MKDIR_P='$MKDIR_P'
1.15      bertrand 9658: AWK='$AWK'
                   9659: test -n "\$AWK" || AWK=awk
1.1       bertrand 9660: _ACEOF
                   9661: 
1.15      bertrand 9662: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9663: # The default lists apply if the user does not specify any file.
1.1       bertrand 9664: ac_need_defaults=:
                   9665: while test $# != 0
                   9666: do
                   9667:   case $1 in
                   9668:   --*=*)
                   9669:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9670:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9671:     ac_shift=:
                   9672:     ;;
                   9673:   *)
                   9674:     ac_option=$1
                   9675:     ac_optarg=$2
                   9676:     ac_shift=shift
                   9677:     ;;
                   9678:   esac
                   9679: 
                   9680:   case $ac_option in
                   9681:   # Handling of the options.
                   9682:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9683:     ac_cs_recheck=: ;;
                   9684:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 9685:     $as_echo "$ac_cs_version"; exit ;;
                   9686:   --config | --confi | --conf | --con | --co | --c )
                   9687:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 9688:   --debug | --debu | --deb | --de | --d | -d )
                   9689:     debug=: ;;
                   9690:   --file | --fil | --fi | --f )
                   9691:     $ac_shift
1.15      bertrand 9692:     case $ac_optarg in
                   9693:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9694:     esac
                   9695:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 9696:     ac_need_defaults=false;;
                   9697:   --header | --heade | --head | --hea )
                   9698:     $ac_shift
1.15      bertrand 9699:     case $ac_optarg in
                   9700:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9701:     esac
                   9702:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 9703:     ac_need_defaults=false;;
                   9704:   --he | --h)
                   9705:     # Conflict between --help and --header
1.15      bertrand 9706:     as_fn_error "ambiguous option: \`$1'
                   9707: Try \`$0 --help' for more information.";;
1.1       bertrand 9708:   --help | --hel | -h )
1.15      bertrand 9709:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 9710:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9711:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9712:     ac_cs_silent=: ;;
                   9713: 
                   9714:   # This is an error.
1.15      bertrand 9715:   -*) as_fn_error "unrecognized option: \`$1'
                   9716: Try \`$0 --help' for more information." ;;
1.1       bertrand 9717: 
1.15      bertrand 9718:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 9719:      ac_need_defaults=false ;;
                   9720: 
                   9721:   esac
                   9722:   shift
                   9723: done
                   9724: 
                   9725: ac_configure_extra_args=
                   9726: 
                   9727: if $ac_cs_silent; then
                   9728:   exec 6>/dev/null
                   9729:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9730: fi
                   9731: 
                   9732: _ACEOF
1.15      bertrand 9733: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9734: if \$ac_cs_recheck; then
1.15      bertrand 9735:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   9736:   shift
                   9737:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   9738:   CONFIG_SHELL='$SHELL'
1.1       bertrand 9739:   export CONFIG_SHELL
1.15      bertrand 9740:   exec "\$@"
1.1       bertrand 9741: fi
                   9742: 
                   9743: _ACEOF
1.15      bertrand 9744: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9745: exec 5>>config.log
                   9746: {
                   9747:   echo
                   9748:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9749: ## Running $as_me. ##
                   9750: _ASBOX
1.15      bertrand 9751:   $as_echo "$ac_log"
1.1       bertrand 9752: } >&5
                   9753: 
                   9754: _ACEOF
1.15      bertrand 9755: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9756: #
                   9757: # INIT-COMMANDS
                   9758: #
                   9759: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   9760: 
                   9761: _ACEOF
                   9762: 
1.15      bertrand 9763: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9764: 
                   9765: # Handling of arguments.
                   9766: for ac_config_target in $ac_config_targets
                   9767: do
                   9768:   case $ac_config_target in
                   9769:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   9770:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   9771:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   9772:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   9773:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   9774:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   9775:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   9776:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   9777:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   9778:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   9779:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   9780:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   9781:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   9782:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   9783:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 9784:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.1       bertrand 9785:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   9786:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20      bertrand 9787:     "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1       bertrand 9788:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   9789:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   9790:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   9791:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   9792:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   9793:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   9794:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   9795:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   9796:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   9797:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   9798: 
1.15      bertrand 9799:   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 9800:   esac
                   9801: done
                   9802: 
                   9803: 
                   9804: # If the user did not use the arguments to specify the items to instantiate,
                   9805: # then the envvar interface is used.  Set only those that are not.
                   9806: # We use the long form for the default assignment because of an extremely
                   9807: # bizarre bug on SunOS 4.1.3.
                   9808: if $ac_need_defaults; then
                   9809:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   9810:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   9811:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   9812: fi
                   9813: 
                   9814: # Have a temporary directory for convenience.  Make it in the build tree
                   9815: # simply because there is no reason against having it here, and in addition,
                   9816: # creating and moving files from /tmp can sometimes cause problems.
                   9817: # Hook for its removal unless debugging.
                   9818: # Note that there is a small window in which the directory will not be cleaned:
                   9819: # after its creation but before its name has been assigned to `$tmp'.
                   9820: $debug ||
                   9821: {
                   9822:   tmp=
                   9823:   trap 'exit_status=$?
                   9824:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   9825: ' 0
1.15      bertrand 9826:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 9827: }
                   9828: # Create a (secure) tmp directory for tmp files.
                   9829: 
                   9830: {
                   9831:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   9832:   test -n "$tmp" && test -d "$tmp"
                   9833: }  ||
                   9834: {
                   9835:   tmp=./conf$$-$RANDOM
                   9836:   (umask 077 && mkdir "$tmp")
1.15      bertrand 9837: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
                   9838: 
                   9839: # Set up the scripts for CONFIG_FILES section.
                   9840: # No need to generate them if there are no CONFIG_FILES.
                   9841: # This happens for instance with `./config.status config.h'.
                   9842: if test -n "$CONFIG_FILES"; then
1.14      bertrand 9843: 
1.1       bertrand 9844: 
1.15      bertrand 9845: ac_cr=`echo X | tr X '\015'`
                   9846: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   9847: # But we know of no other shell where ac_cr would be empty at this
                   9848: # point, so we can use a bashism as a fallback.
                   9849: if test "x$ac_cr" = x; then
                   9850:   eval ac_cr=\$\'\\r\'
                   9851: fi
                   9852: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   9853: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   9854:   ac_cs_awk_cr='\r'
                   9855: else
                   9856:   ac_cs_awk_cr=$ac_cr
                   9857: fi
1.1       bertrand 9858: 
1.15      bertrand 9859: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 9860: _ACEOF
                   9861: 
                   9862: 
1.15      bertrand 9863: {
                   9864:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   9865:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   9866:   echo "_ACEOF"
                   9867: } >conf$$subs.sh ||
                   9868:   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
                   9869: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.14      bertrand 9870: ac_delim='%!_!# '
                   9871: for ac_last_try in false false false false false :; do
1.15      bertrand 9872:   . ./conf$$subs.sh ||
                   9873:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9874: 
1.15      bertrand 9875:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   9876:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 9877:     break
                   9878:   elif $ac_last_try; then
1.15      bertrand 9879:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9880:   else
                   9881:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   9882:   fi
                   9883: done
1.15      bertrand 9884: rm -f conf$$subs.sh
1.1       bertrand 9885: 
1.15      bertrand 9886: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9887: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   9888: _ACEOF
                   9889: sed -n '
                   9890: h
                   9891: s/^/S["/; s/!.*/"]=/
                   9892: p
                   9893: g
                   9894: s/^[^!]*!//
                   9895: :repl
                   9896: t repl
                   9897: s/'"$ac_delim"'$//
                   9898: t delim
                   9899: :nl
                   9900: h
                   9901: s/\(.\{148\}\)..*/\1/
                   9902: t more1
                   9903: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   9904: p
                   9905: n
                   9906: b repl
                   9907: :more1
                   9908: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9909: p
                   9910: g
                   9911: s/.\{148\}//
                   9912: t nl
                   9913: :delim
                   9914: h
                   9915: s/\(.\{148\}\)..*/\1/
                   9916: t more2
                   9917: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   9918: p
                   9919: b
                   9920: :more2
                   9921: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9922: p
                   9923: g
                   9924: s/.\{148\}//
                   9925: t delim
                   9926: ' <conf$$subs.awk | sed '
                   9927: /^[^""]/{
                   9928:   N
                   9929:   s/\n//
                   9930: }
                   9931: ' >>$CONFIG_STATUS || ac_write_fail=1
                   9932: rm -f conf$$subs.awk
                   9933: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9934: _ACAWK
                   9935: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   9936:   for (key in S) S_is_set[key] = 1
                   9937:   FS = ""
1.1       bertrand 9938: 
1.15      bertrand 9939: }
                   9940: {
                   9941:   line = $ 0
                   9942:   nfields = split(line, field, "@")
                   9943:   substed = 0
                   9944:   len = length(field[1])
                   9945:   for (i = 2; i < nfields; i++) {
                   9946:     key = field[i]
                   9947:     keylen = length(key)
                   9948:     if (S_is_set[key]) {
                   9949:       value = S[key]
                   9950:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   9951:       len += length(value) + length(field[++i])
                   9952:       substed = 1
                   9953:     } else
                   9954:       len += 1 + keylen
                   9955:   }
1.1       bertrand 9956: 
1.15      bertrand 9957:   print line
                   9958: }
1.1       bertrand 9959: 
1.15      bertrand 9960: _ACAWK
1.14      bertrand 9961: _ACEOF
1.15      bertrand 9962: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9963: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   9964:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   9965: else
                   9966:   cat
                   9967: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
                   9968:   || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 9969: _ACEOF
                   9970: 
                   9971: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   9972: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   9973: # trailing colons and then remove the whole line if VPATH becomes empty
                   9974: # (actually we leave an empty line to preserve line numbers).
                   9975: if test "x$srcdir" = x.; then
                   9976:   ac_vpsub='/^[     ]*VPATH[    ]*=/{
                   9977: s/:*\$(srcdir):*/:/
                   9978: s/:*\${srcdir}:*/:/
                   9979: s/:*@srcdir@:*/:/
                   9980: s/^\([^=]*=[    ]*\):*/\1/
                   9981: s/:*$//
                   9982: s/^[^=]*=[  ]*$//
                   9983: }'
                   9984: fi
                   9985: 
1.15      bertrand 9986: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9987: fi # test -n "$CONFIG_FILES"
                   9988: 
1.15      bertrand 9989: # Set up the scripts for CONFIG_HEADERS section.
                   9990: # No need to generate them if there are no CONFIG_HEADERS.
                   9991: # This happens for instance with `./config.status Makefile'.
                   9992: if test -n "$CONFIG_HEADERS"; then
                   9993: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   9994: BEGIN {
                   9995: _ACEOF
                   9996: 
                   9997: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   9998: # here-document in config.status, that substitutes the proper values into
                   9999: # config.h.in to produce config.h.
                   10000: 
                   10001: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10002: # handling of long lines.
                   10003: ac_delim='%!_!# '
                   10004: for ac_last_try in false false :; do
                   10005:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10006:   if test -z "$ac_t"; then
                   10007:     break
                   10008:   elif $ac_last_try; then
                   10009:     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
                   10010:   else
                   10011:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10012:   fi
                   10013: done
                   10014: 
                   10015: # For the awk script, D is an array of macro values keyed by name,
                   10016: # likewise P contains macro parameters if any.  Preserve backslash
                   10017: # newline sequences.
                   10018: 
                   10019: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10020: sed -n '
                   10021: s/.\{148\}/&'"$ac_delim"'/g
                   10022: t rset
                   10023: :rset
                   10024: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10025: t def
                   10026: d
                   10027: :def
                   10028: s/\\$//
                   10029: t bsnl
                   10030: s/["\\]/\\&/g
                   10031: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10032: D["\1"]=" \3"/p
                   10033: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10034: d
                   10035: :bsnl
                   10036: s/["\\]/\\&/g
                   10037: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10038: D["\1"]=" \3\\\\\\n"\\/p
                   10039: t cont
                   10040: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10041: t cont
                   10042: d
                   10043: :cont
                   10044: n
                   10045: s/.\{148\}/&'"$ac_delim"'/g
                   10046: t clear
                   10047: :clear
                   10048: s/\\$//
                   10049: t bsnlc
                   10050: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10051: d
                   10052: :bsnlc
                   10053: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10054: b cont
                   10055: ' <confdefs.h | sed '
                   10056: s/'"$ac_delim"'/"\\\
                   10057: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10058: 
                   10059: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10060:   for (key in D) D_is_set[key] = 1
                   10061:   FS = ""
                   10062: }
                   10063: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10064:   line = \$ 0
                   10065:   split(line, arg, " ")
                   10066:   if (arg[1] == "#") {
                   10067:     defundef = arg[2]
                   10068:     mac1 = arg[3]
                   10069:   } else {
                   10070:     defundef = substr(arg[1], 2)
                   10071:     mac1 = arg[2]
                   10072:   }
                   10073:   split(mac1, mac2, "(") #)
                   10074:   macro = mac2[1]
                   10075:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10076:   if (D_is_set[macro]) {
                   10077:     # Preserve the white space surrounding the "#".
                   10078:     print prefix "define", macro P[macro] D[macro]
                   10079:     next
                   10080:   } else {
                   10081:     # Replace #undef with comments.  This is necessary, for example,
                   10082:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10083:     # on some systems where configure will not decide to define it.
                   10084:     if (defundef == "undef") {
                   10085:       print "/*", prefix defundef, macro, "*/"
                   10086:       next
                   10087:     }
                   10088:   }
                   10089: }
                   10090: { print }
                   10091: _ACAWK
                   10092: _ACEOF
                   10093: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10094:   as_fn_error "could not setup config headers machinery" "$LINENO" 5
                   10095: fi # test -n "$CONFIG_HEADERS"
                   10096: 
1.1       bertrand 10097: 
1.15      bertrand 10098: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10099: shift
                   10100: for ac_tag
1.1       bertrand 10101: do
                   10102:   case $ac_tag in
                   10103:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10104:   esac
                   10105:   case $ac_mode$ac_tag in
                   10106:   :[FHL]*:*);;
1.15      bertrand 10107:   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10108:   :[FH]-) ac_tag=-:-;;
                   10109:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10110:   esac
                   10111:   ac_save_IFS=$IFS
                   10112:   IFS=:
                   10113:   set x $ac_tag
                   10114:   IFS=$ac_save_IFS
                   10115:   shift
                   10116:   ac_file=$1
                   10117:   shift
                   10118: 
                   10119:   case $ac_mode in
                   10120:   :L) ac_source=$1;;
                   10121:   :[FH])
                   10122:     ac_file_inputs=
                   10123:     for ac_f
                   10124:     do
                   10125:       case $ac_f in
                   10126:       -) ac_f="$tmp/stdin";;
                   10127:       *) # Look for the file first in the build tree, then in the source tree
                   10128:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10129:     # because $ac_f cannot contain `:'.
                   10130:     test -f "$ac_f" ||
                   10131:       case $ac_f in
                   10132:       [\\/$]*) false;;
                   10133:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10134:       esac ||
1.15      bertrand 10135:       as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10136:       esac
1.15      bertrand 10137:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10138:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10139:     done
                   10140: 
                   10141:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10142:     # use $as_me), people would be surprised to read:
                   10143:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10144:     configure_input='Generated from '`
                   10145:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10146:    `' by configure.'
1.1       bertrand 10147:     if test x"$ac_file" != x-; then
                   10148:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10149:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10150: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10151:     fi
1.15      bertrand 10152:     # Neutralize special characters interpreted by sed in replacement strings.
                   10153:     case $configure_input in #(
                   10154:     *\&* | *\|* | *\\* )
                   10155:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10156:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10157:     *) ac_sed_conf_input=$configure_input;;
                   10158:     esac
1.1       bertrand 10159: 
                   10160:     case $ac_tag in
1.15      bertrand 10161:     *:-:* | *:-) cat >"$tmp/stdin" \
                   10162:       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10163:     esac
                   10164:     ;;
                   10165:   esac
                   10166: 
                   10167:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10168: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10169:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10170:     X"$ac_file" : 'X\(//\)$' \| \
                   10171:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10172: $as_echo X"$ac_file" |
1.1       bertrand 10173:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10174:        s//\1/
                   10175:        q
                   10176:      }
                   10177:      /^X\(\/\/\)[^/].*/{
                   10178:        s//\1/
                   10179:        q
                   10180:      }
                   10181:      /^X\(\/\/\)$/{
                   10182:        s//\1/
                   10183:        q
                   10184:      }
                   10185:      /^X\(\/\).*/{
                   10186:        s//\1/
                   10187:        q
                   10188:      }
                   10189:      s/.*/./; q'`
1.15      bertrand 10190:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10191:   ac_builddir=.
                   10192: 
                   10193: case "$ac_dir" in
                   10194: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10195: *)
1.15      bertrand 10196:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10197:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10198:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10199:   case $ac_top_builddir_sub in
                   10200:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10201:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10202:   esac ;;
                   10203: esac
                   10204: ac_abs_top_builddir=$ac_pwd
                   10205: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10206: # for backward compatibility:
                   10207: ac_top_builddir=$ac_top_build_prefix
                   10208: 
                   10209: case $srcdir in
                   10210:   .)  # We are building in place.
                   10211:     ac_srcdir=.
                   10212:     ac_top_srcdir=$ac_top_builddir_sub
                   10213:     ac_abs_top_srcdir=$ac_pwd ;;
                   10214:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10215:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10216:     ac_top_srcdir=$srcdir
                   10217:     ac_abs_top_srcdir=$srcdir ;;
                   10218:   *) # Relative name.
                   10219:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10220:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10221:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10222: esac
                   10223: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10224: 
                   10225: 
                   10226:   case $ac_mode in
                   10227:   :F)
                   10228:   #
                   10229:   # CONFIG_FILE
                   10230:   #
                   10231: 
                   10232:   case $INSTALL in
                   10233:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10234:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10235:   esac
                   10236:   ac_MKDIR_P=$MKDIR_P
                   10237:   case $MKDIR_P in
                   10238:   [\\/$]* | ?:[\\/]* ) ;;
                   10239:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10240:   esac
                   10241: _ACEOF
                   10242: 
1.15      bertrand 10243: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10244: # If the template does not know about datarootdir, expand it.
                   10245: # FIXME: This hack should be removed a few years after 2.60.
                   10246: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10247: ac_sed_dataroot='
                   10248: /datarootdir/ {
1.1       bertrand 10249:   p
                   10250:   q
                   10251: }
                   10252: /@datadir@/p
                   10253: /@docdir@/p
                   10254: /@infodir@/p
                   10255: /@localedir@/p
1.15      bertrand 10256: /@mandir@/p'
                   10257: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10258: *datarootdir*) ac_datarootdir_seen=yes;;
                   10259: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10260:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10261: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10262: _ACEOF
1.15      bertrand 10263: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10264:   ac_datarootdir_hack='
                   10265:   s&@datadir@&$datadir&g
                   10266:   s&@docdir@&$docdir&g
                   10267:   s&@infodir@&$infodir&g
                   10268:   s&@localedir@&$localedir&g
                   10269:   s&@mandir@&$mandir&g
1.15      bertrand 10270:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10271: esac
                   10272: _ACEOF
                   10273: 
                   10274: # Neutralize VPATH when `$srcdir' = `.'.
                   10275: # Shell code in configure.ac might set extrasub.
                   10276: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10277: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10278: ac_sed_extra="$ac_vpsub
1.1       bertrand 10279: $extrasub
                   10280: _ACEOF
1.15      bertrand 10281: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10282: :t
                   10283: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10284: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10285: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10286: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10287: s&@srcdir@&$ac_srcdir&;t t
                   10288: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10289: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10290: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10291: s&@builddir@&$ac_builddir&;t t
                   10292: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10293: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10294: s&@INSTALL@&$ac_INSTALL&;t t
                   10295: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10296: $ac_datarootdir_hack
1.15      bertrand 10297: "
                   10298: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
                   10299:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10300: 
                   10301: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10302:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10303:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10304:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10305: which seems to be undefined.  Please make sure it is defined." >&5
1.15      bertrand 10306: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10307: which seems to be undefined.  Please make sure it is defined." >&2;}
                   10308: 
                   10309:   rm -f "$tmp/stdin"
                   10310:   case $ac_file in
1.15      bertrand 10311:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10312:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10313:   esac \
                   10314:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10315:  ;;
                   10316:   :H)
                   10317:   #
                   10318:   # CONFIG_HEADER
                   10319:   #
                   10320:   if test x"$ac_file" != x-; then
1.15      bertrand 10321:     {
                   10322:       $as_echo "/* $configure_input  */" \
                   10323:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10324:     } >"$tmp/config.h" \
                   10325:       || as_fn_error "could not create $ac_file" "$LINENO" 5
                   10326:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10327:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10328: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10329:     else
1.15      bertrand 10330:       rm -f "$ac_file"
                   10331:       mv "$tmp/config.h" "$ac_file" \
                   10332:    || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10333:     fi
                   10334:   else
1.15      bertrand 10335:     $as_echo "/* $configure_input  */" \
                   10336:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
                   10337:       || as_fn_error "could not create -" "$LINENO" 5
1.1       bertrand 10338:   fi
1.15      bertrand 10339: # Compute "$ac_file"'s index in $config_headers.
                   10340: _am_arg="$ac_file"
1.1       bertrand 10341: _am_stamp_count=1
                   10342: for _am_header in $config_headers :; do
                   10343:   case $_am_header in
                   10344:     $_am_arg | $_am_arg:* )
                   10345:       break ;;
                   10346:     * )
                   10347:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10348:   esac
                   10349: done
                   10350: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10351: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10352:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10353:     X"$_am_arg" : 'X\(//\)$' \| \
                   10354:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10355: $as_echo X"$_am_arg" |
1.1       bertrand 10356:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10357:        s//\1/
                   10358:        q
                   10359:      }
                   10360:      /^X\(\/\/\)[^/].*/{
                   10361:        s//\1/
                   10362:        q
                   10363:      }
                   10364:      /^X\(\/\/\)$/{
                   10365:        s//\1/
                   10366:        q
                   10367:      }
                   10368:      /^X\(\/\).*/{
                   10369:        s//\1/
                   10370:        q
                   10371:      }
                   10372:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10373:  ;;
                   10374: 
1.15      bertrand 10375:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10376: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10377:  ;;
                   10378:   esac
                   10379: 
                   10380: 
                   10381:   case $ac_file$ac_mode in
1.15      bertrand 10382:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10383:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10384:   # are listed without --file.  Let's play safe and only enable the eval
                   10385:   # if we detect the quoting.
                   10386:   case $CONFIG_FILES in
                   10387:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10388:   *)   set x $CONFIG_FILES ;;
                   10389:   esac
                   10390:   shift
                   10391:   for mf
                   10392:   do
                   10393:     # Strip MF so we end up with the name of the file.
                   10394:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10395:     # Check whether this is an Automake generated Makefile or not.
                   10396:     # We used to match only the files named `Makefile.in', but
                   10397:     # some people rename them; so instead we look at the file content.
                   10398:     # Grep'ing the first line is not enough: some people post-process
                   10399:     # each Makefile.in and add a new line on top of each file to say so.
                   10400:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10401:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10402:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10403:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10404: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10405:     X"$mf" : 'X\(//\)[^/]' \| \
                   10406:     X"$mf" : 'X\(//\)$' \| \
                   10407:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10408: $as_echo X"$mf" |
1.1       bertrand 10409:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10410:        s//\1/
                   10411:        q
                   10412:      }
                   10413:      /^X\(\/\/\)[^/].*/{
                   10414:        s//\1/
                   10415:        q
                   10416:      }
                   10417:      /^X\(\/\/\)$/{
                   10418:        s//\1/
                   10419:        q
                   10420:      }
                   10421:      /^X\(\/\).*/{
                   10422:        s//\1/
                   10423:        q
                   10424:      }
                   10425:      s/.*/./; q'`
1.15      bertrand 10426:     else
                   10427:       continue
                   10428:     fi
                   10429:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10430:     # from the Makefile without running `make'.
                   10431:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10432:     test -z "$DEPDIR" && continue
                   10433:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10434:     test -z "am__include" && continue
                   10435:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10436:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10437:     U=`sed -n 's/^U = //p' < "$mf"`
                   10438:     # Find all dependency output files, they are included files with
                   10439:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10440:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10441:     # expansion.
                   10442:     for file in `sed -n "
                   10443:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10444:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10445:       # Make sure the directory exists.
                   10446:       test -f "$dirpart/$file" && continue
                   10447:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10448: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10449:     X"$file" : 'X\(//\)[^/]' \| \
                   10450:     X"$file" : 'X\(//\)$' \| \
                   10451:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10452: $as_echo X"$file" |
1.1       bertrand 10453:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10454:        s//\1/
                   10455:        q
                   10456:      }
                   10457:      /^X\(\/\/\)[^/].*/{
                   10458:        s//\1/
                   10459:        q
                   10460:      }
                   10461:      /^X\(\/\/\)$/{
                   10462:        s//\1/
                   10463:        q
                   10464:      }
                   10465:      /^X\(\/\).*/{
                   10466:        s//\1/
                   10467:        q
                   10468:      }
                   10469:      s/.*/./; q'`
1.15      bertrand 10470:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10471:       # echo "creating $dirpart/$file"
                   10472:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10473:     done
                   10474:   done
1.15      bertrand 10475: }
1.1       bertrand 10476:  ;;
                   10477: 
                   10478:   esac
                   10479: done # for ac_tag
                   10480: 
                   10481: 
1.15      bertrand 10482: as_fn_exit 0
1.1       bertrand 10483: _ACEOF
                   10484: ac_clean_files=$ac_clean_files_save
                   10485: 
1.15      bertrand 10486: test $ac_write_fail = 0 ||
                   10487:   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   10488: 
1.1       bertrand 10489: 
                   10490: # configure is writing to config.log, and then calls config.status.
                   10491: # config.status does its own redirection, appending to config.log.
                   10492: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10493: # by configure, so config.status won't be able to write to it; its
                   10494: # output is simply discarded.  So we exec the FD to /dev/null,
                   10495: # effectively closing config.log, so it can be properly (re)opened and
                   10496: # appended to by config.status.  When coming back to configure, we
                   10497: # need to make the FD available again.
                   10498: if test "$no_create" != yes; then
                   10499:   ac_cs_success=:
                   10500:   ac_config_status_args=
                   10501:   test "$silent" = yes &&
                   10502:     ac_config_status_args="$ac_config_status_args --quiet"
                   10503:   exec 5>/dev/null
                   10504:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10505:   exec 5>>config.log
                   10506:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10507:   # would make configure fail if this is the last instruction.
1.15      bertrand 10508:   $ac_cs_success || as_fn_exit $?
1.1       bertrand 10509: fi
                   10510: 
                   10511: #
                   10512: # CONFIG_SUBDIRS section.
                   10513: #
                   10514: if test "$no_recursion" != yes; then
                   10515: 
1.15      bertrand 10516:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10517:   # so they do not pile up.
1.1       bertrand 10518:   ac_sub_configure_args=
                   10519:   ac_prev=
                   10520:   eval "set x $ac_configure_args"
                   10521:   shift
                   10522:   for ac_arg
                   10523:   do
                   10524:     if test -n "$ac_prev"; then
                   10525:       ac_prev=
                   10526:       continue
                   10527:     fi
                   10528:     case $ac_arg in
                   10529:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10530:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10531:       ac_prev=cache_file ;;
                   10532:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10533:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10534:     | --c=*)
                   10535:       ;;
                   10536:     --config-cache | -C)
                   10537:       ;;
                   10538:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10539:       ac_prev=srcdir ;;
                   10540:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10541:       ;;
                   10542:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10543:       ac_prev=prefix ;;
                   10544:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10545:       ;;
1.15      bertrand 10546:     --disable-option-checking)
                   10547:       ;;
1.1       bertrand 10548:     *)
                   10549:       case $ac_arg in
1.15      bertrand 10550:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10551:       esac
1.15      bertrand 10552:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10553:     esac
                   10554:   done
                   10555: 
                   10556:   # Always prepend --prefix to ensure using the same prefix
                   10557:   # in subdir configurations.
                   10558:   ac_arg="--prefix=$prefix"
                   10559:   case $ac_arg in
1.15      bertrand 10560:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10561:   esac
                   10562:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10563: 
                   10564:   # Pass --silent
                   10565:   if test "$silent" = yes; then
                   10566:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10567:   fi
                   10568: 
1.15      bertrand 10569:   # Always prepend --disable-option-checking to silence warnings, since
                   10570:   # different subdirs can have different --enable and --with options.
                   10571:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10572: 
1.1       bertrand 10573:   ac_popdir=`pwd`
                   10574:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10575: 
                   10576:     # Do not complain, so a configure script can configure whichever
                   10577:     # parts of a large source tree are present.
                   10578:     test -d "$srcdir/$ac_dir" || continue
                   10579: 
                   10580:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10581:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10582:     $as_echo "$ac_msg" >&6
                   10583:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10584:     ac_builddir=.
                   10585: 
                   10586: case "$ac_dir" in
                   10587: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10588: *)
1.15      bertrand 10589:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10590:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10591:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10592:   case $ac_top_builddir_sub in
                   10593:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10594:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10595:   esac ;;
                   10596: esac
                   10597: ac_abs_top_builddir=$ac_pwd
                   10598: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10599: # for backward compatibility:
                   10600: ac_top_builddir=$ac_top_build_prefix
                   10601: 
                   10602: case $srcdir in
                   10603:   .)  # We are building in place.
                   10604:     ac_srcdir=.
                   10605:     ac_top_srcdir=$ac_top_builddir_sub
                   10606:     ac_abs_top_srcdir=$ac_pwd ;;
                   10607:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10608:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10609:     ac_top_srcdir=$srcdir
                   10610:     ac_abs_top_srcdir=$srcdir ;;
                   10611:   *) # Relative name.
                   10612:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10613:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10614:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10615: esac
                   10616: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10617: 
                   10618: 
                   10619:     cd "$ac_dir"
                   10620: 
                   10621:     # Check for guested configure; otherwise get Cygnus style configure.
                   10622:     if test -f "$ac_srcdir/configure.gnu"; then
                   10623:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10624:     elif test -f "$ac_srcdir/configure"; then
                   10625:       ac_sub_configure=$ac_srcdir/configure
                   10626:     elif test -f "$ac_srcdir/configure.in"; then
                   10627:       # This should be Cygnus configure.
                   10628:       ac_sub_configure=$ac_aux_dir/configure
                   10629:     else
1.15      bertrand 10630:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   10631: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 10632:       ac_sub_configure=
                   10633:     fi
                   10634: 
                   10635:     # The recursion is here.
                   10636:     if test -n "$ac_sub_configure"; then
                   10637:       # Make the cache file name correct relative to the subdirectory.
                   10638:       case $cache_file in
                   10639:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   10640:       *) # Relative name.
                   10641:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   10642:       esac
                   10643: 
1.15      bertrand 10644:       { $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
                   10645: $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 10646:       # The eval makes quoting arguments work.
                   10647:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   10648:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.15      bertrand 10649:    as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 10650:     fi
                   10651: 
                   10652:     cd "$ac_popdir"
                   10653:   done
                   10654: fi
1.15      bertrand 10655: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10656:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10657: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10658: fi
1.1       bertrand 10659: 

CVSweb interface <joel.bertrand@systella.fr>