Annotation of rpl/configure, revision 1.30

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.29      bertrand    3: # Generated by GNU Autoconf 2.65 for rpl 4.0.18.
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.29      bertrand  552: PACKAGE_VERSION='4.0.18'
                    553: PACKAGE_STRING='rpl 4.0.18'
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
1.30    ! bertrand  599: EXT_SQL
1.24      bertrand  600: MALLOC
1.15      bertrand  601: DATE_FR
                    602: FINAL_ENCODING
                    603: OPENSSL
                    604: SQLITE
                    605: ICONV
                    606: FILE
                    607: GNUPLOT
                    608: GPP
                    609: GSL
                    610: UNITS
                    611: READLINE
                    612: NCURSES
1.17      bertrand  613: SEMAPHORES_NOMMES
                    614: NESTED_FUNCTIONS
                    615: EXPORT_DYNAMIC
1.15      bertrand  616: OS
                    617: GNUPLOT_COMPILATION
                    618: subdirs
                    619: EGREP
                    620: GREP
                    621: libPgSQLlib
                    622: libPgSQLinc
                    623: POSTGRESQL_SUPPORT
                    624: libMySQLlib
                    625: libMySQLinc
                    626: MYSQL_SUPPORT
                    627: DATE
                    628: includeX
                    629: libX
                    630: MOTIF_SUPPORT
                    631: DEBUG
                    632: EXPERIMENTAL_CODE
                    633: VIM_SUPPORT
                    634: POSTSCRIPT_SUPPORT
                    635: FORCE_GNUPLOT_PATH
                    636: GNUPLOT_SUPPORT
                    637: VIM
                    638: GNUPLOT_P
                    639: GV
                    640: GS
                    641: DVIPS
                    642: LATEX
                    643: TEX
                    644: SED
                    645: RANLIB
                    646: LN_S
                    647: RUNPATH
                    648: PROFILAGE
                    649: X_EXTRA_LIBS
                    650: X_LIBS
                    651: X_PRE_LIBS
                    652: X_CFLAGS
                    653: CPP
                    654: XMKMF
                    655: ac_ct_FC
                    656: FCFLAGS
                    657: FC
                    658: ac_ct_F77
                    659: FFLAGS
                    660: F77
                    661: am__fastdepCXX_FALSE
                    662: am__fastdepCXX_TRUE
                    663: CXXDEPMODE
                    664: ac_ct_CXX
                    665: CXXFLAGS
                    666: CXX
                    667: am__fastdepCC_FALSE
                    668: am__fastdepCC_TRUE
                    669: CCDEPMODE
                    670: AMDEPBACKSLASH
                    671: AMDEP_FALSE
                    672: AMDEP_TRUE
                    673: am__quote
                    674: am__include
                    675: DEPDIR
                    676: OBJEXT
                    677: EXEEXT
                    678: ac_ct_CC
                    679: CPPFLAGS
                    680: LDFLAGS
                    681: CFLAGS
                    682: CC
                    683: am__untar
                    684: am__tar
                    685: AMTAR
                    686: am__leading_dot
                    687: SET_MAKE
                    688: AWK
                    689: mkdir_p
                    690: MKDIR_P
                    691: INSTALL_STRIP_PROGRAM
                    692: STRIP
                    693: install_sh
                    694: MAKEINFO
                    695: AUTOHEADER
                    696: AUTOMAKE
                    697: AUTOCONF
                    698: ACLOCAL
                    699: VERSION
                    700: PACKAGE
                    701: CYGPATH_W
                    702: am__isrc
                    703: INSTALL_DATA
                    704: INSTALL_SCRIPT
                    705: INSTALL_PROGRAM
                    706: target_os
                    707: target_vendor
                    708: target_cpu
                    709: target
                    710: host_os
                    711: host_vendor
                    712: host_cpu
                    713: host
                    714: build_os
                    715: build_vendor
                    716: build_cpu
                    717: build
                    718: target_alias
                    719: host_alias
                    720: build_alias
                    721: LIBS
                    722: ECHO_T
                    723: ECHO_N
                    724: ECHO_C
                    725: DEFS
                    726: mandir
                    727: localedir
                    728: libdir
                    729: psdir
                    730: pdfdir
                    731: dvidir
                    732: htmldir
                    733: infodir
                    734: docdir
                    735: oldincludedir
                    736: includedir
                    737: localstatedir
                    738: sharedstatedir
                    739: sysconfdir
                    740: datadir
                    741: datarootdir
                    742: libexecdir
                    743: sbindir
                    744: bindir
                    745: program_transform_name
                    746: prefix
                    747: exec_prefix
                    748: PACKAGE_URL
                    749: PACKAGE_BUGREPORT
                    750: PACKAGE_STRING
                    751: PACKAGE_VERSION
                    752: PACKAGE_TARNAME
                    753: PACKAGE_NAME
1.14      bertrand  754: PATH_SEPARATOR
1.15      bertrand  755: SHELL'
                    756: ac_subst_files=''
                    757: ac_user_opts='
                    758: enable_option_checking
                    759: enable_dependency_tracking
                    760: with_x
                    761: enable_optimization
1.30    ! bertrand  762: enable_full_static
1.15      bertrand  763: enable_final_encoding
                    764: enable_tex
                    765: enable_vim
                    766: enable_embedded_gnuplot
                    767: enable_gnuplot
                    768: enable_motif
                    769: enable_experimental
                    770: enable_debug
                    771: enable_profile
                    772: enable_final_run_path
                    773: with_mysql
                    774: with_postgresql
                    775: with_openssl_arch
                    776: '
                    777:       ac_precious_vars='build_alias
1.1       bertrand  778: host_alias
                    779: target_alias
                    780: CC
                    781: CFLAGS
                    782: LDFLAGS
1.15      bertrand  783: LIBS
1.1       bertrand  784: CPPFLAGS
                    785: CXX
                    786: CXXFLAGS
1.15      bertrand  787: CCC
1.1       bertrand  788: F77
                    789: FFLAGS
                    790: FC
                    791: FCFLAGS
                    792: XMKMF
                    793: CPP'
                    794: ac_subdirs_all='tools/$NCURSES
                    795: tools/$READLINE
                    796: tools/$GSL
                    797: tools/$GPP
                    798: tools/$FILE
                    799: tools/$ICONV
1.9       bertrand  800: tools/$SQLITE
1.17      bertrand  801: tools/$UNITS
1.1       bertrand  802: tools/$GNUPLOT'
                    803: 
                    804: # Initialize some variables set by options.
                    805: ac_init_help=
                    806: ac_init_version=false
1.15      bertrand  807: ac_unrecognized_opts=
                    808: ac_unrecognized_sep=
1.1       bertrand  809: # The variables have the same names as the options, with
                    810: # dashes changed to underlines.
                    811: cache_file=/dev/null
                    812: exec_prefix=NONE
                    813: no_create=
                    814: no_recursion=
                    815: prefix=NONE
                    816: program_prefix=NONE
                    817: program_suffix=NONE
                    818: program_transform_name=s,x,x,
                    819: silent=
                    820: site=
                    821: srcdir=
                    822: verbose=
                    823: x_includes=NONE
                    824: x_libraries=NONE
                    825: 
                    826: # Installation directory options.
                    827: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    828: # and all the variables that are supposed to be based on exec_prefix
                    829: # by default will actually change.
                    830: # Use braces instead of parens because sh, perl, etc. also accept them.
                    831: # (The list follows the same order as the GNU Coding Standards.)
                    832: bindir='${exec_prefix}/bin'
                    833: sbindir='${exec_prefix}/sbin'
                    834: libexecdir='${exec_prefix}/libexec'
                    835: datarootdir='${prefix}/share'
                    836: datadir='${datarootdir}'
                    837: sysconfdir='${prefix}/etc'
                    838: sharedstatedir='${prefix}/com'
                    839: localstatedir='${prefix}/var'
                    840: includedir='${prefix}/include'
                    841: oldincludedir='/usr/include'
                    842: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    843: infodir='${datarootdir}/info'
                    844: htmldir='${docdir}'
                    845: dvidir='${docdir}'
                    846: pdfdir='${docdir}'
                    847: psdir='${docdir}'
                    848: libdir='${exec_prefix}/lib'
                    849: localedir='${datarootdir}/locale'
                    850: mandir='${datarootdir}/man'
                    851: 
                    852: ac_prev=
                    853: ac_dashdash=
                    854: for ac_option
                    855: do
                    856:   # If the previous option needs an argument, assign it.
                    857:   if test -n "$ac_prev"; then
                    858:     eval $ac_prev=\$ac_option
                    859:     ac_prev=
                    860:     continue
                    861:   fi
                    862: 
                    863:   case $ac_option in
                    864:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    865:   *)   ac_optarg=yes ;;
                    866:   esac
                    867: 
                    868:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    869: 
                    870:   case $ac_dashdash$ac_option in
                    871:   --)
                    872:     ac_dashdash=yes ;;
                    873: 
                    874:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    875:     ac_prev=bindir ;;
                    876:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    877:     bindir=$ac_optarg ;;
                    878: 
                    879:   -build | --build | --buil | --bui | --bu)
                    880:     ac_prev=build_alias ;;
                    881:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    882:     build_alias=$ac_optarg ;;
                    883: 
                    884:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    885:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    886:     ac_prev=cache_file ;;
                    887:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    888:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    889:     cache_file=$ac_optarg ;;
                    890: 
                    891:   --config-cache | -C)
                    892:     cache_file=config.cache ;;
                    893: 
                    894:   -datadir | --datadir | --datadi | --datad)
                    895:     ac_prev=datadir ;;
                    896:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    897:     datadir=$ac_optarg ;;
                    898: 
                    899:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    900:   | --dataroo | --dataro | --datar)
                    901:     ac_prev=datarootdir ;;
                    902:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    903:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    904:     datarootdir=$ac_optarg ;;
                    905: 
                    906:   -disable-* | --disable-*)
1.15      bertrand  907:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  908:     # Reject names that are not valid shell variable names.
1.15      bertrand  909:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    910:       as_fn_error "invalid feature name: $ac_useropt"
                    911:     ac_useropt_orig=$ac_useropt
                    912:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    913:     case $ac_user_opts in
                    914:       *"
                    915: "enable_$ac_useropt"
                    916: "*) ;;
                    917:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    918:     ac_unrecognized_sep=', ';;
                    919:     esac
                    920:     eval enable_$ac_useropt=no ;;
1.1       bertrand  921: 
                    922:   -docdir | --docdir | --docdi | --doc | --do)
                    923:     ac_prev=docdir ;;
                    924:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    925:     docdir=$ac_optarg ;;
                    926: 
                    927:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    928:     ac_prev=dvidir ;;
                    929:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    930:     dvidir=$ac_optarg ;;
                    931: 
                    932:   -enable-* | --enable-*)
1.15      bertrand  933:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  934:     # Reject names that are not valid shell variable names.
1.15      bertrand  935:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    936:       as_fn_error "invalid feature name: $ac_useropt"
                    937:     ac_useropt_orig=$ac_useropt
                    938:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    939:     case $ac_user_opts in
                    940:       *"
                    941: "enable_$ac_useropt"
                    942: "*) ;;
                    943:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    944:     ac_unrecognized_sep=', ';;
                    945:     esac
                    946:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  947: 
                    948:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    949:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    950:   | --exec | --exe | --ex)
                    951:     ac_prev=exec_prefix ;;
                    952:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    953:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    954:   | --exec=* | --exe=* | --ex=*)
                    955:     exec_prefix=$ac_optarg ;;
                    956: 
                    957:   -gas | --gas | --ga | --g)
                    958:     # Obsolete; use --with-gas.
                    959:     with_gas=yes ;;
                    960: 
                    961:   -help | --help | --hel | --he | -h)
                    962:     ac_init_help=long ;;
                    963:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    964:     ac_init_help=recursive ;;
                    965:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    966:     ac_init_help=short ;;
                    967: 
                    968:   -host | --host | --hos | --ho)
                    969:     ac_prev=host_alias ;;
                    970:   -host=* | --host=* | --hos=* | --ho=*)
                    971:     host_alias=$ac_optarg ;;
                    972: 
                    973:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    974:     ac_prev=htmldir ;;
                    975:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    976:   | --ht=*)
                    977:     htmldir=$ac_optarg ;;
                    978: 
                    979:   -includedir | --includedir | --includedi | --included | --include \
                    980:   | --includ | --inclu | --incl | --inc)
                    981:     ac_prev=includedir ;;
                    982:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    983:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    984:     includedir=$ac_optarg ;;
                    985: 
                    986:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    987:     ac_prev=infodir ;;
                    988:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    989:     infodir=$ac_optarg ;;
                    990: 
                    991:   -libdir | --libdir | --libdi | --libd)
                    992:     ac_prev=libdir ;;
                    993:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    994:     libdir=$ac_optarg ;;
                    995: 
                    996:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    997:   | --libexe | --libex | --libe)
                    998:     ac_prev=libexecdir ;;
                    999:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1000:   | --libexe=* | --libex=* | --libe=*)
                   1001:     libexecdir=$ac_optarg ;;
                   1002: 
                   1003:   -localedir | --localedir | --localedi | --localed | --locale)
                   1004:     ac_prev=localedir ;;
                   1005:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1006:     localedir=$ac_optarg ;;
                   1007: 
                   1008:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1009:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1010:     ac_prev=localstatedir ;;
                   1011:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1012:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1013:     localstatedir=$ac_optarg ;;
                   1014: 
                   1015:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1016:     ac_prev=mandir ;;
                   1017:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1018:     mandir=$ac_optarg ;;
                   1019: 
                   1020:   -nfp | --nfp | --nf)
                   1021:     # Obsolete; use --without-fp.
                   1022:     with_fp=no ;;
                   1023: 
                   1024:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1025:   | --no-cr | --no-c | -n)
                   1026:     no_create=yes ;;
                   1027: 
                   1028:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1029:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1030:     no_recursion=yes ;;
                   1031: 
                   1032:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1033:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1034:   | --oldin | --oldi | --old | --ol | --o)
                   1035:     ac_prev=oldincludedir ;;
                   1036:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1037:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1038:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1039:     oldincludedir=$ac_optarg ;;
                   1040: 
                   1041:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1042:     ac_prev=prefix ;;
                   1043:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1044:     prefix=$ac_optarg ;;
                   1045: 
                   1046:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1047:   | --program-pre | --program-pr | --program-p)
                   1048:     ac_prev=program_prefix ;;
                   1049:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1050:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1051:     program_prefix=$ac_optarg ;;
                   1052: 
                   1053:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1054:   | --program-suf | --program-su | --program-s)
                   1055:     ac_prev=program_suffix ;;
                   1056:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1057:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1058:     program_suffix=$ac_optarg ;;
                   1059: 
                   1060:   -program-transform-name | --program-transform-name \
                   1061:   | --program-transform-nam | --program-transform-na \
                   1062:   | --program-transform-n | --program-transform- \
                   1063:   | --program-transform | --program-transfor \
                   1064:   | --program-transfo | --program-transf \
                   1065:   | --program-trans | --program-tran \
                   1066:   | --progr-tra | --program-tr | --program-t)
                   1067:     ac_prev=program_transform_name ;;
                   1068:   -program-transform-name=* | --program-transform-name=* \
                   1069:   | --program-transform-nam=* | --program-transform-na=* \
                   1070:   | --program-transform-n=* | --program-transform-=* \
                   1071:   | --program-transform=* | --program-transfor=* \
                   1072:   | --program-transfo=* | --program-transf=* \
                   1073:   | --program-trans=* | --program-tran=* \
                   1074:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1075:     program_transform_name=$ac_optarg ;;
                   1076: 
                   1077:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1078:     ac_prev=pdfdir ;;
                   1079:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1080:     pdfdir=$ac_optarg ;;
                   1081: 
                   1082:   -psdir | --psdir | --psdi | --psd | --ps)
                   1083:     ac_prev=psdir ;;
                   1084:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1085:     psdir=$ac_optarg ;;
                   1086: 
                   1087:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1088:   | -silent | --silent | --silen | --sile | --sil)
                   1089:     silent=yes ;;
                   1090: 
                   1091:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1092:     ac_prev=sbindir ;;
                   1093:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1094:   | --sbi=* | --sb=*)
                   1095:     sbindir=$ac_optarg ;;
                   1096: 
                   1097:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1098:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1099:   | --sharedst | --shareds | --shared | --share | --shar \
                   1100:   | --sha | --sh)
                   1101:     ac_prev=sharedstatedir ;;
                   1102:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1103:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1104:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1105:   | --sha=* | --sh=*)
                   1106:     sharedstatedir=$ac_optarg ;;
                   1107: 
                   1108:   -site | --site | --sit)
                   1109:     ac_prev=site ;;
                   1110:   -site=* | --site=* | --sit=*)
                   1111:     site=$ac_optarg ;;
                   1112: 
                   1113:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1114:     ac_prev=srcdir ;;
                   1115:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1116:     srcdir=$ac_optarg ;;
                   1117: 
                   1118:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1119:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1120:     ac_prev=sysconfdir ;;
                   1121:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1122:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1123:     sysconfdir=$ac_optarg ;;
                   1124: 
                   1125:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1126:     ac_prev=target_alias ;;
                   1127:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1128:     target_alias=$ac_optarg ;;
                   1129: 
                   1130:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1131:     verbose=yes ;;
                   1132: 
                   1133:   -version | --version | --versio | --versi | --vers | -V)
                   1134:     ac_init_version=: ;;
                   1135: 
                   1136:   -with-* | --with-*)
1.15      bertrand 1137:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1138:     # Reject names that are not valid shell variable names.
1.15      bertrand 1139:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1140:       as_fn_error "invalid package name: $ac_useropt"
                   1141:     ac_useropt_orig=$ac_useropt
                   1142:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1143:     case $ac_user_opts in
                   1144:       *"
                   1145: "with_$ac_useropt"
                   1146: "*) ;;
                   1147:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1148:     ac_unrecognized_sep=', ';;
                   1149:     esac
                   1150:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1151: 
                   1152:   -without-* | --without-*)
1.15      bertrand 1153:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1154:     # Reject names that are not valid shell variable names.
1.15      bertrand 1155:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1156:       as_fn_error "invalid package name: $ac_useropt"
                   1157:     ac_useropt_orig=$ac_useropt
                   1158:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1159:     case $ac_user_opts in
                   1160:       *"
                   1161: "with_$ac_useropt"
                   1162: "*) ;;
                   1163:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1164:     ac_unrecognized_sep=', ';;
                   1165:     esac
                   1166:     eval with_$ac_useropt=no ;;
1.1       bertrand 1167: 
                   1168:   --x)
                   1169:     # Obsolete; use --with-x.
                   1170:     with_x=yes ;;
                   1171: 
                   1172:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1173:   | --x-incl | --x-inc | --x-in | --x-i)
                   1174:     ac_prev=x_includes ;;
                   1175:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1176:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1177:     x_includes=$ac_optarg ;;
                   1178: 
                   1179:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1180:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1181:     ac_prev=x_libraries ;;
                   1182:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1183:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1184:     x_libraries=$ac_optarg ;;
                   1185: 
1.15      bertrand 1186:   -*) as_fn_error "unrecognized option: \`$ac_option'
                   1187: Try \`$0 --help' for more information."
1.1       bertrand 1188:     ;;
                   1189: 
                   1190:   *=*)
                   1191:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1192:     # Reject names that are not valid shell variable names.
1.15      bertrand 1193:     case $ac_envvar in #(
                   1194:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1195:       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
                   1196:     esac
1.1       bertrand 1197:     eval $ac_envvar=\$ac_optarg
                   1198:     export $ac_envvar ;;
                   1199: 
                   1200:   *)
                   1201:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1202:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1203:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1204:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1       bertrand 1205:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1206:     ;;
                   1207: 
                   1208:   esac
                   1209: done
                   1210: 
                   1211: if test -n "$ac_prev"; then
                   1212:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.15      bertrand 1213:   as_fn_error "missing argument to $ac_option"
                   1214: fi
                   1215: 
                   1216: if test -n "$ac_unrecognized_opts"; then
                   1217:   case $enable_option_checking in
                   1218:     no) ;;
                   1219:     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
                   1220:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1221:   esac
1.1       bertrand 1222: fi
                   1223: 
1.15      bertrand 1224: # Check all directory arguments for consistency.
1.1       bertrand 1225: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1226:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1227:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1228:        libdir localedir mandir
                   1229: do
                   1230:   eval ac_val=\$$ac_var
1.15      bertrand 1231:   # Remove trailing slashes.
                   1232:   case $ac_val in
                   1233:     */ )
                   1234:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1235:       eval $ac_var=\$ac_val;;
                   1236:   esac
                   1237:   # Be sure to have absolute directory names.
1.1       bertrand 1238:   case $ac_val in
                   1239:     [\\/$]* | ?:[\\/]* )  continue;;
                   1240:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1241:   esac
1.15      bertrand 1242:   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1243: done
                   1244: 
                   1245: # There might be people who depend on the old broken behavior: `$host'
                   1246: # used to hold the argument of --host etc.
                   1247: # FIXME: To remove some day.
                   1248: build=$build_alias
                   1249: host=$host_alias
                   1250: target=$target_alias
                   1251: 
                   1252: # FIXME: To remove some day.
                   1253: if test "x$host_alias" != x; then
                   1254:   if test "x$build_alias" = x; then
                   1255:     cross_compiling=maybe
1.15      bertrand 1256:     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1       bertrand 1257:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1258:   elif test "x$build_alias" != "x$host_alias"; then
                   1259:     cross_compiling=yes
                   1260:   fi
                   1261: fi
                   1262: 
                   1263: ac_tool_prefix=
                   1264: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1265: 
                   1266: test "$silent" = yes && exec 6>/dev/null
                   1267: 
                   1268: 
                   1269: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1270: ac_ls_di=`ls -di .` &&
                   1271: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.15      bertrand 1272:   as_fn_error "working directory cannot be determined"
1.1       bertrand 1273: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.15      bertrand 1274:   as_fn_error "pwd does not report name of working directory"
1.1       bertrand 1275: 
                   1276: 
                   1277: # Find the source files, if location was not specified.
                   1278: if test -z "$srcdir"; then
                   1279:   ac_srcdir_defaulted=yes
                   1280:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1281:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1282: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1283:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1284:     X"$as_myself" : 'X\(//\)$' \| \
                   1285:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1286: $as_echo X"$as_myself" |
1.1       bertrand 1287:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1288:        s//\1/
                   1289:        q
                   1290:      }
                   1291:      /^X\(\/\/\)[^/].*/{
                   1292:        s//\1/
                   1293:        q
                   1294:      }
                   1295:      /^X\(\/\/\)$/{
                   1296:        s//\1/
                   1297:        q
                   1298:      }
                   1299:      /^X\(\/\).*/{
                   1300:        s//\1/
                   1301:        q
                   1302:      }
                   1303:      s/.*/./; q'`
                   1304:   srcdir=$ac_confdir
                   1305:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1306:     srcdir=..
                   1307:   fi
                   1308: else
                   1309:   ac_srcdir_defaulted=no
                   1310: fi
                   1311: if test ! -r "$srcdir/$ac_unique_file"; then
                   1312:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.15      bertrand 1313:   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1314: fi
                   1315: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1316: ac_abs_confdir=`(
1.15      bertrand 1317:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1.1       bertrand 1318:    pwd)`
                   1319: # When building in place, set srcdir=.
                   1320: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1321:   srcdir=.
                   1322: fi
                   1323: # Remove unnecessary trailing slashes from srcdir.
                   1324: # Double slashes in file names in object file debugging info
                   1325: # mess up M-x gdb in Emacs.
                   1326: case $srcdir in
                   1327: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1328: esac
                   1329: for ac_var in $ac_precious_vars; do
                   1330:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1331:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1332:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1333:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1334: done
                   1335: 
                   1336: #
                   1337: # Report the --help message.
                   1338: #
                   1339: if test "$ac_init_help" = "long"; then
                   1340:   # Omit some internal or obsolete options to make the list less imposing.
                   1341:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1342:   cat <<_ACEOF
1.29      bertrand 1343: \`configure' configures rpl 4.0.18 to adapt to many kinds of systems.
1.1       bertrand 1344: 
                   1345: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1346: 
                   1347: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1348: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1349: 
                   1350: Defaults for the options are specified in brackets.
                   1351: 
                   1352: Configuration:
                   1353:   -h, --help              display this help and exit
                   1354:       --help=short        display options specific to this package
                   1355:       --help=recursive    display the short help of all the included packages
                   1356:   -V, --version           display version information and exit
                   1357:   -q, --quiet, --silent   do not print \`checking...' messages
                   1358:       --cache-file=FILE   cache test results in FILE [disabled]
                   1359:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1360:   -n, --no-create         do not create output files
                   1361:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1362: 
                   1363: Installation directories:
                   1364:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1365:                           [$ac_default_prefix]
1.1       bertrand 1366:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1367:                           [PREFIX]
1.1       bertrand 1368: 
                   1369: By default, \`make install' will install all the files in
                   1370: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1371: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1372: for instance \`--prefix=\$HOME'.
                   1373: 
                   1374: For better control, use the options below.
                   1375: 
                   1376: Fine tuning of the installation directories:
1.15      bertrand 1377:   --bindir=DIR            user executables [EPREFIX/bin]
                   1378:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1379:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1380:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1381:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1382:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1383:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1384:   --includedir=DIR        C header files [PREFIX/include]
                   1385:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1386:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1387:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1388:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1389:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1390:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1391:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1392:   --htmldir=DIR           html documentation [DOCDIR]
                   1393:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1394:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1395:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1396: _ACEOF
                   1397: 
                   1398:   cat <<\_ACEOF
                   1399: 
                   1400: Program names:
                   1401:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1402:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1403:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1404: 
                   1405: X features:
                   1406:   --x-includes=DIR    X include files are in DIR
                   1407:   --x-libraries=DIR   X library files are in DIR
                   1408: 
                   1409: System types:
                   1410:   --build=BUILD     configure for building on BUILD [guessed]
                   1411:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1412:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1413: _ACEOF
                   1414: fi
                   1415: 
                   1416: if test -n "$ac_init_help"; then
                   1417:   case $ac_init_help in
1.29      bertrand 1418:      short | recursive ) echo "Configuration of rpl 4.0.18:";;
1.1       bertrand 1419:    esac
                   1420:   cat <<\_ACEOF
                   1421: 
                   1422: Optional Features:
1.15      bertrand 1423:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1424:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1425:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1426:   --disable-dependency-tracking  speeds up one-time build
                   1427:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1428:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.30    ! bertrand 1429:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1430:   --enable-final-encoding force final encoding [default=guessed]
                   1431:   --enable-tex            provide the TeX support [default=guessed]
                   1432:   --enable-vim            provide the vim support [default=guessed]
                   1433:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1434:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1435:   --enable-motif          provide the Motif support [default=guessed]
                   1436:   --enable-experimental   enable experimental code [default=no]
                   1437:   --enable-debug          enable debug code [default=no]
                   1438:   --enable-profile        enable profile code [default=no]
                   1439:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1440: 
                   1441: Optional Packages:
                   1442:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1443:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1444:   --with-x                use the X Window System
                   1445:   --with-mysql=PATH         specify directory for installed mysql
                   1446:   --with-postgresql=PATH    specify directory for installed postgresql
1.15      bertrand 1447:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1448: 
                   1449: Some influential environment variables:
                   1450:   CC          C compiler command
                   1451:   CFLAGS      C compiler flags
                   1452:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1453:               nonstandard directory <lib dir>
                   1454:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1455:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1456:               you have headers in a nonstandard directory <include dir>
                   1457:   CXX         C++ compiler command
                   1458:   CXXFLAGS    C++ compiler flags
                   1459:   F77         Fortran 77 compiler command
                   1460:   FFLAGS      Fortran 77 compiler flags
                   1461:   FC          Fortran compiler command
                   1462:   FCFLAGS     Fortran compiler flags
                   1463:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1464:   CPP         C preprocessor
                   1465: 
                   1466: Use these variables to override the choices made by `configure' or to help
                   1467: it to find libraries and programs with nonstandard names/locations.
                   1468: 
1.15      bertrand 1469: Report bugs to the package provider.
1.1       bertrand 1470: _ACEOF
                   1471: ac_status=$?
                   1472: fi
                   1473: 
                   1474: if test "$ac_init_help" = "recursive"; then
                   1475:   # If there are subdirs, report their specific --help.
                   1476:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1477:     test -d "$ac_dir" ||
                   1478:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1479:       continue
1.1       bertrand 1480:     ac_builddir=.
                   1481: 
                   1482: case "$ac_dir" in
                   1483: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1484: *)
1.15      bertrand 1485:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1486:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1487:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1488:   case $ac_top_builddir_sub in
                   1489:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1490:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1491:   esac ;;
                   1492: esac
                   1493: ac_abs_top_builddir=$ac_pwd
                   1494: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1495: # for backward compatibility:
                   1496: ac_top_builddir=$ac_top_build_prefix
                   1497: 
                   1498: case $srcdir in
                   1499:   .)  # We are building in place.
                   1500:     ac_srcdir=.
                   1501:     ac_top_srcdir=$ac_top_builddir_sub
                   1502:     ac_abs_top_srcdir=$ac_pwd ;;
                   1503:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1504:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1505:     ac_top_srcdir=$srcdir
                   1506:     ac_abs_top_srcdir=$srcdir ;;
                   1507:   *) # Relative name.
                   1508:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1509:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1510:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1511: esac
                   1512: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1513: 
                   1514:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1515:     # Check for guested configure.
                   1516:     if test -f "$ac_srcdir/configure.gnu"; then
                   1517:       echo &&
                   1518:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1519:     elif test -f "$ac_srcdir/configure"; then
                   1520:       echo &&
                   1521:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1522:     else
1.15      bertrand 1523:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1524:     fi || ac_status=$?
                   1525:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1526:   done
                   1527: fi
                   1528: 
                   1529: test -n "$ac_init_help" && exit $ac_status
                   1530: if $ac_init_version; then
                   1531:   cat <<\_ACEOF
1.29      bertrand 1532: rpl configure 4.0.18
1.15      bertrand 1533: generated by GNU Autoconf 2.65
1.1       bertrand 1534: 
1.15      bertrand 1535: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 1536: This configure script is free software; the Free Software Foundation
                   1537: gives unlimited permission to copy, distribute and modify it.
                   1538: _ACEOF
                   1539:   exit
                   1540: fi
                   1541: 
1.15      bertrand 1542: ## ------------------------ ##
                   1543: ## Autoconf initialization. ##
                   1544: ## ------------------------ ##
                   1545: 
                   1546: # ac_fn_c_try_compile LINENO
                   1547: # --------------------------
                   1548: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1549: ac_fn_c_try_compile ()
                   1550: {
                   1551:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1552:   rm -f conftest.$ac_objext
                   1553:   if { { ac_try="$ac_compile"
                   1554: case "(($ac_try" in
                   1555:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1556:   *) ac_try_echo=$ac_try;;
                   1557: esac
                   1558: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1559: $as_echo "$ac_try_echo"; } >&5
                   1560:   (eval "$ac_compile") 2>conftest.err
                   1561:   ac_status=$?
                   1562:   if test -s conftest.err; then
                   1563:     grep -v '^ *+' conftest.err >conftest.er1
                   1564:     cat conftest.er1 >&5
                   1565:     mv -f conftest.er1 conftest.err
                   1566:   fi
                   1567:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1568:   test $ac_status = 0; } && {
                   1569:     test -z "$ac_c_werror_flag" ||
                   1570:     test ! -s conftest.err
                   1571:        } && test -s conftest.$ac_objext; then :
                   1572:   ac_retval=0
                   1573: else
                   1574:   $as_echo "$as_me: failed program was:" >&5
                   1575: sed 's/^/| /' conftest.$ac_ext >&5
                   1576: 
                   1577:    ac_retval=1
                   1578: fi
                   1579:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1580:   as_fn_set_status $ac_retval
1.1       bertrand 1581: 
1.15      bertrand 1582: } # ac_fn_c_try_compile
1.1       bertrand 1583: 
1.15      bertrand 1584: # ac_fn_cxx_try_compile LINENO
                   1585: # ----------------------------
                   1586: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1587: ac_fn_cxx_try_compile ()
1.1       bertrand 1588: {
1.15      bertrand 1589:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1590:   rm -f conftest.$ac_objext
                   1591:   if { { ac_try="$ac_compile"
                   1592: case "(($ac_try" in
                   1593:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1594:   *) ac_try_echo=$ac_try;;
                   1595: esac
                   1596: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1597: $as_echo "$ac_try_echo"; } >&5
                   1598:   (eval "$ac_compile") 2>conftest.err
                   1599:   ac_status=$?
                   1600:   if test -s conftest.err; then
                   1601:     grep -v '^ *+' conftest.err >conftest.er1
                   1602:     cat conftest.er1 >&5
                   1603:     mv -f conftest.er1 conftest.err
                   1604:   fi
                   1605:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1606:   test $ac_status = 0; } && {
                   1607:     test -z "$ac_cxx_werror_flag" ||
                   1608:     test ! -s conftest.err
                   1609:        } && test -s conftest.$ac_objext; then :
                   1610:   ac_retval=0
                   1611: else
                   1612:   $as_echo "$as_me: failed program was:" >&5
                   1613: sed 's/^/| /' conftest.$ac_ext >&5
                   1614: 
                   1615:    ac_retval=1
                   1616: fi
                   1617:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1618:   as_fn_set_status $ac_retval
1.1       bertrand 1619: 
1.15      bertrand 1620: } # ac_fn_cxx_try_compile
1.1       bertrand 1621: 
1.15      bertrand 1622: # ac_fn_f77_try_compile LINENO
                   1623: # ----------------------------
                   1624: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1625: ac_fn_f77_try_compile ()
                   1626: {
                   1627:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1628:   rm -f conftest.$ac_objext
                   1629:   if { { ac_try="$ac_compile"
                   1630: case "(($ac_try" in
                   1631:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1632:   *) ac_try_echo=$ac_try;;
                   1633: esac
                   1634: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1635: $as_echo "$ac_try_echo"; } >&5
                   1636:   (eval "$ac_compile") 2>conftest.err
                   1637:   ac_status=$?
                   1638:   if test -s conftest.err; then
                   1639:     grep -v '^ *+' conftest.err >conftest.er1
                   1640:     cat conftest.er1 >&5
                   1641:     mv -f conftest.er1 conftest.err
                   1642:   fi
                   1643:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1644:   test $ac_status = 0; } && {
                   1645:     test -z "$ac_f77_werror_flag" ||
                   1646:     test ! -s conftest.err
                   1647:        } && test -s conftest.$ac_objext; then :
                   1648:   ac_retval=0
                   1649: else
                   1650:   $as_echo "$as_me: failed program was:" >&5
                   1651: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1652: 
1.15      bertrand 1653:    ac_retval=1
                   1654: fi
                   1655:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1656:   as_fn_set_status $ac_retval
1.1       bertrand 1657: 
1.15      bertrand 1658: } # ac_fn_f77_try_compile
1.1       bertrand 1659: 
1.15      bertrand 1660: # ac_fn_fc_try_compile LINENO
                   1661: # ---------------------------
                   1662: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1663: ac_fn_fc_try_compile ()
                   1664: {
                   1665:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1666:   rm -f conftest.$ac_objext
                   1667:   if { { ac_try="$ac_compile"
                   1668: case "(($ac_try" in
                   1669:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1670:   *) ac_try_echo=$ac_try;;
                   1671: esac
                   1672: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1673: $as_echo "$ac_try_echo"; } >&5
                   1674:   (eval "$ac_compile") 2>conftest.err
                   1675:   ac_status=$?
                   1676:   if test -s conftest.err; then
                   1677:     grep -v '^ *+' conftest.err >conftest.er1
                   1678:     cat conftest.er1 >&5
                   1679:     mv -f conftest.er1 conftest.err
                   1680:   fi
                   1681:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1682:   test $ac_status = 0; } && {
                   1683:     test -z "$ac_fc_werror_flag" ||
                   1684:     test ! -s conftest.err
                   1685:        } && test -s conftest.$ac_objext; then :
                   1686:   ac_retval=0
                   1687: else
                   1688:   $as_echo "$as_me: failed program was:" >&5
                   1689: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1690: 
1.15      bertrand 1691:    ac_retval=1
                   1692: fi
                   1693:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1694:   as_fn_set_status $ac_retval
1.1       bertrand 1695: 
1.15      bertrand 1696: } # ac_fn_fc_try_compile
1.1       bertrand 1697: 
1.15      bertrand 1698: # ac_fn_c_try_cpp LINENO
                   1699: # ----------------------
                   1700: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1701: ac_fn_c_try_cpp ()
                   1702: {
                   1703:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1704:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1705: case "(($ac_try" in
                   1706:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1707:   *) ac_try_echo=$ac_try;;
                   1708: esac
                   1709: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1710: $as_echo "$ac_try_echo"; } >&5
                   1711:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1712:   ac_status=$?
                   1713:   if test -s conftest.err; then
                   1714:     grep -v '^ *+' conftest.err >conftest.er1
                   1715:     cat conftest.er1 >&5
                   1716:     mv -f conftest.er1 conftest.err
                   1717:   fi
                   1718:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1719:   test $ac_status = 0; } >/dev/null && {
                   1720:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1721:     test ! -s conftest.err
                   1722:        }; then :
                   1723:   ac_retval=0
                   1724: else
                   1725:   $as_echo "$as_me: failed program was:" >&5
                   1726: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1727: 
1.15      bertrand 1728:     ac_retval=1
                   1729: fi
                   1730:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1731:   as_fn_set_status $ac_retval
1.1       bertrand 1732: 
1.15      bertrand 1733: } # ac_fn_c_try_cpp
1.1       bertrand 1734: 
1.15      bertrand 1735: # ac_fn_c_try_link LINENO
                   1736: # -----------------------
                   1737: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1738: ac_fn_c_try_link ()
                   1739: {
                   1740:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1741:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1742:   if { { ac_try="$ac_link"
                   1743: case "(($ac_try" in
                   1744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1745:   *) ac_try_echo=$ac_try;;
                   1746: esac
                   1747: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1748: $as_echo "$ac_try_echo"; } >&5
                   1749:   (eval "$ac_link") 2>conftest.err
                   1750:   ac_status=$?
                   1751:   if test -s conftest.err; then
                   1752:     grep -v '^ *+' conftest.err >conftest.er1
                   1753:     cat conftest.er1 >&5
                   1754:     mv -f conftest.er1 conftest.err
                   1755:   fi
                   1756:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1757:   test $ac_status = 0; } && {
                   1758:     test -z "$ac_c_werror_flag" ||
                   1759:     test ! -s conftest.err
                   1760:        } && test -s conftest$ac_exeext && {
                   1761:     test "$cross_compiling" = yes ||
                   1762:     $as_test_x conftest$ac_exeext
                   1763:        }; then :
                   1764:   ac_retval=0
                   1765: else
                   1766:   $as_echo "$as_me: failed program was:" >&5
                   1767: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1768: 
1.15      bertrand 1769:    ac_retval=1
                   1770: fi
                   1771:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1772:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1773:   # interfere with the next link command; also delete a directory that is
                   1774:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1775:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1776:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1777:   as_fn_set_status $ac_retval
1.1       bertrand 1778: 
1.15      bertrand 1779: } # ac_fn_c_try_link
1.1       bertrand 1780: 
1.15      bertrand 1781: # ac_fn_c_check_func LINENO FUNC VAR
                   1782: # ----------------------------------
                   1783: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1784: ac_fn_c_check_func ()
                   1785: {
                   1786:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1787:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1788: $as_echo_n "checking for $2... " >&6; }
                   1789: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   1790:   $as_echo_n "(cached) " >&6
                   1791: else
                   1792:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1793: /* end confdefs.h.  */
                   1794: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1795:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1796: #define $2 innocuous_$2
1.1       bertrand 1797: 
1.15      bertrand 1798: /* System header to define __stub macros and hopefully few prototypes,
                   1799:     which can conflict with char $2 (); below.
                   1800:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1801:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1802: 
1.15      bertrand 1803: #ifdef __STDC__
                   1804: # include <limits.h>
                   1805: #else
                   1806: # include <assert.h>
                   1807: #endif
1.1       bertrand 1808: 
1.15      bertrand 1809: #undef $2
1.1       bertrand 1810: 
1.15      bertrand 1811: /* Override any GCC internal prototype to avoid an error.
                   1812:    Use char because int might match the return type of a GCC
                   1813:    builtin and then its argument prototype would still apply.  */
                   1814: #ifdef __cplusplus
                   1815: extern "C"
                   1816: #endif
                   1817: char $2 ();
                   1818: /* The GNU C library defines this for functions which it implements
                   1819:     to always fail with ENOSYS.  Some functions are actually named
                   1820:     something starting with __ and the normal name is an alias.  */
                   1821: #if defined __stub_$2 || defined __stub___$2
                   1822: choke me
                   1823: #endif
1.1       bertrand 1824: 
1.15      bertrand 1825: int
                   1826: main ()
                   1827: {
                   1828: return $2 ();
                   1829:   ;
                   1830:   return 0;
                   1831: }
1.1       bertrand 1832: _ACEOF
1.15      bertrand 1833: if ac_fn_c_try_link "$LINENO"; then :
                   1834:   eval "$3=yes"
                   1835: else
                   1836:   eval "$3=no"
                   1837: fi
                   1838: rm -f core conftest.err conftest.$ac_objext \
                   1839:     conftest$ac_exeext conftest.$ac_ext
                   1840: fi
                   1841: eval ac_res=\$$3
                   1842:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1843: $as_echo "$ac_res" >&6; }
                   1844:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1845: 
1.15      bertrand 1846: } # ac_fn_c_check_func
1.1       bertrand 1847: 
1.15      bertrand 1848: # ac_fn_c_try_run LINENO
                   1849: # ----------------------
                   1850: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1851: # that executables *can* be run.
                   1852: ac_fn_c_try_run ()
                   1853: {
                   1854:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1855:   if { { ac_try="$ac_link"
                   1856: case "(($ac_try" in
                   1857:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1858:   *) ac_try_echo=$ac_try;;
                   1859: esac
                   1860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1861: $as_echo "$ac_try_echo"; } >&5
                   1862:   (eval "$ac_link") 2>&5
                   1863:   ac_status=$?
                   1864:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1865:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1866:   { { case "(($ac_try" in
                   1867:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1868:   *) ac_try_echo=$ac_try;;
                   1869: esac
                   1870: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1871: $as_echo "$ac_try_echo"; } >&5
                   1872:   (eval "$ac_try") 2>&5
                   1873:   ac_status=$?
                   1874:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1875:   test $ac_status = 0; }; }; then :
                   1876:   ac_retval=0
                   1877: else
                   1878:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1879:        $as_echo "$as_me: failed program was:" >&5
                   1880: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1881: 
1.15      bertrand 1882:        ac_retval=$ac_status
                   1883: fi
                   1884:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1885:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1886:   as_fn_set_status $ac_retval
1.1       bertrand 1887: 
1.15      bertrand 1888: } # ac_fn_c_try_run
1.1       bertrand 1889: 
1.15      bertrand 1890: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1891: # --------------------------------------------
                   1892: # Tries to find the compile-time value of EXPR in a program that includes
                   1893: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1894: # computed
                   1895: ac_fn_c_compute_int ()
                   1896: {
                   1897:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1898:   if test "$cross_compiling" = yes; then
                   1899:     # Depending upon the size, compute the lo and hi bounds.
                   1900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1901: /* end confdefs.h.  */
                   1902: $4
                   1903: int
                   1904: main ()
                   1905: {
                   1906: static int test_array [1 - 2 * !(($2) >= 0)];
                   1907: test_array [0] = 0
1.1       bertrand 1908: 
1.15      bertrand 1909:   ;
                   1910:   return 0;
                   1911: }
1.1       bertrand 1912: _ACEOF
1.15      bertrand 1913: if ac_fn_c_try_compile "$LINENO"; then :
                   1914:   ac_lo=0 ac_mid=0
                   1915:   while :; do
                   1916:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1917: /* end confdefs.h.  */
                   1918: $4
                   1919: int
                   1920: main ()
                   1921: {
                   1922: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1923: test_array [0] = 0
1.1       bertrand 1924: 
1.15      bertrand 1925:   ;
                   1926:   return 0;
                   1927: }
                   1928: _ACEOF
                   1929: if ac_fn_c_try_compile "$LINENO"; then :
                   1930:   ac_hi=$ac_mid; break
                   1931: else
                   1932:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   1933:            if test $ac_lo -le $ac_mid; then
                   1934:              ac_lo= ac_hi=
                   1935:              break
                   1936:            fi
                   1937:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   1938: fi
                   1939: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1940:   done
                   1941: else
                   1942:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1943: /* end confdefs.h.  */
                   1944: $4
                   1945: int
                   1946: main ()
                   1947: {
                   1948: static int test_array [1 - 2 * !(($2) < 0)];
                   1949: test_array [0] = 0
1.1       bertrand 1950: 
1.15      bertrand 1951:   ;
                   1952:   return 0;
                   1953: }
1.1       bertrand 1954: _ACEOF
1.15      bertrand 1955: if ac_fn_c_try_compile "$LINENO"; then :
                   1956:   ac_hi=-1 ac_mid=-1
                   1957:   while :; do
                   1958:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1959: /* end confdefs.h.  */
                   1960: $4
                   1961: int
                   1962: main ()
                   1963: {
                   1964: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   1965: test_array [0] = 0
1.1       bertrand 1966: 
1.15      bertrand 1967:   ;
                   1968:   return 0;
                   1969: }
                   1970: _ACEOF
                   1971: if ac_fn_c_try_compile "$LINENO"; then :
                   1972:   ac_lo=$ac_mid; break
                   1973: else
                   1974:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   1975:            if test $ac_mid -le $ac_hi; then
                   1976:              ac_lo= ac_hi=
                   1977:              break
                   1978:            fi
                   1979:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   1980: fi
                   1981: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1982:   done
1.1       bertrand 1983: else
1.15      bertrand 1984:   ac_lo= ac_hi=
                   1985: fi
                   1986: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 1987: fi
1.15      bertrand 1988: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1989: # Binary search between lo and hi bounds.
                   1990: while test "x$ac_lo" != "x$ac_hi"; do
                   1991:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   1992:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1993: /* end confdefs.h.  */
                   1994: $4
                   1995: int
                   1996: main ()
                   1997: {
                   1998: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1999: test_array [0] = 0
1.1       bertrand 2000: 
1.15      bertrand 2001:   ;
                   2002:   return 0;
                   2003: }
                   2004: _ACEOF
                   2005: if ac_fn_c_try_compile "$LINENO"; then :
                   2006:   ac_hi=$ac_mid
1.1       bertrand 2007: else
1.15      bertrand 2008:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2009: fi
1.15      bertrand 2010: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2011: done
                   2012: case $ac_lo in #((
                   2013: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2014: '') ac_retval=1 ;;
                   2015: esac
                   2016:   else
                   2017:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2018: /* end confdefs.h.  */
                   2019: $4
                   2020: static long int longval () { return $2; }
                   2021: static unsigned long int ulongval () { return $2; }
                   2022: #include <stdio.h>
                   2023: #include <stdlib.h>
                   2024: int
                   2025: main ()
                   2026: {
1.1       bertrand 2027: 
1.15      bertrand 2028:   FILE *f = fopen ("conftest.val", "w");
                   2029:   if (! f)
                   2030:     return 1;
                   2031:   if (($2) < 0)
                   2032:     {
                   2033:       long int i = longval ();
                   2034:       if (i != ($2))
                   2035:    return 1;
                   2036:       fprintf (f, "%ld", i);
                   2037:     }
                   2038:   else
                   2039:     {
                   2040:       unsigned long int i = ulongval ();
                   2041:       if (i != ($2))
                   2042:    return 1;
                   2043:       fprintf (f, "%lu", i);
                   2044:     }
                   2045:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2046:      on some platforms.  */
                   2047:   return ferror (f) || fclose (f) != 0;
                   2048: 
                   2049:   ;
                   2050:   return 0;
                   2051: }
                   2052: _ACEOF
                   2053: if ac_fn_c_try_run "$LINENO"; then :
                   2054:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2055: else
                   2056:   ac_retval=1
1.14      bertrand 2057: fi
1.15      bertrand 2058: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2059:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2060: rm -f conftest.val
1.14      bertrand 2061: 
1.15      bertrand 2062:   fi
                   2063:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   2064:   as_fn_set_status $ac_retval
1.14      bertrand 2065: 
1.15      bertrand 2066: } # ac_fn_c_compute_int
1.1       bertrand 2067: 
1.15      bertrand 2068: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2069: # -------------------------------------------------------
                   2070: # Tests whether HEADER exists and can be compiled using the include files in
                   2071: # INCLUDES, setting the cache variable VAR accordingly.
                   2072: ac_fn_c_check_header_compile ()
                   2073: {
                   2074:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2075:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2076: $as_echo_n "checking for $2... " >&6; }
                   2077: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2078:   $as_echo_n "(cached) " >&6
                   2079: else
                   2080:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2081: /* end confdefs.h.  */
                   2082: $4
                   2083: #include <$2>
                   2084: _ACEOF
                   2085: if ac_fn_c_try_compile "$LINENO"; then :
                   2086:   eval "$3=yes"
                   2087: else
                   2088:   eval "$3=no"
                   2089: fi
                   2090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2091: fi
                   2092: eval ac_res=\$$3
                   2093:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2094: $as_echo "$ac_res" >&6; }
                   2095:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2096: 
1.15      bertrand 2097: } # ac_fn_c_check_header_compile
1.1       bertrand 2098: 
1.15      bertrand 2099: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2100: # -------------------------------------------------------
                   2101: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2102: # the include files in INCLUDES and setting the cache variable VAR
                   2103: # accordingly.
                   2104: ac_fn_c_check_header_mongrel ()
                   2105: {
                   2106:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2107:   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2108:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2109: $as_echo_n "checking for $2... " >&6; }
                   2110: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2111:   $as_echo_n "(cached) " >&6
                   2112: fi
                   2113: eval ac_res=\$$3
                   2114:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2115: $as_echo "$ac_res" >&6; }
                   2116: else
                   2117:   # Is the header compilable?
                   2118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2119: $as_echo_n "checking $2 usability... " >&6; }
                   2120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2121: /* end confdefs.h.  */
                   2122: $4
                   2123: #include <$2>
                   2124: _ACEOF
                   2125: if ac_fn_c_try_compile "$LINENO"; then :
                   2126:   ac_header_compiler=yes
                   2127: else
                   2128:   ac_header_compiler=no
                   2129: fi
                   2130: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2132: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2133: 
1.15      bertrand 2134: # Is the header present?
                   2135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2136: $as_echo_n "checking $2 presence... " >&6; }
                   2137: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2138: /* end confdefs.h.  */
                   2139: #include <$2>
                   2140: _ACEOF
                   2141: if ac_fn_c_try_cpp "$LINENO"; then :
                   2142:   ac_header_preproc=yes
                   2143: else
                   2144:   ac_header_preproc=no
                   2145: fi
                   2146: rm -f conftest.err conftest.$ac_ext
                   2147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2148: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2149: 
1.15      bertrand 2150: # So?  What about this header?
                   2151: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2152:   yes:no: )
                   2153:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2154: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2155:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2156: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2157:     ;;
                   2158:   no:yes:* )
                   2159:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2160: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2161:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2162: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2163:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2164: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2165:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2166: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2167:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2168: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2169:     ;;
                   2170: esac
                   2171:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2172: $as_echo_n "checking for $2... " >&6; }
                   2173: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2174:   $as_echo_n "(cached) " >&6
                   2175: else
                   2176:   eval "$3=\$ac_header_compiler"
                   2177: fi
                   2178: eval ac_res=\$$3
                   2179:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2180: $as_echo "$ac_res" >&6; }
                   2181: fi
                   2182:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2183: 
1.15      bertrand 2184: } # ac_fn_c_check_header_mongrel
1.1       bertrand 2185: 
1.15      bertrand 2186: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   2187: # -------------------------------------------
                   2188: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   2189: # variable VAR accordingly.
                   2190: ac_fn_c_check_type ()
                   2191: {
                   2192:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2193:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2194: $as_echo_n "checking for $2... " >&6; }
                   2195: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2196:   $as_echo_n "(cached) " >&6
                   2197: else
                   2198:   eval "$3=no"
                   2199:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2200: /* end confdefs.h.  */
                   2201: $4
                   2202: int
                   2203: main ()
                   2204: {
                   2205: if (sizeof ($2))
                   2206:     return 0;
                   2207:   ;
                   2208:   return 0;
                   2209: }
                   2210: _ACEOF
                   2211: if ac_fn_c_try_compile "$LINENO"; then :
                   2212:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2213: /* end confdefs.h.  */
                   2214: $4
                   2215: int
                   2216: main ()
                   2217: {
                   2218: if (sizeof (($2)))
                   2219:        return 0;
                   2220:   ;
                   2221:   return 0;
                   2222: }
                   2223: _ACEOF
                   2224: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 2225: 
1.15      bertrand 2226: else
                   2227:   eval "$3=yes"
                   2228: fi
                   2229: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2230: fi
                   2231: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2232: fi
                   2233: eval ac_res=\$$3
                   2234:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2235: $as_echo "$ac_res" >&6; }
                   2236:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2237: 
1.15      bertrand 2238: } # ac_fn_c_check_type
                   2239: cat >config.log <<_ACEOF
                   2240: This file contains any messages produced by compilers while
                   2241: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2242: 
1.29      bertrand 2243: It was created by rpl $as_me 4.0.18, which was
1.15      bertrand 2244: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 2245: 
1.15      bertrand 2246:   $ $0 $@
1.1       bertrand 2247: 
1.15      bertrand 2248: _ACEOF
                   2249: exec 5>>config.log
                   2250: {
                   2251: cat <<_ASUNAME
                   2252: ## --------- ##
                   2253: ## Platform. ##
                   2254: ## --------- ##
1.1       bertrand 2255: 
1.15      bertrand 2256: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2257: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2258: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2259: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2260: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2261: 
1.15      bertrand 2262: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2263: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2264: 
1.15      bertrand 2265: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2266: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2267: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2268: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2269: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2270: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2271: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2272: 
1.15      bertrand 2273: _ASUNAME
1.1       bertrand 2274: 
1.15      bertrand 2275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2276: for as_dir in $PATH
                   2277: do
                   2278:   IFS=$as_save_IFS
                   2279:   test -z "$as_dir" && as_dir=.
                   2280:     $as_echo "PATH: $as_dir"
                   2281:   done
                   2282: IFS=$as_save_IFS
1.1       bertrand 2283: 
1.15      bertrand 2284: } >&5
1.1       bertrand 2285: 
1.15      bertrand 2286: cat >&5 <<_ACEOF
1.1       bertrand 2287: 
                   2288: 
1.15      bertrand 2289: ## ----------- ##
                   2290: ## Core tests. ##
                   2291: ## ----------- ##
1.1       bertrand 2292: 
1.15      bertrand 2293: _ACEOF
1.1       bertrand 2294: 
                   2295: 
1.15      bertrand 2296: # Keep a trace of the command line.
                   2297: # Strip out --no-create and --no-recursion so they do not pile up.
                   2298: # Strip out --silent because we don't want to record it for future runs.
                   2299: # Also quote any args containing shell meta-characters.
                   2300: # Make two passes to allow for proper duplicate-argument suppression.
                   2301: ac_configure_args=
                   2302: ac_configure_args0=
                   2303: ac_configure_args1=
                   2304: ac_must_keep_next=false
                   2305: for ac_pass in 1 2
                   2306: do
                   2307:   for ac_arg
                   2308:   do
                   2309:     case $ac_arg in
                   2310:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2311:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2312:     | -silent | --silent | --silen | --sile | --sil)
                   2313:       continue ;;
                   2314:     *\'*)
                   2315:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2316:     esac
                   2317:     case $ac_pass in
                   2318:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2319:     2)
                   2320:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2321:       if test $ac_must_keep_next = true; then
                   2322:    ac_must_keep_next=false # Got value, back to normal.
                   2323:       else
                   2324:    case $ac_arg in
                   2325:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2326:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2327:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2328:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2329:        case "$ac_configure_args0 " in
                   2330:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2331:        esac
                   2332:        ;;
                   2333:      -* ) ac_must_keep_next=true ;;
                   2334:    esac
                   2335:       fi
                   2336:       as_fn_append ac_configure_args " '$ac_arg'"
                   2337:       ;;
                   2338:     esac
                   2339:   done
                   2340: done
                   2341: { ac_configure_args0=; unset ac_configure_args0;}
                   2342: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2343: 
1.15      bertrand 2344: # When interrupted or exit'd, cleanup temporary files, and complete
                   2345: # config.log.  We remove comments because anyway the quotes in there
                   2346: # would cause problems or look ugly.
                   2347: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2348: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2349: trap 'exit_status=$?
                   2350:   # Save into config.log some information that might help in debugging.
                   2351:   {
                   2352:     echo
1.1       bertrand 2353: 
1.15      bertrand 2354:     cat <<\_ASBOX
                   2355: ## ---------------- ##
                   2356: ## Cache variables. ##
                   2357: ## ---------------- ##
                   2358: _ASBOX
                   2359:     echo
                   2360:     # The following way of writing the cache mishandles newlines in values,
                   2361: (
                   2362:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2363:     eval ac_val=\$$ac_var
                   2364:     case $ac_val in #(
                   2365:     *${as_nl}*)
                   2366:       case $ac_var in #(
                   2367:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2368: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2369:       esac
                   2370:       case $ac_var in #(
                   2371:       _ | IFS | as_nl) ;; #(
                   2372:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2373:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2374:       esac ;;
                   2375:     esac
                   2376:   done
                   2377:   (set) 2>&1 |
                   2378:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2379:     *${as_nl}ac_space=\ *)
                   2380:       sed -n \
                   2381:    "s/'\''/'\''\\\\'\'''\''/g;
                   2382:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2383:       ;; #(
                   2384:     *)
                   2385:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2386:       ;;
                   2387:     esac |
                   2388:     sort
                   2389: )
                   2390:     echo
1.1       bertrand 2391: 
1.15      bertrand 2392:     cat <<\_ASBOX
                   2393: ## ----------------- ##
                   2394: ## Output variables. ##
                   2395: ## ----------------- ##
                   2396: _ASBOX
                   2397:     echo
                   2398:     for ac_var in $ac_subst_vars
                   2399:     do
                   2400:       eval ac_val=\$$ac_var
                   2401:       case $ac_val in
                   2402:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2403:       esac
                   2404:       $as_echo "$ac_var='\''$ac_val'\''"
                   2405:     done | sort
                   2406:     echo
1.1       bertrand 2407: 
1.15      bertrand 2408:     if test -n "$ac_subst_files"; then
                   2409:       cat <<\_ASBOX
                   2410: ## ------------------- ##
                   2411: ## File substitutions. ##
                   2412: ## ------------------- ##
                   2413: _ASBOX
                   2414:       echo
                   2415:       for ac_var in $ac_subst_files
                   2416:       do
                   2417:    eval ac_val=\$$ac_var
                   2418:    case $ac_val in
                   2419:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2420:    esac
                   2421:    $as_echo "$ac_var='\''$ac_val'\''"
                   2422:       done | sort
                   2423:       echo
1.14      bertrand 2424:     fi
                   2425: 
1.15      bertrand 2426:     if test -s confdefs.h; then
                   2427:       cat <<\_ASBOX
                   2428: ## ----------- ##
                   2429: ## confdefs.h. ##
                   2430: ## ----------- ##
                   2431: _ASBOX
                   2432:       echo
                   2433:       cat confdefs.h
                   2434:       echo
                   2435:     fi
                   2436:     test "$ac_signal" != 0 &&
                   2437:       $as_echo "$as_me: caught signal $ac_signal"
                   2438:     $as_echo "$as_me: exit $exit_status"
                   2439:   } >&5
                   2440:   rm -f core *.core core.conftest.* &&
                   2441:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2442:     exit $exit_status
                   2443: ' 0
                   2444: for ac_signal in 1 2 13 15; do
                   2445:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2446: done
                   2447: ac_signal=0
1.14      bertrand 2448: 
1.15      bertrand 2449: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2450: rm -f -r conftest* confdefs.h
1.14      bertrand 2451: 
1.15      bertrand 2452: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2453: 
1.15      bertrand 2454: # Predefined preprocessor variables.
1.14      bertrand 2455: 
1.15      bertrand 2456: cat >>confdefs.h <<_ACEOF
                   2457: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2458: _ACEOF
1.14      bertrand 2459: 
1.15      bertrand 2460: cat >>confdefs.h <<_ACEOF
                   2461: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2462: _ACEOF
                   2463: 
1.15      bertrand 2464: cat >>confdefs.h <<_ACEOF
                   2465: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2466: _ACEOF
1.14      bertrand 2467: 
1.15      bertrand 2468: cat >>confdefs.h <<_ACEOF
                   2469: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2470: _ACEOF
                   2471: 
1.15      bertrand 2472: cat >>confdefs.h <<_ACEOF
                   2473: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2474: _ACEOF
1.14      bertrand 2475: 
1.15      bertrand 2476: cat >>confdefs.h <<_ACEOF
                   2477: #define PACKAGE_URL "$PACKAGE_URL"
                   2478: _ACEOF
1.14      bertrand 2479: 
                   2480: 
1.15      bertrand 2481: # Let the site file select an alternate cache file if it wants to.
                   2482: # Prefer an explicitly selected file to automatically selected ones.
                   2483: ac_site_file1=NONE
                   2484: ac_site_file2=NONE
                   2485: if test -n "$CONFIG_SITE"; then
                   2486:   ac_site_file1=$CONFIG_SITE
                   2487: elif test "x$prefix" != xNONE; then
                   2488:   ac_site_file1=$prefix/share/config.site
                   2489:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2490: else
1.15      bertrand 2491:   ac_site_file1=$ac_default_prefix/share/config.site
                   2492:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2493: fi
1.15      bertrand 2494: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2495: do
                   2496:   test "x$ac_site_file" = xNONE && continue
                   2497:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2498:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2499: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2500:     sed 's/^/| /' "$ac_site_file" >&5
                   2501:     . "$ac_site_file"
                   2502:   fi
                   2503: done
1.14      bertrand 2504: 
1.15      bertrand 2505: if test -r "$cache_file"; then
                   2506:   # Some versions of bash will fail to source /dev/null (special files
                   2507:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2508:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2509:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2510: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2511:     case $cache_file in
                   2512:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2513:       *)                      . "./$cache_file";;
                   2514:     esac
                   2515:   fi
1.14      bertrand 2516: else
1.15      bertrand 2517:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2518: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2519:   >$cache_file
1.14      bertrand 2520: fi
                   2521: 
1.15      bertrand 2522: # Check that the precious variables saved in the cache have kept the same
                   2523: # value.
                   2524: ac_cache_corrupted=false
                   2525: for ac_var in $ac_precious_vars; do
                   2526:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2527:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2528:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2529:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2530:   case $ac_old_set,$ac_new_set in
                   2531:     set,)
                   2532:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2533: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2534:       ac_cache_corrupted=: ;;
                   2535:     ,set)
                   2536:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2537: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2538:       ac_cache_corrupted=: ;;
                   2539:     ,);;
                   2540:     *)
                   2541:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2542:    # differences in whitespace do not lead to failure.
                   2543:    ac_old_val_w=`echo x $ac_old_val`
                   2544:    ac_new_val_w=`echo x $ac_new_val`
                   2545:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2546:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2547: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2548:      ac_cache_corrupted=:
                   2549:    else
                   2550:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2551: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2552:      eval $ac_var=\$ac_old_val
                   2553:    fi
                   2554:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2555: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2556:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2557: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2558:       fi;;
                   2559:   esac
                   2560:   # Pass precious variables to config.status.
                   2561:   if test "$ac_new_set" = set; then
                   2562:     case $ac_new_val in
                   2563:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2564:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2565:     esac
                   2566:     case " $ac_configure_args " in
                   2567:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2568:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2569:     esac
1.14      bertrand 2570:   fi
                   2571: done
1.15      bertrand 2572: if $ac_cache_corrupted; then
                   2573:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2574: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2575:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2576: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2577:   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2578: fi
                   2579: ## -------------------- ##
                   2580: ## Main body of script. ##
                   2581: ## -------------------- ##
1.14      bertrand 2582: 
1.15      bertrand 2583: ac_ext=c
                   2584: ac_cpp='$CPP $CPPFLAGS'
                   2585: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2586: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2587: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2588: 
                   2589: 
1.15      bertrand 2590: ac_aux_dir=
                   2591: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   2592:   for ac_t in install-sh install.sh shtool; do
                   2593:     if test -f "$ac_dir/$ac_t"; then
                   2594:       ac_aux_dir=$ac_dir
                   2595:       ac_install_sh="$ac_aux_dir/$ac_t -c"
                   2596:       break 2
                   2597:     fi
                   2598:   done
1.14      bertrand 2599: done
1.15      bertrand 2600: if test -z "$ac_aux_dir"; then
                   2601:   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   2602: fi
1.14      bertrand 2603: 
1.15      bertrand 2604: # These three variables are undocumented and unsupported,
                   2605: # and are intended to be withdrawn in a future Autoconf release.
                   2606: # They can cause serious problems if a builder's source tree is in a directory
                   2607: # whose full name contains unusual characters.
                   2608: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2609: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2610: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2611: 
                   2612: 
1.15      bertrand 2613: # Make sure we can run config.sub.
                   2614: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   2615:   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2616: 
1.15      bertrand 2617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2618: $as_echo_n "checking build system type... " >&6; }
                   2619: if test "${ac_cv_build+set}" = set; then :
                   2620:   $as_echo_n "(cached) " >&6
1.14      bertrand 2621: else
1.15      bertrand 2622:   ac_build_alias=$build_alias
                   2623: test "x$ac_build_alias" = x &&
                   2624:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2625: test "x$ac_build_alias" = x &&
                   2626:   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
                   2627: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   2628:   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2629: 
                   2630: fi
1.15      bertrand 2631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2632: $as_echo "$ac_cv_build" >&6; }
                   2633: case $ac_cv_build in
                   2634: *-*-*) ;;
                   2635: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
                   2636: esac
                   2637: build=$ac_cv_build
                   2638: ac_save_IFS=$IFS; IFS='-'
                   2639: set x $ac_cv_build
                   2640: shift
                   2641: build_cpu=$1
                   2642: build_vendor=$2
                   2643: shift; shift
                   2644: # Remember, the first character of IFS is used to create $*,
                   2645: # except with old shells:
                   2646: build_os=$*
                   2647: IFS=$ac_save_IFS
                   2648: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2649: 
                   2650: 
1.15      bertrand 2651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2652: $as_echo_n "checking host system type... " >&6; }
                   2653: if test "${ac_cv_host+set}" = set; then :
                   2654:   $as_echo_n "(cached) " >&6
1.14      bertrand 2655: else
1.15      bertrand 2656:   if test "x$host_alias" = x; then
                   2657:   ac_cv_host=$ac_cv_build
1.14      bertrand 2658: else
1.15      bertrand 2659:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   2660:     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2661: fi
                   2662: 
                   2663: fi
1.15      bertrand 2664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2665: $as_echo "$ac_cv_host" >&6; }
                   2666: case $ac_cv_host in
                   2667: *-*-*) ;;
                   2668: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
                   2669: esac
                   2670: host=$ac_cv_host
                   2671: ac_save_IFS=$IFS; IFS='-'
                   2672: set x $ac_cv_host
                   2673: shift
                   2674: host_cpu=$1
                   2675: host_vendor=$2
                   2676: shift; shift
                   2677: # Remember, the first character of IFS is used to create $*,
                   2678: # except with old shells:
                   2679: host_os=$*
                   2680: IFS=$ac_save_IFS
                   2681: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2682: 
                   2683: 
1.15      bertrand 2684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2685: $as_echo_n "checking target system type... " >&6; }
                   2686: if test "${ac_cv_target+set}" = set; then :
                   2687:   $as_echo_n "(cached) " >&6
                   2688: else
                   2689:   if test "x$target_alias" = x; then
                   2690:   ac_cv_target=$ac_cv_host
1.14      bertrand 2691: else
1.15      bertrand 2692:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   2693:     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
                   2694: fi
1.14      bertrand 2695: 
                   2696: fi
1.15      bertrand 2697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2698: $as_echo "$ac_cv_target" >&6; }
                   2699: case $ac_cv_target in
                   2700: *-*-*) ;;
                   2701: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
                   2702: esac
                   2703: target=$ac_cv_target
                   2704: ac_save_IFS=$IFS; IFS='-'
                   2705: set x $ac_cv_target
                   2706: shift
                   2707: target_cpu=$1
                   2708: target_vendor=$2
                   2709: shift; shift
                   2710: # Remember, the first character of IFS is used to create $*,
                   2711: # except with old shells:
                   2712: target_os=$*
                   2713: IFS=$ac_save_IFS
                   2714: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2715: 
1.14      bertrand 2716: 
1.15      bertrand 2717: # The aliases save the names the user supplied, while $host etc.
                   2718: # will get canonicalized.
                   2719: test -n "$target_alias" &&
                   2720:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2721:     NONENONEs,x,x, &&
                   2722:   program_prefix=${target_alias}-
1.1       bertrand 2723: 
1.15      bertrand 2724: am__api_version='1.11'
1.1       bertrand 2725: 
1.14      bertrand 2726: # Find a good install program.  We prefer a C program (faster),
                   2727: # so one script is as good as another.  But avoid the broken or
                   2728: # incompatible versions:
                   2729: # SysV /etc/install, /usr/sbin/install
                   2730: # SunOS /usr/etc/install
                   2731: # IRIX /sbin/install
                   2732: # AIX /bin/install
                   2733: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2734: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2735: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2736: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2737: # OS/2's system install, which has a completely different semantic
                   2738: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2739: # Reject install programs that cannot install multiple files.
                   2740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2741: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2742: if test -z "$INSTALL"; then
1.15      bertrand 2743: if test "${ac_cv_path_install+set}" = set; then :
                   2744:   $as_echo_n "(cached) " >&6
1.14      bertrand 2745: else
                   2746:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2747: for as_dir in $PATH
                   2748: do
                   2749:   IFS=$as_save_IFS
                   2750:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2751:     # Account for people who put trailing slashes in PATH elements.
                   2752: case $as_dir/ in #((
                   2753:   ./ | .// | /[cC]/* | \
1.14      bertrand 2754:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2755:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2756:   /usr/ucb/* ) ;;
                   2757:   *)
                   2758:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2759:     # Don't use installbsd from OSF since it installs stuff as root
                   2760:     # by default.
                   2761:     for ac_prog in ginstall scoinst install; do
                   2762:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2763:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2764:      if test $ac_prog = install &&
                   2765:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2766:        # AIX install.  It has an incompatible calling convention.
                   2767:        :
                   2768:      elif test $ac_prog = install &&
                   2769:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2770:        # program-specific install script used by HP pwplus--don't use.
                   2771:        :
                   2772:      else
1.15      bertrand 2773:        rm -rf conftest.one conftest.two conftest.dir
                   2774:        echo one > conftest.one
                   2775:        echo two > conftest.two
                   2776:        mkdir conftest.dir
                   2777:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2778:          test -s conftest.one && test -s conftest.two &&
                   2779:          test -s conftest.dir/conftest.one &&
                   2780:          test -s conftest.dir/conftest.two
                   2781:        then
                   2782:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2783:          break 3
                   2784:        fi
1.14      bertrand 2785:      fi
                   2786:    fi
                   2787:       done
                   2788:     done
                   2789:     ;;
                   2790: esac
1.15      bertrand 2791: 
                   2792:   done
1.14      bertrand 2793: IFS=$as_save_IFS
1.1       bertrand 2794: 
1.15      bertrand 2795: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2796: 
1.14      bertrand 2797: fi
                   2798:   if test "${ac_cv_path_install+set}" = set; then
                   2799:     INSTALL=$ac_cv_path_install
                   2800:   else
                   2801:     # As a last resort, use the slow shell script.  Don't cache a
                   2802:     # value for INSTALL within a source directory, because that will
                   2803:     # break other packages using the cache if that directory is
                   2804:     # removed, or if the value is a relative name.
                   2805:     INSTALL=$ac_install_sh
                   2806:   fi
                   2807: fi
1.15      bertrand 2808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2809: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2810: 
1.14      bertrand 2811: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2812: # It thinks the first close brace ends the variable substitution.
                   2813: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2814: 
1.14      bertrand 2815: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2816: 
1.14      bertrand 2817: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2818: 
1.15      bertrand 2819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2820: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2821: # Just in case
                   2822: sleep 1
                   2823: echo timestamp > conftest.file
                   2824: # Reject unsafe characters in $srcdir or the absolute working directory
                   2825: # name.  Accept space and tab only in the latter.
                   2826: am_lf='
                   2827: '
                   2828: case `pwd` in
                   2829:   *[\\\"\#\$\&\'\`$am_lf]*)
                   2830:     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
                   2831: esac
                   2832: case $srcdir in
                   2833:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
                   2834:     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
                   2835: esac
                   2836: 
                   2837: # Do `set' in a subshell so we don't clobber the current shell's
                   2838: # arguments.  Must try -L first in case configure is actually a
                   2839: # symlink; some systems play weird games with the mod time of symlinks
                   2840: # (eg FreeBSD returns the mod time of the symlink's containing
                   2841: # directory).
                   2842: if (
                   2843:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2844:    if test "$*" = "X"; then
                   2845:       # -L didn't work.
                   2846:       set X `ls -t "$srcdir/configure" conftest.file`
                   2847:    fi
                   2848:    rm -f conftest.file
                   2849:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2850:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2851: 
                   2852:       # If neither matched, then we have a broken ls.  This can happen
                   2853:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2854:       # broken ls alias from the environment.  This has actually
                   2855:       # happened.  Such a system could not be considered "sane".
                   2856:       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
                   2857: alias in your environment" "$LINENO" 5
                   2858:    fi
                   2859: 
                   2860:    test "$2" = conftest.file
                   2861:    )
                   2862: then
                   2863:    # Ok.
                   2864:    :
1.14      bertrand 2865: else
1.15      bertrand 2866:    as_fn_error "newly created file is older than distributed files!
                   2867: Check your system clock" "$LINENO" 5
1.14      bertrand 2868: fi
1.15      bertrand 2869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2870: $as_echo "yes" >&6; }
                   2871: test "$program_prefix" != NONE &&
                   2872:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2873: # Use a double $ so make ignores it.
                   2874: test "$program_suffix" != NONE &&
                   2875:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2876: # Double any \ or $.
                   2877: # By default was `s,x,x', remove it if useless.
                   2878: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2879: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2880: 
                   2881: # expand $ac_aux_dir to an absolute path
                   2882: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2883: 
1.15      bertrand 2884: if test x"${MISSING+set}" != xset; then
                   2885:   case $am_aux_dir in
                   2886:   *\ * | *\    *)
                   2887:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2888:   *)
1.15      bertrand 2889:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2890:   esac
1.14      bertrand 2891: fi
1.15      bertrand 2892: # Use eval to expand $SHELL
                   2893: if eval "$MISSING --run true"; then
                   2894:   am_missing_run="$MISSING --run "
1.14      bertrand 2895: else
1.15      bertrand 2896:   am_missing_run=
                   2897:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2898: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2899: fi
                   2900: 
                   2901: if test x"${install_sh}" != xset; then
                   2902:   case $am_aux_dir in
                   2903:   *\ * | *\    *)
                   2904:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2905:   *)
                   2906:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2907:   esac
1.14      bertrand 2908: fi
1.15      bertrand 2909: 
                   2910: # Installed binaries are usually stripped using `strip' when the user
                   2911: # run `make install-strip'.  However `strip' might not be the right
                   2912: # tool to use in cross-compilation environments, therefore Automake
                   2913: # will honor the `STRIP' environment variable to overrule this program.
                   2914: if test "$cross_compiling" != no; then
                   2915:   if test -n "$ac_tool_prefix"; then
                   2916:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2917: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2919: $as_echo_n "checking for $ac_word... " >&6; }
                   2920: if test "${ac_cv_prog_STRIP+set}" = set; then :
                   2921:   $as_echo_n "(cached) " >&6
1.14      bertrand 2922: else
1.15      bertrand 2923:   if test -n "$STRIP"; then
                   2924:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2925: else
                   2926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2927: for as_dir in $PATH
                   2928: do
                   2929:   IFS=$as_save_IFS
                   2930:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2931:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2932:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2933:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2934:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2935:     break 2
                   2936:   fi
                   2937: done
1.15      bertrand 2938:   done
1.14      bertrand 2939: IFS=$as_save_IFS
1.1       bertrand 2940: 
1.14      bertrand 2941: fi
                   2942: fi
1.15      bertrand 2943: STRIP=$ac_cv_prog_STRIP
                   2944: if test -n "$STRIP"; then
                   2945:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2946: $as_echo "$STRIP" >&6; }
1.14      bertrand 2947: else
1.15      bertrand 2948:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2949: $as_echo "no" >&6; }
1.14      bertrand 2950: fi
1.1       bertrand 2951: 
                   2952: 
1.14      bertrand 2953: fi
1.15      bertrand 2954: if test -z "$ac_cv_prog_STRIP"; then
                   2955:   ac_ct_STRIP=$STRIP
                   2956:   # Extract the first word of "strip", so it can be a program name with args.
                   2957: set dummy strip; ac_word=$2
                   2958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2959: $as_echo_n "checking for $ac_word... " >&6; }
                   2960: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
                   2961:   $as_echo_n "(cached) " >&6
1.14      bertrand 2962: else
1.15      bertrand 2963:   if test -n "$ac_ct_STRIP"; then
                   2964:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 2965: else
1.14      bertrand 2966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2967: for as_dir in $PATH
1.1       bertrand 2968: do
1.14      bertrand 2969:   IFS=$as_save_IFS
                   2970:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2971:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2972:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2973:     ac_cv_prog_ac_ct_STRIP="strip"
                   2974:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2975:     break 2
1.1       bertrand 2976:   fi
                   2977: done
1.15      bertrand 2978:   done
1.14      bertrand 2979: IFS=$as_save_IFS
1.1       bertrand 2980: 
1.14      bertrand 2981: fi
                   2982: fi
1.15      bertrand 2983: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   2984: if test -n "$ac_ct_STRIP"; then
                   2985:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   2986: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 2987: else
1.15      bertrand 2988:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2989: $as_echo "no" >&6; }
1.1       bertrand 2990: fi
                   2991: 
1.15      bertrand 2992:   if test "x$ac_ct_STRIP" = x; then
                   2993:     STRIP=":"
1.14      bertrand 2994:   else
                   2995:     case $cross_compiling:$ac_tool_warned in
                   2996: yes:)
1.15      bertrand 2997: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   2998: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 2999: ac_tool_warned=yes ;;
                   3000: esac
1.15      bertrand 3001:     STRIP=$ac_ct_STRIP
1.1       bertrand 3002:   fi
1.14      bertrand 3003: else
1.15      bertrand 3004:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3005: fi
                   3006: 
1.15      bertrand 3007: fi
                   3008: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3009: 
1.15      bertrand 3010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3011: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3012: if test -z "$MKDIR_P"; then
                   3013:   if test "${ac_cv_path_mkdir+set}" = set; then :
                   3014:   $as_echo_n "(cached) " >&6
1.14      bertrand 3015: else
1.15      bertrand 3016:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3017: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3018: do
                   3019:   IFS=$as_save_IFS
                   3020:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3021:     for ac_prog in mkdir gmkdir; do
                   3022:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3023:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3024:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3025:         'mkdir (GNU coreutils) '* | \
                   3026:         'mkdir (coreutils) '* | \
                   3027:         'mkdir (fileutils) '4.1*)
                   3028:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3029:           break 3;;
                   3030:       esac
                   3031:     done
                   3032:        done
                   3033:   done
1.14      bertrand 3034: IFS=$as_save_IFS
1.1       bertrand 3035: 
                   3036: fi
1.15      bertrand 3037: 
                   3038:   test -d ./--version && rmdir ./--version
                   3039:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3040:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3041:   else
                   3042:     # As a last resort, use the slow shell script.  Don't cache a
                   3043:     # value for MKDIR_P within a source directory, because that will
                   3044:     # break other packages using the cache if that directory is
                   3045:     # removed, or if the value is a relative name.
                   3046:     MKDIR_P="$ac_install_sh -d"
                   3047:   fi
1.14      bertrand 3048: fi
1.15      bertrand 3049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3050: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3051: 
1.15      bertrand 3052: mkdir_p="$MKDIR_P"
                   3053: case $mkdir_p in
                   3054:   [\\/$]* | ?:[\\/]*) ;;
                   3055:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3056: esac
1.1       bertrand 3057: 
1.15      bertrand 3058: for ac_prog in gawk mawk nawk awk
                   3059: do
                   3060:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3061: set dummy $ac_prog; ac_word=$2
                   3062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3063: $as_echo_n "checking for $ac_word... " >&6; }
                   3064: if test "${ac_cv_prog_AWK+set}" = set; then :
                   3065:   $as_echo_n "(cached) " >&6
1.1       bertrand 3066: else
1.15      bertrand 3067:   if test -n "$AWK"; then
                   3068:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3069: else
1.14      bertrand 3070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3071: for as_dir in $PATH
                   3072: do
                   3073:   IFS=$as_save_IFS
                   3074:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3075:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3076:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3077:     ac_cv_prog_AWK="$ac_prog"
                   3078:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3079:     break 2
                   3080:   fi
                   3081: done
1.15      bertrand 3082:   done
1.14      bertrand 3083: IFS=$as_save_IFS
                   3084: 
                   3085: fi
1.1       bertrand 3086: fi
1.15      bertrand 3087: AWK=$ac_cv_prog_AWK
                   3088: if test -n "$AWK"; then
                   3089:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3090: $as_echo "$AWK" >&6; }
1.14      bertrand 3091: else
1.15      bertrand 3092:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3093: $as_echo "no" >&6; }
1.1       bertrand 3094: fi
                   3095: 
                   3096: 
1.15      bertrand 3097:   test -n "$AWK" && break
                   3098: done
1.1       bertrand 3099: 
1.15      bertrand 3100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3101: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3102: set x ${MAKE-make}
                   3103: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   3104: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   3105:   $as_echo_n "(cached) " >&6
1.14      bertrand 3106: else
1.15      bertrand 3107:   cat >conftest.make <<\_ACEOF
                   3108: SHELL = /bin/sh
                   3109: all:
                   3110:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3111: _ACEOF
                   3112: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   3113: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3114:   *@@@%%%=?*=@@@%%%*)
                   3115:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3116:   *)
                   3117:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3118: esac
                   3119: rm -f conftest.make
                   3120: fi
                   3121: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3122:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3123: $as_echo "yes" >&6; }
                   3124:   SET_MAKE=
1.1       bertrand 3125: else
1.15      bertrand 3126:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3127: $as_echo "no" >&6; }
                   3128:   SET_MAKE="MAKE=${MAKE-make}"
                   3129: fi
1.1       bertrand 3130: 
1.15      bertrand 3131: rm -rf .tst 2>/dev/null
                   3132: mkdir .tst 2>/dev/null
                   3133: if test -d .tst; then
                   3134:   am__leading_dot=.
                   3135: else
                   3136:   am__leading_dot=_
1.14      bertrand 3137: fi
1.15      bertrand 3138: rmdir .tst 2>/dev/null
                   3139: 
                   3140: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3141:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3142:   # is not polluted with repeated "-I."
                   3143:   am__isrc=' -I$(srcdir)'
                   3144:   # test to see if srcdir already configured
                   3145:   if test -f $srcdir/config.status; then
                   3146:     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
                   3147:   fi
1.1       bertrand 3148: fi
1.15      bertrand 3149: 
                   3150: # test whether we have cygpath
                   3151: if test -z "$CYGPATH_W"; then
                   3152:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3153:     CYGPATH_W='cygpath -w'
                   3154:   else
                   3155:     CYGPATH_W=echo
                   3156:   fi
1.1       bertrand 3157: fi
                   3158: 
                   3159: 
1.15      bertrand 3160: # Define the identity of the package.
                   3161:  PACKAGE='rpl'
1.29      bertrand 3162:  VERSION='4.0.18'
1.15      bertrand 3163: 
                   3164: 
                   3165: cat >>confdefs.h <<_ACEOF
                   3166: #define PACKAGE "$PACKAGE"
                   3167: _ACEOF
                   3168: 
                   3169: 
                   3170: cat >>confdefs.h <<_ACEOF
                   3171: #define VERSION "$VERSION"
                   3172: _ACEOF
                   3173: 
                   3174: # Some tools Automake needs.
                   3175: 
                   3176: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3177: 
                   3178: 
                   3179: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3180: 
                   3181: 
                   3182: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3183: 
                   3184: 
                   3185: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3186: 
                   3187: 
                   3188: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3189: 
                   3190: # We need awk for the "check" target.  The system "awk" is bad on
                   3191: # some platforms.
                   3192: # Always define AMTAR for backward compatibility.
                   3193: 
                   3194: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3195: 
                   3196: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3197: 
                   3198: 
                   3199: 
                   3200: 
1.1       bertrand 3201: 
                   3202: 
1.15      bertrand 3203: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3204: 
                   3205: 
1.27      bertrand 3206: NCURSES=ncurses-5.7-20100619
1.15      bertrand 3207: READLINE=readline-6.1
1.30    ! bertrand 3208: UNITS=units-1.88
1.15      bertrand 3209: GSL=gsl-1.14
                   3210: GPP=gpp-2.24
                   3211: GNUPLOT=gnuplot-4.4.0
                   3212: FILE=file-5.03
                   3213: ICONV=libiconv-1.13.1
1.30    ! bertrand 3214: SQLITE=sqlite-3.7.0
1.26      bertrand 3215: OPENSSL=openssl-1.0.0a
1.14      bertrand 3216: 
1.15      bertrand 3217: ac_ext=c
                   3218: ac_cpp='$CPP $CPPFLAGS'
                   3219: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3220: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3221: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3222: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3223:   for ac_prog in gcc
1.15      bertrand 3224:   do
                   3225:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3226: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3228: $as_echo_n "checking for $ac_word... " >&6; }
                   3229: if test "${ac_cv_prog_CC+set}" = set; then :
                   3230:   $as_echo_n "(cached) " >&6
1.1       bertrand 3231: else
1.15      bertrand 3232:   if test -n "$CC"; then
                   3233:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3234: else
                   3235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3236: for as_dir in $PATH
                   3237: do
                   3238:   IFS=$as_save_IFS
                   3239:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3240:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3241:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3242:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3243:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3244:     break 2
                   3245:   fi
                   3246: done
1.15      bertrand 3247:   done
1.1       bertrand 3248: IFS=$as_save_IFS
                   3249: 
                   3250: fi
                   3251: fi
1.15      bertrand 3252: CC=$ac_cv_prog_CC
                   3253: if test -n "$CC"; then
                   3254:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3255: $as_echo "$CC" >&6; }
1.1       bertrand 3256: else
1.15      bertrand 3257:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3258: $as_echo "no" >&6; }
1.1       bertrand 3259: fi
                   3260: 
                   3261: 
1.15      bertrand 3262:     test -n "$CC" && break
                   3263:   done
                   3264: fi
                   3265: if test -z "$CC"; then
                   3266:   ac_ct_CC=$CC
1.23      bertrand 3267:   for ac_prog in gcc
1.15      bertrand 3268: do
                   3269:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3270: set dummy $ac_prog; ac_word=$2
                   3271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3272: $as_echo_n "checking for $ac_word... " >&6; }
                   3273: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
                   3274:   $as_echo_n "(cached) " >&6
1.1       bertrand 3275: else
1.15      bertrand 3276:   if test -n "$ac_ct_CC"; then
                   3277:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3278: else
                   3279: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3280: for as_dir in $PATH
                   3281: do
                   3282:   IFS=$as_save_IFS
                   3283:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3284:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3285:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3286:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3287:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3288:     break 2
                   3289:   fi
                   3290: done
1.15      bertrand 3291:   done
1.1       bertrand 3292: IFS=$as_save_IFS
                   3293: 
                   3294: fi
                   3295: fi
1.15      bertrand 3296: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3297: if test -n "$ac_ct_CC"; then
                   3298:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3299: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3300: else
1.15      bertrand 3301:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3302: $as_echo "no" >&6; }
1.1       bertrand 3303: fi
                   3304: 
                   3305: 
1.15      bertrand 3306:   test -n "$ac_ct_CC" && break
                   3307: done
1.1       bertrand 3308: 
1.15      bertrand 3309:   if test "x$ac_ct_CC" = x; then
                   3310:     CC=""
                   3311:   else
                   3312:     case $cross_compiling:$ac_tool_warned in
                   3313: yes:)
                   3314: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3315: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3316: ac_tool_warned=yes ;;
                   3317: esac
                   3318:     CC=$ac_ct_CC
1.1       bertrand 3319:   fi
                   3320: fi
                   3321: 
                   3322: 
1.15      bertrand 3323: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3324: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3325: as_fn_error "no acceptable C compiler found in \$PATH
                   3326: See \`config.log' for more details." "$LINENO" 5; }
1.1       bertrand 3327: 
1.15      bertrand 3328: # Provide some information about the compiler.
                   3329: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3330: set X $ac_compile
                   3331: ac_compiler=$2
                   3332: for ac_option in --version -v -V -qversion; do
                   3333:   { { ac_try="$ac_compiler $ac_option >&5"
                   3334: case "(($ac_try" in
                   3335:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3336:   *) ac_try_echo=$ac_try;;
                   3337: esac
                   3338: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3339: $as_echo "$ac_try_echo"; } >&5
                   3340:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3341:   ac_status=$?
                   3342:   if test -s conftest.err; then
                   3343:     sed '10a\
                   3344: ... rest of stderr output deleted ...
                   3345:          10q' conftest.err >conftest.er1
                   3346:     cat conftest.er1 >&5
1.1       bertrand 3347:   fi
1.15      bertrand 3348:   rm -f conftest.er1 conftest.err
                   3349:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3350:   test $ac_status = 0; }
1.1       bertrand 3351: done
                   3352: 
1.15      bertrand 3353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3354: /* end confdefs.h.  */
                   3355: 
                   3356: int
                   3357: main ()
                   3358: {
1.14      bertrand 3359: 
1.15      bertrand 3360:   ;
                   3361:   return 0;
                   3362: }
                   3363: _ACEOF
                   3364: ac_clean_files_save=$ac_clean_files
                   3365: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3366: # Try to create an executable without -o first, disregard a.out.
                   3367: # It will help us diagnose broken compilers, and finding out an intuition
                   3368: # of exeext.
                   3369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3370: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3371: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3372: 
1.15      bertrand 3373: # The possible output files:
                   3374: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3375: 
1.15      bertrand 3376: ac_rmfiles=
                   3377: for ac_file in $ac_files
1.1       bertrand 3378: do
1.15      bertrand 3379:   case $ac_file in
                   3380:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3381:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3382:   esac
1.1       bertrand 3383: done
1.15      bertrand 3384: rm -f $ac_rmfiles
                   3385: 
                   3386: if { { ac_try="$ac_link_default"
                   3387: case "(($ac_try" in
                   3388:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3389:   *) ac_try_echo=$ac_try;;
                   3390: esac
                   3391: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3392: $as_echo "$ac_try_echo"; } >&5
                   3393:   (eval "$ac_link_default") 2>&5
                   3394:   ac_status=$?
                   3395:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3396:   test $ac_status = 0; }; then :
                   3397:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3398: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3399: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3400: # so that the user can short-circuit this test for compilers unknown to
                   3401: # Autoconf.
                   3402: for ac_file in $ac_files ''
                   3403: do
                   3404:   test -f "$ac_file" || continue
                   3405:   case $ac_file in
                   3406:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3407:    ;;
                   3408:     [ab].out )
                   3409:    # We found the default executable, but exeext='' is most
                   3410:    # certainly right.
                   3411:    break;;
                   3412:     *.* )
                   3413:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3414:    then :; else
                   3415:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3416:    fi
                   3417:    # We set ac_cv_exeext here because the later test for it is not
                   3418:    # safe: cross compilers may not add the suffix if given an `-o'
                   3419:    # argument, so we may need to know it at that point already.
                   3420:    # Even if this section looks crufty: it has the advantage of
                   3421:    # actually working.
                   3422:    break;;
                   3423:     * )
                   3424:    break;;
                   3425:   esac
1.14      bertrand 3426: done
1.15      bertrand 3427: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3428: 
1.14      bertrand 3429: else
1.15      bertrand 3430:   ac_file=''
1.1       bertrand 3431: fi
1.15      bertrand 3432: if test -z "$ac_file"; then :
                   3433:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3434: $as_echo "no" >&6; }
                   3435: $as_echo "$as_me: failed program was:" >&5
                   3436: sed 's/^/| /' conftest.$ac_ext >&5
                   3437: 
                   3438: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3439: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3440: { as_fn_set_status 77
                   3441: as_fn_error "C compiler cannot create executables
                   3442: See \`config.log' for more details." "$LINENO" 5; }; }
                   3443: else
                   3444:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3445: $as_echo "yes" >&6; }
                   3446: fi
                   3447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3448: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3450: $as_echo "$ac_file" >&6; }
                   3451: ac_exeext=$ac_cv_exeext
1.1       bertrand 3452: 
1.15      bertrand 3453: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3454: ac_clean_files=$ac_clean_files_save
                   3455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3456: $as_echo_n "checking for suffix of executables... " >&6; }
                   3457: if { { ac_try="$ac_link"
                   3458: case "(($ac_try" in
                   3459:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3460:   *) ac_try_echo=$ac_try;;
                   3461: esac
                   3462: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3463: $as_echo "$ac_try_echo"; } >&5
                   3464:   (eval "$ac_link") 2>&5
                   3465:   ac_status=$?
                   3466:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3467:   test $ac_status = 0; }; then :
                   3468:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3469: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3470: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3471: # `rm'.
                   3472: for ac_file in conftest.exe conftest conftest.*; do
                   3473:   test -f "$ac_file" || continue
                   3474:   case $ac_file in
                   3475:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3476:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3477:      break;;
                   3478:     * ) break;;
                   3479:   esac
                   3480: done
1.14      bertrand 3481: else
1.15      bertrand 3482:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3483: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3484: as_fn_error "cannot compute suffix of executables: cannot compile and link
                   3485: See \`config.log' for more details." "$LINENO" 5; }
                   3486: fi
                   3487: rm -f conftest conftest$ac_cv_exeext
                   3488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3489: $as_echo "$ac_cv_exeext" >&6; }
                   3490: 
                   3491: rm -f conftest.$ac_ext
                   3492: EXEEXT=$ac_cv_exeext
                   3493: ac_exeext=$EXEEXT
                   3494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3495: /* end confdefs.h.  */
1.15      bertrand 3496: #include <stdio.h>
1.14      bertrand 3497: int
                   3498: main ()
                   3499: {
1.15      bertrand 3500: FILE *f = fopen ("conftest.out", "w");
                   3501:  return ferror (f) || fclose (f) != 0;
                   3502: 
1.14      bertrand 3503:   ;
                   3504:   return 0;
                   3505: }
                   3506: _ACEOF
1.15      bertrand 3507: ac_clean_files="$ac_clean_files conftest.out"
                   3508: # Check that the compiler produces executables we can run.  If not, either
                   3509: # the compiler is broken, or we cross compile.
                   3510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3511: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3512: if test "$cross_compiling" != yes; then
                   3513:   { { ac_try="$ac_link"
1.1       bertrand 3514: case "(($ac_try" in
                   3515:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3516:   *) ac_try_echo=$ac_try;;
                   3517: esac
1.15      bertrand 3518: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3519: $as_echo "$ac_try_echo"; } >&5
                   3520:   (eval "$ac_link") 2>&5
                   3521:   ac_status=$?
                   3522:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3523:   test $ac_status = 0; }
                   3524:   if { ac_try='./conftest$ac_cv_exeext'
                   3525:   { { case "(($ac_try" in
                   3526:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3527:   *) ac_try_echo=$ac_try;;
                   3528: esac
                   3529: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3530: $as_echo "$ac_try_echo"; } >&5
                   3531:   (eval "$ac_try") 2>&5
1.1       bertrand 3532:   ac_status=$?
1.15      bertrand 3533:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3534:   test $ac_status = 0; }; }; then
                   3535:     cross_compiling=no
                   3536:   else
                   3537:     if test "$cross_compiling" = maybe; then
                   3538:    cross_compiling=yes
                   3539:     else
                   3540:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3541: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3542: as_fn_error "cannot run C compiled programs.
                   3543: If you meant to cross compile, use \`--host'.
                   3544: See \`config.log' for more details." "$LINENO" 5; }
                   3545:     fi
                   3546:   fi
1.14      bertrand 3547: fi
1.15      bertrand 3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3549: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3550: 
1.15      bertrand 3551: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3552: ac_clean_files=$ac_clean_files_save
                   3553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3554: $as_echo_n "checking for suffix of object files... " >&6; }
                   3555: if test "${ac_cv_objext+set}" = set; then :
                   3556:   $as_echo_n "(cached) " >&6
1.14      bertrand 3557: else
1.15      bertrand 3558:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3559: /* end confdefs.h.  */
                   3560: 
                   3561: int
                   3562: main ()
                   3563: {
1.15      bertrand 3564: 
1.1       bertrand 3565:   ;
                   3566:   return 0;
                   3567: }
                   3568: _ACEOF
1.15      bertrand 3569: rm -f conftest.o conftest.obj
                   3570: if { { ac_try="$ac_compile"
1.1       bertrand 3571: case "(($ac_try" in
                   3572:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3573:   *) ac_try_echo=$ac_try;;
                   3574: esac
1.15      bertrand 3575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3576: $as_echo "$ac_try_echo"; } >&5
                   3577:   (eval "$ac_compile") 2>&5
1.1       bertrand 3578:   ac_status=$?
1.15      bertrand 3579:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3580:   test $ac_status = 0; }; then :
                   3581:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3582:   test -f "$ac_file" || continue;
                   3583:   case $ac_file in
                   3584:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3585:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3586:        break;;
                   3587:   esac
                   3588: done
1.14      bertrand 3589: else
1.15      bertrand 3590:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3591: sed 's/^/| /' conftest.$ac_ext >&5
                   3592: 
1.15      bertrand 3593: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3594: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3595: as_fn_error "cannot compute suffix of object files: cannot compile
                   3596: See \`config.log' for more details." "$LINENO" 5; }
1.14      bertrand 3597: fi
1.15      bertrand 3598: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3599: fi
                   3600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3601: $as_echo "$ac_cv_objext" >&6; }
                   3602: OBJEXT=$ac_cv_objext
                   3603: ac_objext=$OBJEXT
                   3604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3605: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3606: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
                   3607:   $as_echo_n "(cached) " >&6
                   3608: else
                   3609:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3610: /* end confdefs.h.  */
                   3611: 
                   3612: int
                   3613: main ()
                   3614: {
                   3615: #ifndef __GNUC__
                   3616:        choke me
                   3617: #endif
1.14      bertrand 3618: 
1.15      bertrand 3619:   ;
                   3620:   return 0;
                   3621: }
                   3622: _ACEOF
                   3623: if ac_fn_c_try_compile "$LINENO"; then :
                   3624:   ac_compiler_gnu=yes
1.14      bertrand 3625: else
1.15      bertrand 3626:   ac_compiler_gnu=no
1.14      bertrand 3627: fi
1.15      bertrand 3628: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3629: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3630: 
1.15      bertrand 3631: fi
                   3632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3633: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3634: if test $ac_compiler_gnu = yes; then
                   3635:   GCC=yes
1.14      bertrand 3636: else
1.15      bertrand 3637:   GCC=
1.14      bertrand 3638: fi
1.15      bertrand 3639: ac_test_CFLAGS=${CFLAGS+set}
                   3640: ac_save_CFLAGS=$CFLAGS
                   3641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3642: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3643: if test "${ac_cv_prog_cc_g+set}" = set; then :
                   3644:   $as_echo_n "(cached) " >&6
                   3645: else
                   3646:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3647:    ac_c_werror_flag=yes
                   3648:    ac_cv_prog_cc_g=no
                   3649:    CFLAGS="-g"
                   3650:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3651: /* end confdefs.h.  */
1.14      bertrand 3652: 
1.15      bertrand 3653: int
                   3654: main ()
                   3655: {
1.14      bertrand 3656: 
1.15      bertrand 3657:   ;
                   3658:   return 0;
                   3659: }
                   3660: _ACEOF
                   3661: if ac_fn_c_try_compile "$LINENO"; then :
                   3662:   ac_cv_prog_cc_g=yes
                   3663: else
                   3664:   CFLAGS=""
                   3665:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3666: /* end confdefs.h.  */
1.14      bertrand 3667: 
1.15      bertrand 3668: int
                   3669: main ()
                   3670: {
1.14      bertrand 3671: 
1.15      bertrand 3672:   ;
                   3673:   return 0;
                   3674: }
                   3675: _ACEOF
                   3676: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3677: 
1.15      bertrand 3678: else
                   3679:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3680:     CFLAGS="-g"
                   3681:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3682: /* end confdefs.h.  */
1.14      bertrand 3683: 
1.15      bertrand 3684: int
                   3685: main ()
                   3686: {
1.14      bertrand 3687: 
1.15      bertrand 3688:   ;
                   3689:   return 0;
                   3690: }
                   3691: _ACEOF
                   3692: if ac_fn_c_try_compile "$LINENO"; then :
                   3693:   ac_cv_prog_cc_g=yes
                   3694: fi
                   3695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3696: fi
                   3697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3698: fi
                   3699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3700:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3701: fi
                   3702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3703: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3704: if test "$ac_test_CFLAGS" = set; then
                   3705:   CFLAGS=$ac_save_CFLAGS
                   3706: elif test $ac_cv_prog_cc_g = yes; then
                   3707:   if test "$GCC" = yes; then
                   3708:     CFLAGS="-g -O2"
                   3709:   else
                   3710:     CFLAGS="-g"
                   3711:   fi
                   3712: else
                   3713:   if test "$GCC" = yes; then
                   3714:     CFLAGS="-O2"
                   3715:   else
                   3716:     CFLAGS=
                   3717:   fi
                   3718: fi
                   3719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3720: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3721: if test "${ac_cv_prog_cc_c89+set}" = set; then :
                   3722:   $as_echo_n "(cached) " >&6
1.1       bertrand 3723: else
1.15      bertrand 3724:   ac_cv_prog_cc_c89=no
                   3725: ac_save_CC=$CC
                   3726: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3727: /* end confdefs.h.  */
1.15      bertrand 3728: #include <stdarg.h>
                   3729: #include <stdio.h>
                   3730: #include <sys/types.h>
                   3731: #include <sys/stat.h>
                   3732: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3733: struct buf { int x; };
                   3734: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3735: static char *e (p, i)
                   3736:      char **p;
                   3737:      int i;
                   3738: {
                   3739:   return p[i];
                   3740: }
                   3741: static char *f (char * (*g) (char **, int), char **p, ...)
                   3742: {
                   3743:   char *s;
                   3744:   va_list v;
                   3745:   va_start (v,p);
                   3746:   s = g (p, va_arg (v,int));
                   3747:   va_end (v);
                   3748:   return s;
                   3749: }
                   3750: 
                   3751: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3752:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3753:    These don't provoke an error unfortunately, instead are silently treated
                   3754:    as 'x'.  The following induces an error, until -std is added to get
                   3755:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3756:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3757:    that's true only with -std.  */
                   3758: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3759: 
1.15      bertrand 3760: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3761:    inside strings and character constants.  */
                   3762: #define FOO(x) 'x'
                   3763: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3764: 
1.15      bertrand 3765: int test (int i, double x);
                   3766: struct s1 {int (*f) (int a);};
                   3767: struct s2 {int (*f) (double a);};
                   3768: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3769: int argc;
                   3770: char **argv;
1.14      bertrand 3771: int
                   3772: main ()
                   3773: {
1.15      bertrand 3774: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3775:   ;
                   3776:   return 0;
                   3777: }
                   3778: _ACEOF
1.15      bertrand 3779: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3780:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3781: do
                   3782:   CC="$ac_save_CC $ac_arg"
                   3783:   if ac_fn_c_try_compile "$LINENO"; then :
                   3784:   ac_cv_prog_cc_c89=$ac_arg
                   3785: fi
                   3786: rm -f core conftest.err conftest.$ac_objext
                   3787:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3788: done
                   3789: rm -f conftest.$ac_ext
                   3790: CC=$ac_save_CC
                   3791: 
                   3792: fi
                   3793: # AC_CACHE_VAL
                   3794: case "x$ac_cv_prog_cc_c89" in
                   3795:   x)
                   3796:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3797: $as_echo "none needed" >&6; } ;;
                   3798:   xno)
                   3799:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3800: $as_echo "unsupported" >&6; } ;;
                   3801:   *)
                   3802:     CC="$CC $ac_cv_prog_cc_c89"
                   3803:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3804: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3805: esac
1.15      bertrand 3806: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3807: 
                   3808: fi
                   3809: 
1.15      bertrand 3810: ac_ext=c
                   3811: ac_cpp='$CPP $CPPFLAGS'
                   3812: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3813: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3814: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3815: DEPDIR="${am__leading_dot}deps"
                   3816: 
                   3817: ac_config_commands="$ac_config_commands depfiles"
                   3818: 
                   3819: 
                   3820: am_make=${MAKE-make}
                   3821: cat > confinc << 'END'
                   3822: am__doit:
                   3823:    @echo this is the am__doit target
                   3824: .PHONY: am__doit
                   3825: END
                   3826: # If we don't find an include directive, just comment out the code.
                   3827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3828: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3829: am__include="#"
                   3830: am__quote=
                   3831: _am_result=none
                   3832: # First try GNU make style include.
                   3833: echo "include confinc" > confmf
                   3834: # Ignore all kinds of additional output from `make'.
                   3835: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3836: *the\ am__doit\ target*)
                   3837:   am__include=include
                   3838:   am__quote=
                   3839:   _am_result=GNU
                   3840:   ;;
                   3841: esac
                   3842: # Now try BSD make style include.
                   3843: if test "$am__include" = "#"; then
                   3844:    echo '.include "confinc"' > confmf
                   3845:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3846:    *the\ am__doit\ target*)
                   3847:      am__include=.include
                   3848:      am__quote="\""
                   3849:      _am_result=BSD
                   3850:      ;;
                   3851:    esac
1.14      bertrand 3852: fi
                   3853: 
                   3854: 
1.15      bertrand 3855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3856: $as_echo "$_am_result" >&6; }
                   3857: rm -f confinc confmf
                   3858: 
                   3859: # Check whether --enable-dependency-tracking was given.
                   3860: if test "${enable_dependency_tracking+set}" = set; then :
                   3861:   enableval=$enable_dependency_tracking;
                   3862: fi
                   3863: 
                   3864: if test "x$enable_dependency_tracking" != xno; then
                   3865:   am_depcomp="$ac_aux_dir/depcomp"
                   3866:   AMDEPBACKSLASH='\'
                   3867: fi
                   3868:  if test "x$enable_dependency_tracking" != xno; then
                   3869:   AMDEP_TRUE=
                   3870:   AMDEP_FALSE='#'
1.1       bertrand 3871: else
1.15      bertrand 3872:   AMDEP_TRUE='#'
                   3873:   AMDEP_FALSE=
1.14      bertrand 3874: fi
1.1       bertrand 3875: 
1.14      bertrand 3876: 
                   3877: 
1.15      bertrand 3878: depcc="$CC"   am_compiler_list=
1.14      bertrand 3879: 
1.15      bertrand 3880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3881: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   3882: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
                   3883:   $as_echo_n "(cached) " >&6
1.14      bertrand 3884: else
1.15      bertrand 3885:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3886:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3887:   # making bogus files that we don't know about and never remove.  For
                   3888:   # instance it was reported that on HP-UX the gcc test will end up
                   3889:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3890:   # in D'.
                   3891:   mkdir conftest.dir
                   3892:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3893:   # using a relative directory.
                   3894:   cp "$am_depcomp" conftest.dir
                   3895:   cd conftest.dir
                   3896:   # We will build objects and dependencies in a subdirectory because
                   3897:   # it helps to detect inapplicable dependency modes.  For instance
                   3898:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3899:   # side effect of compilation, but ICC will put the dependencies in
                   3900:   # the current directory while Tru64 will put them in the object
                   3901:   # directory.
                   3902:   mkdir sub
1.14      bertrand 3903: 
1.15      bertrand 3904:   am_cv_CC_dependencies_compiler_type=none
                   3905:   if test "$am_compiler_list" = ""; then
                   3906:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3907:   fi
                   3908:   am__universal=false
                   3909:   case " $depcc " in #(
                   3910:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3911:      esac
1.14      bertrand 3912: 
1.15      bertrand 3913:   for depmode in $am_compiler_list; do
                   3914:     # Setup a source with many dependencies, because some compilers
                   3915:     # like to wrap large dependency lists on column 80 (with \), and
                   3916:     # we should not choose a depcomp mode which is confused by this.
                   3917:     #
                   3918:     # We need to recreate these files for each test, as the compiler may
                   3919:     # overwrite some of them when testing with obscure command lines.
                   3920:     # This happens at least with the AIX C compiler.
                   3921:     : > sub/conftest.c
                   3922:     for i in 1 2 3 4 5 6; do
                   3923:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3924:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3925:       # Solaris 8's {/usr,}/bin/sh.
                   3926:       touch sub/conftst$i.h
                   3927:     done
                   3928:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3929: 
1.15      bertrand 3930:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3931:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3932:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3933:     # versions had trouble with output in subdirs
                   3934:     am__obj=sub/conftest.${OBJEXT-o}
                   3935:     am__minus_obj="-o $am__obj"
                   3936:     case $depmode in
                   3937:     gcc)
                   3938:       # This depmode causes a compiler race in universal mode.
                   3939:       test "$am__universal" = false || continue
                   3940:       ;;
                   3941:     nosideeffect)
                   3942:       # after this tag, mechanisms are not by side-effect, so they'll
                   3943:       # only be used when explicitly requested
                   3944:       if test "x$enable_dependency_tracking" = xyes; then
                   3945:    continue
                   3946:       else
                   3947:    break
                   3948:       fi
                   3949:       ;;
                   3950:     msvisualcpp | msvcmsys)
                   3951:       # This compiler won't grok `-c -o', but also, the minuso test has
                   3952:       # not run yet.  These depmodes are late enough in the game, and
                   3953:       # so weak that their functioning should not be impacted.
                   3954:       am__obj=conftest.${OBJEXT-o}
                   3955:       am__minus_obj=
                   3956:       ;;
                   3957:     none) break ;;
                   3958:     esac
                   3959:     if depmode=$depmode \
                   3960:        source=sub/conftest.c object=$am__obj \
                   3961:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   3962:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   3963:          >/dev/null 2>conftest.err &&
                   3964:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   3965:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   3966:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   3967:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   3968:       # icc doesn't choke on unknown options, it will just issue warnings
                   3969:       # or remarks (even with -Werror).  So we grep stderr for any message
                   3970:       # that says an option was ignored or not supported.
                   3971:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   3972:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   3973:       # The diagnosis changed in icc 8.0:
                   3974:       #   icc: Command line remark: option '-MP' not supported
                   3975:       if (grep 'ignoring option' conftest.err ||
                   3976:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   3977:         am_cv_CC_dependencies_compiler_type=$depmode
                   3978:         break
                   3979:       fi
                   3980:     fi
                   3981:   done
1.14      bertrand 3982: 
1.15      bertrand 3983:   cd ..
                   3984:   rm -rf conftest.dir
1.14      bertrand 3985: else
1.15      bertrand 3986:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 3987: fi
                   3988: 
1.15      bertrand 3989: fi
                   3990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   3991: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   3992: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 3993: 
1.15      bertrand 3994:  if
                   3995:   test "x$enable_dependency_tracking" != xno \
                   3996:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   3997:   am__fastdepCC_TRUE=
                   3998:   am__fastdepCC_FALSE='#'
1.1       bertrand 3999: else
1.15      bertrand 4000:   am__fastdepCC_TRUE='#'
                   4001:   am__fastdepCC_FALSE=
                   4002: fi
                   4003: 
1.1       bertrand 4004: 
                   4005: 
1.30    ! bertrand 4006: EXT_SQL=
        !          4007: 
1.15      bertrand 4008: if test x"$CC" != x""; then
                   4009:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4010:            awk -F. '{ printf("%s", $1);}'`
                   4011:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4012:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4013:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4014:        OPTIMISATION_C=-O3
                   4015:    else
1.23      bertrand 4016:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4017:                then
1.15      bertrand 4018:            OPTIMISATION_C=-O3
                   4019:        else
1.23      bertrand 4020:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4021:                OPTIMISATION_C=-O2
                   4022:            else
                   4023:                as_fn_error "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
                   4024:            fi
1.15      bertrand 4025:        fi
                   4026:    fi
1.14      bertrand 4027: fi
                   4028: 
1.15      bertrand 4029: if test "x$CC" != xcc; then
                   4030:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4031: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4032: else
1.15      bertrand 4033:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4034: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4035: fi
1.15      bertrand 4036: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4037:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4038: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
                   4039:   $as_echo_n "(cached) " >&6
1.1       bertrand 4040: else
1.15      bertrand 4041:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4042: /* end confdefs.h.  */
                   4043: 
                   4044: int
                   4045: main ()
                   4046: {
1.15      bertrand 4047: 
1.1       bertrand 4048:   ;
                   4049:   return 0;
                   4050: }
                   4051: _ACEOF
1.15      bertrand 4052: # Make sure it works both with $CC and with simple cc.
                   4053: # We do the test twice because some compilers refuse to overwrite an
                   4054: # existing .o file with -o, though they will create one.
                   4055: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4056: rm -f conftest2.*
                   4057: if { { case "(($ac_try" in
                   4058:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4059:   *) ac_try_echo=$ac_try;;
                   4060: esac
                   4061: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4062: $as_echo "$ac_try_echo"; } >&5
                   4063:   (eval "$ac_try") 2>&5
                   4064:   ac_status=$?
                   4065:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4066:   test $ac_status = 0; } &&
                   4067:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4068:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4069:   *) ac_try_echo=$ac_try;;
                   4070: esac
                   4071: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4072: $as_echo "$ac_try_echo"; } >&5
                   4073:   (eval "$ac_try") 2>&5
                   4074:   ac_status=$?
                   4075:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4076:   test $ac_status = 0; };
                   4077: then
                   4078:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4079:   if test "x$CC" != xcc; then
                   4080:     # Test first that cc exists at all.
                   4081:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4082:   { { case "(($ac_try" in
                   4083:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4084:   *) ac_try_echo=$ac_try;;
                   4085: esac
                   4086: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4087: $as_echo "$ac_try_echo"; } >&5
                   4088:   (eval "$ac_try") 2>&5
                   4089:   ac_status=$?
                   4090:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4091:   test $ac_status = 0; }; }; then
                   4092:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4093:       rm -f conftest2.*
                   4094:       if { { case "(($ac_try" in
                   4095:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4096:   *) ac_try_echo=$ac_try;;
                   4097: esac
                   4098: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4099: $as_echo "$ac_try_echo"; } >&5
                   4100:   (eval "$ac_try") 2>&5
                   4101:   ac_status=$?
                   4102:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4103:   test $ac_status = 0; } &&
                   4104:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4105:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4106:   *) ac_try_echo=$ac_try;;
                   4107: esac
1.15      bertrand 4108: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4109: $as_echo "$ac_try_echo"; } >&5
                   4110:   (eval "$ac_try") 2>&5
1.14      bertrand 4111:   ac_status=$?
1.15      bertrand 4112:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4113:   test $ac_status = 0; };
                   4114:       then
                   4115:    # cc works too.
                   4116:    :
                   4117:       else
                   4118:    # cc exists but doesn't like -o.
                   4119:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4120:       fi
                   4121:     fi
                   4122:   fi
1.1       bertrand 4123: else
1.15      bertrand 4124:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4125: fi
                   4126: rm -f core conftest*
1.14      bertrand 4127: 
1.1       bertrand 4128: fi
1.15      bertrand 4129: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4130:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4131: $as_echo "yes" >&6; }
                   4132: else
                   4133:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4134: $as_echo "no" >&6; }
                   4135: 
                   4136: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4137: 
                   4138: fi
1.15      bertrand 4139: 
                   4140: # FIXME: we rely on the cache variable name because
                   4141: # there is no other way.
                   4142: set dummy $CC
                   4143: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4144: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4145: if test "$am_t" != yes; then
                   4146:    # Losing compiler, so override with the script.
                   4147:    # FIXME: It is wrong to rewrite CC.
                   4148:    # But if we don't then we get into trouble of one sort or another.
                   4149:    # A longer-term fix would be to have automake use am__CC in this case,
                   4150:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4151:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4152: fi
1.14      bertrand 4153: 
                   4154: 
1.15      bertrand 4155: 
                   4156: if test "$GCC" != yes; then
                   4157:    as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
                   4158: fi
                   4159: 
                   4160: ac_ext=cpp
                   4161: ac_cpp='$CXXCPP $CPPFLAGS'
                   4162: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4163: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4164: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4165: if test -z "$CXX"; then
                   4166:   if test -n "$CCC"; then
                   4167:     CXX=$CCC
                   4168:   else
                   4169:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4170:   for ac_prog in g++
1.15      bertrand 4171:   do
                   4172:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4173: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4175: $as_echo_n "checking for $ac_word... " >&6; }
                   4176: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4177:   $as_echo_n "(cached) " >&6
1.1       bertrand 4178: else
1.15      bertrand 4179:   if test -n "$CXX"; then
                   4180:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4181: else
1.15      bertrand 4182: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4183: for as_dir in $PATH
                   4184: do
                   4185:   IFS=$as_save_IFS
                   4186:   test -z "$as_dir" && as_dir=.
                   4187:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4188:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4189:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4190:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4191:     break 2
                   4192:   fi
                   4193: done
                   4194:   done
                   4195: IFS=$as_save_IFS
1.14      bertrand 4196: 
                   4197: fi
                   4198: fi
1.15      bertrand 4199: CXX=$ac_cv_prog_CXX
                   4200: if test -n "$CXX"; then
                   4201:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4202: $as_echo "$CXX" >&6; }
1.14      bertrand 4203: else
1.15      bertrand 4204:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4205: $as_echo "no" >&6; }
1.14      bertrand 4206: fi
                   4207: 
                   4208: 
1.15      bertrand 4209:     test -n "$CXX" && break
                   4210:   done
                   4211: fi
                   4212: if test -z "$CXX"; then
                   4213:   ac_ct_CXX=$CXX
1.23      bertrand 4214:   for ac_prog in g++
1.15      bertrand 4215: do
                   4216:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4217: set dummy $ac_prog; ac_word=$2
                   4218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4219: $as_echo_n "checking for $ac_word... " >&6; }
                   4220: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4221:   $as_echo_n "(cached) " >&6
                   4222: else
                   4223:   if test -n "$ac_ct_CXX"; then
                   4224:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4225: else
                   4226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4227: for as_dir in $PATH
                   4228: do
                   4229:   IFS=$as_save_IFS
                   4230:   test -z "$as_dir" && as_dir=.
                   4231:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4232:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4233:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4234:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4235:     break 2
                   4236:   fi
                   4237: done
                   4238:   done
                   4239: IFS=$as_save_IFS
1.14      bertrand 4240: 
1.15      bertrand 4241: fi
                   4242: fi
                   4243: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4244: if test -n "$ac_ct_CXX"; then
                   4245:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4246: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4247: else
1.15      bertrand 4248:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4249: $as_echo "no" >&6; }
1.14      bertrand 4250: fi
                   4251: 
                   4252: 
1.15      bertrand 4253:   test -n "$ac_ct_CXX" && break
                   4254: done
1.14      bertrand 4255: 
1.15      bertrand 4256:   if test "x$ac_ct_CXX" = x; then
                   4257:     CXX="g++"
                   4258:   else
                   4259:     case $cross_compiling:$ac_tool_warned in
                   4260: yes:)
                   4261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4262: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4263: ac_tool_warned=yes ;;
                   4264: esac
                   4265:     CXX=$ac_ct_CXX
                   4266:   fi
                   4267: fi
1.1       bertrand 4268: 
1.15      bertrand 4269:   fi
                   4270: fi
                   4271: # Provide some information about the compiler.
                   4272: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4273: set X $ac_compile
                   4274: ac_compiler=$2
                   4275: for ac_option in --version -v -V -qversion; do
                   4276:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4277: case "(($ac_try" in
                   4278:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4279:   *) ac_try_echo=$ac_try;;
                   4280: esac
1.15      bertrand 4281: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4282: $as_echo "$ac_try_echo"; } >&5
                   4283:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4284:   ac_status=$?
1.15      bertrand 4285:   if test -s conftest.err; then
                   4286:     sed '10a\
                   4287: ... rest of stderr output deleted ...
                   4288:          10q' conftest.err >conftest.er1
                   4289:     cat conftest.er1 >&5
                   4290:   fi
                   4291:   rm -f conftest.er1 conftest.err
                   4292:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4293:   test $ac_status = 0; }
                   4294: done
                   4295: 
                   4296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4297: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4298: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4299:   $as_echo_n "(cached) " >&6
1.14      bertrand 4300: else
1.15      bertrand 4301:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4302: /* end confdefs.h.  */
1.1       bertrand 4303: 
                   4304: int
                   4305: main ()
                   4306: {
1.15      bertrand 4307: #ifndef __GNUC__
                   4308:        choke me
                   4309: #endif
1.1       bertrand 4310: 
                   4311:   ;
                   4312:   return 0;
                   4313: }
                   4314: _ACEOF
1.15      bertrand 4315: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4316:   ac_compiler_gnu=yes
1.1       bertrand 4317: else
1.15      bertrand 4318:   ac_compiler_gnu=no
1.1       bertrand 4319: fi
1.14      bertrand 4320: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4321: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4322: 
1.15      bertrand 4323: fi
                   4324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4325: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4326: if test $ac_compiler_gnu = yes; then
                   4327:   GXX=yes
                   4328: else
                   4329:   GXX=
                   4330: fi
                   4331: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4332: ac_save_CXXFLAGS=$CXXFLAGS
                   4333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4334: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4335: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4336:   $as_echo_n "(cached) " >&6
                   4337: else
                   4338:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4339:    ac_cxx_werror_flag=yes
                   4340:    ac_cv_prog_cxx_g=no
                   4341:    CXXFLAGS="-g"
                   4342:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4343: /* end confdefs.h.  */
1.15      bertrand 4344: 
1.1       bertrand 4345: int
                   4346: main ()
                   4347: {
1.14      bertrand 4348: 
1.1       bertrand 4349:   ;
                   4350:   return 0;
                   4351: }
                   4352: _ACEOF
1.15      bertrand 4353: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4354:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4355: else
1.15      bertrand 4356:   CXXFLAGS=""
                   4357:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4358: /* end confdefs.h.  */
1.1       bertrand 4359: 
1.14      bertrand 4360: int
                   4361: main ()
                   4362: {
1.1       bertrand 4363: 
1.14      bertrand 4364:   ;
                   4365:   return 0;
                   4366: }
                   4367: _ACEOF
1.15      bertrand 4368: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4369: 
                   4370: else
1.15      bertrand 4371:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4372:     CXXFLAGS="-g"
                   4373:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4374: /* end confdefs.h.  */
1.1       bertrand 4375: 
1.14      bertrand 4376: int
                   4377: main ()
                   4378: {
1.1       bertrand 4379: 
1.14      bertrand 4380:   ;
                   4381:   return 0;
                   4382: }
                   4383: _ACEOF
1.15      bertrand 4384: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4385:   ac_cv_prog_cxx_g=yes
                   4386: fi
                   4387: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4388: fi
                   4389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4390: fi
                   4391: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4392:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4393: fi
                   4394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4395: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4396: if test "$ac_test_CXXFLAGS" = set; then
                   4397:   CXXFLAGS=$ac_save_CXXFLAGS
                   4398: elif test $ac_cv_prog_cxx_g = yes; then
                   4399:   if test "$GXX" = yes; then
                   4400:     CXXFLAGS="-g -O2"
                   4401:   else
                   4402:     CXXFLAGS="-g"
                   4403:   fi
                   4404: else
                   4405:   if test "$GXX" = yes; then
                   4406:     CXXFLAGS="-O2"
                   4407:   else
                   4408:     CXXFLAGS=
                   4409:   fi
                   4410: fi
                   4411: ac_ext=c
                   4412: ac_cpp='$CPP $CPPFLAGS'
                   4413: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4414: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4415: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4416: 
                   4417: depcc="$CXX"  am_compiler_list=
                   4418: 
                   4419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4420: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4421: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4422:   $as_echo_n "(cached) " >&6
                   4423: else
                   4424:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4425:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4426:   # making bogus files that we don't know about and never remove.  For
                   4427:   # instance it was reported that on HP-UX the gcc test will end up
                   4428:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4429:   # in D'.
                   4430:   mkdir conftest.dir
                   4431:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4432:   # using a relative directory.
                   4433:   cp "$am_depcomp" conftest.dir
                   4434:   cd conftest.dir
                   4435:   # We will build objects and dependencies in a subdirectory because
                   4436:   # it helps to detect inapplicable dependency modes.  For instance
                   4437:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4438:   # side effect of compilation, but ICC will put the dependencies in
                   4439:   # the current directory while Tru64 will put them in the object
                   4440:   # directory.
                   4441:   mkdir sub
                   4442: 
                   4443:   am_cv_CXX_dependencies_compiler_type=none
                   4444:   if test "$am_compiler_list" = ""; then
                   4445:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4446:   fi
                   4447:   am__universal=false
                   4448:   case " $depcc " in #(
                   4449:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4450:      esac
                   4451: 
                   4452:   for depmode in $am_compiler_list; do
                   4453:     # Setup a source with many dependencies, because some compilers
                   4454:     # like to wrap large dependency lists on column 80 (with \), and
                   4455:     # we should not choose a depcomp mode which is confused by this.
                   4456:     #
                   4457:     # We need to recreate these files for each test, as the compiler may
                   4458:     # overwrite some of them when testing with obscure command lines.
                   4459:     # This happens at least with the AIX C compiler.
                   4460:     : > sub/conftest.c
                   4461:     for i in 1 2 3 4 5 6; do
                   4462:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4463:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4464:       # Solaris 8's {/usr,}/bin/sh.
                   4465:       touch sub/conftst$i.h
                   4466:     done
                   4467:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4468: 
                   4469:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4470:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4471:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4472:     # versions had trouble with output in subdirs
                   4473:     am__obj=sub/conftest.${OBJEXT-o}
                   4474:     am__minus_obj="-o $am__obj"
                   4475:     case $depmode in
                   4476:     gcc)
                   4477:       # This depmode causes a compiler race in universal mode.
                   4478:       test "$am__universal" = false || continue
                   4479:       ;;
                   4480:     nosideeffect)
                   4481:       # after this tag, mechanisms are not by side-effect, so they'll
                   4482:       # only be used when explicitly requested
                   4483:       if test "x$enable_dependency_tracking" = xyes; then
                   4484:    continue
                   4485:       else
                   4486:    break
                   4487:       fi
                   4488:       ;;
                   4489:     msvisualcpp | msvcmsys)
                   4490:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4491:       # not run yet.  These depmodes are late enough in the game, and
                   4492:       # so weak that their functioning should not be impacted.
                   4493:       am__obj=conftest.${OBJEXT-o}
                   4494:       am__minus_obj=
                   4495:       ;;
                   4496:     none) break ;;
                   4497:     esac
                   4498:     if depmode=$depmode \
                   4499:        source=sub/conftest.c object=$am__obj \
                   4500:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4501:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4502:          >/dev/null 2>conftest.err &&
                   4503:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4504:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4505:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4506:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4507:       # icc doesn't choke on unknown options, it will just issue warnings
                   4508:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4509:       # that says an option was ignored or not supported.
                   4510:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4511:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4512:       # The diagnosis changed in icc 8.0:
                   4513:       #   icc: Command line remark: option '-MP' not supported
                   4514:       if (grep 'ignoring option' conftest.err ||
                   4515:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4516:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4517:         break
                   4518:       fi
                   4519:     fi
                   4520:   done
                   4521: 
                   4522:   cd ..
                   4523:   rm -rf conftest.dir
                   4524: else
                   4525:   am_cv_CXX_dependencies_compiler_type=none
                   4526: fi
                   4527: 
                   4528: fi
                   4529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4530: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4531: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4532: 
                   4533:  if
                   4534:   test "x$enable_dependency_tracking" != xno \
                   4535:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4536:   am__fastdepCXX_TRUE=
                   4537:   am__fastdepCXX_FALSE='#'
                   4538: else
                   4539:   am__fastdepCXX_TRUE='#'
                   4540:   am__fastdepCXX_FALSE=
                   4541: fi
                   4542: 
                   4543: 
                   4544: 
                   4545: if test "$GXX" != yes; then
                   4546:    as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
                   4547: fi
                   4548: 
                   4549: ac_ext=f
                   4550: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4551: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4552: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4553: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4554:   for ac_prog in gfortran
1.15      bertrand 4555:   do
                   4556:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4557: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4559: $as_echo_n "checking for $ac_word... " >&6; }
                   4560: if test "${ac_cv_prog_F77+set}" = set; then :
                   4561:   $as_echo_n "(cached) " >&6
                   4562: else
                   4563:   if test -n "$F77"; then
                   4564:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4565: else
                   4566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4567: for as_dir in $PATH
                   4568: do
                   4569:   IFS=$as_save_IFS
                   4570:   test -z "$as_dir" && as_dir=.
                   4571:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4572:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4573:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4574:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4575:     break 2
                   4576:   fi
                   4577: done
                   4578:   done
                   4579: IFS=$as_save_IFS
                   4580: 
                   4581: fi
                   4582: fi
                   4583: F77=$ac_cv_prog_F77
                   4584: if test -n "$F77"; then
                   4585:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4586: $as_echo "$F77" >&6; }
                   4587: else
                   4588:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4589: $as_echo "no" >&6; }
                   4590: fi
                   4591: 
                   4592: 
                   4593:     test -n "$F77" && break
                   4594:   done
                   4595: fi
                   4596: if test -z "$F77"; then
                   4597:   ac_ct_F77=$F77
1.23      bertrand 4598:   for ac_prog in gfortran
1.15      bertrand 4599: do
                   4600:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4601: set dummy $ac_prog; ac_word=$2
                   4602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4603: $as_echo_n "checking for $ac_word... " >&6; }
                   4604: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4605:   $as_echo_n "(cached) " >&6
                   4606: else
                   4607:   if test -n "$ac_ct_F77"; then
                   4608:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4609: else
                   4610: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4611: for as_dir in $PATH
                   4612: do
                   4613:   IFS=$as_save_IFS
                   4614:   test -z "$as_dir" && as_dir=.
                   4615:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4616:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4617:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4618:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4619:     break 2
                   4620:   fi
                   4621: done
                   4622:   done
                   4623: IFS=$as_save_IFS
                   4624: 
                   4625: fi
                   4626: fi
                   4627: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4628: if test -n "$ac_ct_F77"; then
                   4629:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4630: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4631: else
1.15      bertrand 4632:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4633: $as_echo "no" >&6; }
                   4634: fi
                   4635: 
                   4636: 
                   4637:   test -n "$ac_ct_F77" && break
                   4638: done
1.1       bertrand 4639: 
1.15      bertrand 4640:   if test "x$ac_ct_F77" = x; then
                   4641:     F77=""
                   4642:   else
                   4643:     case $cross_compiling:$ac_tool_warned in
                   4644: yes:)
                   4645: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4646: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4647: ac_tool_warned=yes ;;
                   4648: esac
                   4649:     F77=$ac_ct_F77
                   4650:   fi
1.14      bertrand 4651: fi
1.1       bertrand 4652: 
                   4653: 
1.15      bertrand 4654: # Provide some information about the compiler.
                   4655: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4656: set X $ac_compile
                   4657: ac_compiler=$2
                   4658: for ac_option in --version -v -V -qversion; do
                   4659:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4660: case "(($ac_try" in
                   4661:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4662:   *) ac_try_echo=$ac_try;;
                   4663: esac
1.15      bertrand 4664: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4665: $as_echo "$ac_try_echo"; } >&5
                   4666:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4667:   ac_status=$?
1.15      bertrand 4668:   if test -s conftest.err; then
                   4669:     sed '10a\
                   4670: ... rest of stderr output deleted ...
                   4671:          10q' conftest.err >conftest.er1
                   4672:     cat conftest.er1 >&5
                   4673:   fi
                   4674:   rm -f conftest.er1 conftest.err
                   4675:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4676:   test $ac_status = 0; }
                   4677: done
                   4678: rm -f a.out
                   4679: 
                   4680: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4681: # input file.  (Note that this only needs to work for GNU compilers.)
                   4682: ac_save_ext=$ac_ext
                   4683: ac_ext=F
                   4684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4685: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4686: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4687:   $as_echo_n "(cached) " >&6
1.1       bertrand 4688: else
1.15      bertrand 4689:   cat > conftest.$ac_ext <<_ACEOF
                   4690:       program main
                   4691: #ifndef __GNUC__
                   4692:        choke me
                   4693: #endif
1.14      bertrand 4694: 
1.15      bertrand 4695:       end
                   4696: _ACEOF
                   4697: if ac_fn_f77_try_compile "$LINENO"; then :
                   4698:   ac_compiler_gnu=yes
                   4699: else
                   4700:   ac_compiler_gnu=no
1.1       bertrand 4701: fi
1.15      bertrand 4702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4703: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4704: 
                   4705: fi
1.15      bertrand 4706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4707: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4708: ac_ext=$ac_save_ext
                   4709: ac_test_FFLAGS=${FFLAGS+set}
                   4710: ac_save_FFLAGS=$FFLAGS
                   4711: FFLAGS=
                   4712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4713: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4714: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4715:   $as_echo_n "(cached) " >&6
                   4716: else
                   4717:   FFLAGS=-g
                   4718: cat > conftest.$ac_ext <<_ACEOF
                   4719:       program main
1.1       bertrand 4720: 
1.15      bertrand 4721:       end
1.14      bertrand 4722: _ACEOF
1.15      bertrand 4723: if ac_fn_f77_try_compile "$LINENO"; then :
                   4724:   ac_cv_prog_f77_g=yes
1.1       bertrand 4725: else
1.15      bertrand 4726:   ac_cv_prog_f77_g=no
1.1       bertrand 4727: fi
1.15      bertrand 4728: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4729: 
                   4730: fi
1.15      bertrand 4731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4732: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4733: if test "$ac_test_FFLAGS" = set; then
                   4734:   FFLAGS=$ac_save_FFLAGS
                   4735: elif test $ac_cv_prog_f77_g = yes; then
                   4736:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4737:     FFLAGS="-g -O2"
                   4738:   else
                   4739:     FFLAGS="-g"
                   4740:   fi
                   4741: else
                   4742:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4743:     FFLAGS="-O2"
                   4744:   else
                   4745:     FFLAGS=
                   4746:   fi
1.1       bertrand 4747: fi
                   4748: 
1.15      bertrand 4749: if test $ac_compiler_gnu = yes; then
                   4750:   G77=yes
1.1       bertrand 4751: else
1.15      bertrand 4752:   G77=
1.1       bertrand 4753: fi
1.15      bertrand 4754: ac_ext=c
                   4755: ac_cpp='$CPP $CPPFLAGS'
                   4756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4759: 
                   4760: 
1.15      bertrand 4761: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                   4762:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
                   4763: fi
1.14      bertrand 4764: 
1.15      bertrand 4765: ac_ext=${ac_fc_srcext-f}
                   4766: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4767: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4768: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4769: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4770:   for ac_prog in gfortran
1.15      bertrand 4771:   do
                   4772:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4773: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4775: $as_echo_n "checking for $ac_word... " >&6; }
                   4776: if test "${ac_cv_prog_FC+set}" = set; then :
                   4777:   $as_echo_n "(cached) " >&6
                   4778: else
                   4779:   if test -n "$FC"; then
                   4780:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4781: else
1.15      bertrand 4782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4783: for as_dir in $PATH
                   4784: do
                   4785:   IFS=$as_save_IFS
                   4786:   test -z "$as_dir" && as_dir=.
                   4787:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4788:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4789:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4790:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4791:     break 2
                   4792:   fi
                   4793: done
                   4794:   done
                   4795: IFS=$as_save_IFS
1.1       bertrand 4796: 
                   4797: fi
1.15      bertrand 4798: fi
                   4799: FC=$ac_cv_prog_FC
                   4800: if test -n "$FC"; then
                   4801:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4802: $as_echo "$FC" >&6; }
1.14      bertrand 4803: else
1.15      bertrand 4804:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4805: $as_echo "no" >&6; }
1.14      bertrand 4806: fi
                   4807: 
1.1       bertrand 4808: 
1.15      bertrand 4809:     test -n "$FC" && break
                   4810:   done
                   4811: fi
                   4812: if test -z "$FC"; then
                   4813:   ac_ct_FC=$FC
1.23      bertrand 4814:   for ac_prog in gfortran
1.15      bertrand 4815: do
                   4816:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4817: set dummy $ac_prog; ac_word=$2
                   4818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4819: $as_echo_n "checking for $ac_word... " >&6; }
                   4820: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4821:   $as_echo_n "(cached) " >&6
                   4822: else
                   4823:   if test -n "$ac_ct_FC"; then
                   4824:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4825: else
                   4826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4827: for as_dir in $PATH
                   4828: do
                   4829:   IFS=$as_save_IFS
                   4830:   test -z "$as_dir" && as_dir=.
                   4831:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4832:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4833:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4834:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4835:     break 2
                   4836:   fi
                   4837: done
                   4838:   done
                   4839: IFS=$as_save_IFS
1.1       bertrand 4840: 
1.15      bertrand 4841: fi
                   4842: fi
                   4843: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4844: if test -n "$ac_ct_FC"; then
                   4845:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4846: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4847: else
1.15      bertrand 4848:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4849: $as_echo "no" >&6; }
1.1       bertrand 4850: fi
1.14      bertrand 4851: 
1.1       bertrand 4852: 
1.15      bertrand 4853:   test -n "$ac_ct_FC" && break
                   4854: done
1.1       bertrand 4855: 
1.15      bertrand 4856:   if test "x$ac_ct_FC" = x; then
                   4857:     FC=""
                   4858:   else
                   4859:     case $cross_compiling:$ac_tool_warned in
                   4860: yes:)
                   4861: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4862: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4863: ac_tool_warned=yes ;;
1.14      bertrand 4864: esac
1.15      bertrand 4865:     FC=$ac_ct_FC
                   4866:   fi
1.14      bertrand 4867: fi
                   4868: 
                   4869: 
1.15      bertrand 4870: # Provide some information about the compiler.
                   4871: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4872: set X $ac_compile
                   4873: ac_compiler=$2
                   4874: for ac_option in --version -v -V -qversion; do
                   4875:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4876: case "(($ac_try" in
                   4877:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4878:   *) ac_try_echo=$ac_try;;
                   4879: esac
1.15      bertrand 4880: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4881: $as_echo "$ac_try_echo"; } >&5
                   4882:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4883:   ac_status=$?
1.15      bertrand 4884:   if test -s conftest.err; then
                   4885:     sed '10a\
                   4886: ... rest of stderr output deleted ...
                   4887:          10q' conftest.err >conftest.er1
                   4888:     cat conftest.er1 >&5
                   4889:   fi
                   4890:   rm -f conftest.er1 conftest.err
                   4891:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4892:   test $ac_status = 0; }
                   4893: done
                   4894: rm -f a.out
                   4895: 
                   4896: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4897: # input file.  (Note that this only needs to work for GNU compilers.)
                   4898: ac_save_ext=$ac_ext
                   4899: ac_ext=F
                   4900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4901: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4902: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4903:   $as_echo_n "(cached) " >&6
1.14      bertrand 4904: else
1.15      bertrand 4905:   cat > conftest.$ac_ext <<_ACEOF
                   4906:       program main
                   4907: #ifndef __GNUC__
                   4908:        choke me
                   4909: #endif
1.14      bertrand 4910: 
1.15      bertrand 4911:       end
                   4912: _ACEOF
                   4913: if ac_fn_fc_try_compile "$LINENO"; then :
                   4914:   ac_compiler_gnu=yes
                   4915: else
                   4916:   ac_compiler_gnu=no
1.14      bertrand 4917: fi
                   4918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4919: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4920: 
1.15      bertrand 4921: fi
                   4922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4923: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4924: ac_ext=$ac_save_ext
                   4925: ac_test_FCFLAGS=${FCFLAGS+set}
                   4926: ac_save_FCFLAGS=$FCFLAGS
                   4927: FCFLAGS=
                   4928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4929: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4930: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4931:   $as_echo_n "(cached) " >&6
                   4932: else
                   4933:   FCFLAGS=-g
                   4934: cat > conftest.$ac_ext <<_ACEOF
                   4935:       program main
1.1       bertrand 4936: 
1.15      bertrand 4937:       end
1.1       bertrand 4938: _ACEOF
1.15      bertrand 4939: if ac_fn_fc_try_compile "$LINENO"; then :
                   4940:   ac_cv_prog_fc_g=yes
1.1       bertrand 4941: else
1.15      bertrand 4942:   ac_cv_prog_fc_g=no
1.1       bertrand 4943: fi
1.14      bertrand 4944: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4945: 
1.15      bertrand 4946: fi
                   4947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4948: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4949: if test "$ac_test_FCFLAGS" = set; then
                   4950:   FCFLAGS=$ac_save_FCFLAGS
                   4951: elif test $ac_cv_prog_fc_g = yes; then
                   4952:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4953:     FCFLAGS="-g -O2"
                   4954:   else
                   4955:     FCFLAGS="-g"
                   4956:   fi
1.1       bertrand 4957: else
1.15      bertrand 4958:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4959:     FCFLAGS="-O2"
                   4960:   else
                   4961:     FCFLAGS=
                   4962:   fi
1.1       bertrand 4963: fi
                   4964: 
1.15      bertrand 4965: ac_ext=c
                   4966: ac_cpp='$CPP $CPPFLAGS'
                   4967: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4968: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4969: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4970: 
                   4971: 
1.15      bertrand 4972: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                   4973:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 4974: fi
                   4975: 
1.15      bertrand 4976: if test x"$FC" != x""; then
                   4977:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4978:            awk -F. '{ printf("%s", $1);}'`
                   4979:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4980:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4981:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4982:        OPTIMISATION_F=-O3
                   4983:    else
1.23      bertrand 4984:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 4985:            OPTIMISATION_F=-O3
                   4986:        else
1.23      bertrand 4987:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4988:                OPTIMISATION_F=-O2
                   4989:            else
                   4990:                as_fn_error "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
                   4991:            fi
1.14      bertrand 4992:        fi
                   4993:    fi
                   4994: fi
1.1       bertrand 4995: 
                   4996: 
1.15      bertrand 4997: ac_ext=c
                   4998: ac_cpp='$CPP $CPPFLAGS'
                   4999: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5000: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5001: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5003: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5004: # On Suns, sometimes $CPP names a directory.
                   5005: if test -n "$CPP" && test -d "$CPP"; then
                   5006:   CPP=
                   5007: fi
                   5008: if test -z "$CPP"; then
                   5009:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   5010:   $as_echo_n "(cached) " >&6
                   5011: else
                   5012:       # Double quotes because CPP needs to be expanded
                   5013:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5014:     do
                   5015:       ac_preproc_ok=false
                   5016: for ac_c_preproc_warn_flag in '' yes
                   5017: do
                   5018:   # Use a header file that comes with gcc, so configuring glibc
                   5019:   # with a fresh cross-compiler works.
                   5020:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5021:   # <limits.h> exists even on freestanding compilers.
                   5022:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5023:   # not just through cpp. "Syntax error" is here to catch this case.
                   5024:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5025: /* end confdefs.h.  */
1.15      bertrand 5026: #ifdef __STDC__
                   5027: # include <limits.h>
                   5028: #else
                   5029: # include <assert.h>
                   5030: #endif
                   5031:             Syntax error
1.1       bertrand 5032: _ACEOF
1.15      bertrand 5033: if ac_fn_c_try_cpp "$LINENO"; then :
                   5034: 
1.1       bertrand 5035: else
1.15      bertrand 5036:   # Broken: fails on valid input.
                   5037: continue
1.1       bertrand 5038: fi
1.15      bertrand 5039: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5040: 
1.15      bertrand 5041:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5042:   # can be detected and how.
                   5043:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5044: /* end confdefs.h.  */
                   5045: #include <ac_nonexistent.h>
                   5046: _ACEOF
                   5047: if ac_fn_c_try_cpp "$LINENO"; then :
                   5048:   # Broken: success on invalid input.
                   5049: continue
                   5050: else
                   5051:   # Passes both tests.
                   5052: ac_preproc_ok=:
                   5053: break
1.1       bertrand 5054: fi
1.15      bertrand 5055: rm -f conftest.err conftest.$ac_ext
1.14      bertrand 5056: 
1.15      bertrand 5057: done
                   5058: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5059: rm -f conftest.err conftest.$ac_ext
                   5060: if $ac_preproc_ok; then :
                   5061:   break
1.1       bertrand 5062: fi
                   5063: 
1.15      bertrand 5064:     done
                   5065:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5066: 
1.15      bertrand 5067: fi
                   5068:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5069: else
1.15      bertrand 5070:   ac_cv_prog_CPP=$CPP
                   5071: fi
                   5072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5073: $as_echo "$CPP" >&6; }
                   5074: ac_preproc_ok=false
                   5075: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5076: do
1.15      bertrand 5077:   # Use a header file that comes with gcc, so configuring glibc
                   5078:   # with a fresh cross-compiler works.
                   5079:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5080:   # <limits.h> exists even on freestanding compilers.
                   5081:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5082:   # not just through cpp. "Syntax error" is here to catch this case.
                   5083:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5084: /* end confdefs.h.  */
                   5085: #ifdef __STDC__
                   5086: # include <limits.h>
                   5087: #else
                   5088: # include <assert.h>
                   5089: #endif
                   5090:             Syntax error
                   5091: _ACEOF
                   5092: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5093: 
1.15      bertrand 5094: else
                   5095:   # Broken: fails on valid input.
                   5096: continue
                   5097: fi
                   5098: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5099: 
1.15      bertrand 5100:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5101:   # can be detected and how.
                   5102:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5103: /* end confdefs.h.  */
                   5104: #include <ac_nonexistent.h>
                   5105: _ACEOF
                   5106: if ac_fn_c_try_cpp "$LINENO"; then :
                   5107:   # Broken: success on invalid input.
                   5108: continue
                   5109: else
                   5110:   # Passes both tests.
                   5111: ac_preproc_ok=:
                   5112: break
                   5113: fi
                   5114: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5115: 
                   5116: done
1.15      bertrand 5117: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5118: rm -f conftest.err conftest.$ac_ext
                   5119: if $ac_preproc_ok; then :
1.1       bertrand 5120: 
1.15      bertrand 5121: else
                   5122:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5123: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5124: as_fn_error "C preprocessor \"$CPP\" fails sanity check
                   5125: See \`config.log' for more details." "$LINENO" 5; }
                   5126: fi
1.14      bertrand 5127: 
1.15      bertrand 5128: ac_ext=c
                   5129: ac_cpp='$CPP $CPPFLAGS'
                   5130: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5131: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5132: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5133: 
                   5134: 
1.15      bertrand 5135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5136: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5137: 
                   5138: 
1.15      bertrand 5139: # Check whether --with-x was given.
                   5140: if test "${with_x+set}" = set; then :
                   5141:   withval=$with_x;
1.1       bertrand 5142: fi
1.14      bertrand 5143: 
1.15      bertrand 5144: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5145: if test "x$with_x" = xno; then
                   5146:   # The user explicitly disabled X.
                   5147:   have_x=disabled
1.1       bertrand 5148: else
1.15      bertrand 5149:   case $x_includes,$x_libraries in #(
                   5150:     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5151:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5152:   $as_echo_n "(cached) " >&6
1.1       bertrand 5153: else
1.15      bertrand 5154:   # One or both of the vars are not set, and there is no cached value.
                   5155: ac_x_includes=no ac_x_libraries=no
                   5156: rm -f -r conftest.dir
                   5157: if mkdir conftest.dir; then
                   5158:   cd conftest.dir
                   5159:   cat >Imakefile <<'_ACEOF'
                   5160: incroot:
                   5161:    @echo incroot='${INCROOT}'
                   5162: usrlibdir:
                   5163:    @echo usrlibdir='${USRLIBDIR}'
                   5164: libdir:
                   5165:    @echo libdir='${LIBDIR}'
                   5166: _ACEOF
                   5167:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
                   5168:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   5169:     for ac_var in incroot usrlibdir libdir; do
                   5170:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5171:     done
                   5172:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5173:     for ac_extension in a so sl dylib la dll; do
                   5174:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5175:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5176:    ac_im_usrlibdir=$ac_im_libdir; break
                   5177:       fi
                   5178:     done
                   5179:     # Screen out bogus values from the imake configuration.  They are
                   5180:     # bogus both because they are the default anyway, and because
                   5181:     # using them would break gcc on systems where it needs fixed includes.
                   5182:     case $ac_im_incroot in
                   5183:    /usr/include) ac_x_includes= ;;
                   5184:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5185:     esac
                   5186:     case $ac_im_usrlibdir in
                   5187:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5188:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5189:     esac
                   5190:   fi
                   5191:   cd ..
                   5192:   rm -f -r conftest.dir
                   5193: fi
                   5194: 
                   5195: # Standard set of common directories for X headers.
                   5196: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5197: ac_x_header_dirs='
                   5198: /usr/X11/include
                   5199: /usr/X11R7/include
                   5200: /usr/X11R6/include
                   5201: /usr/X11R5/include
                   5202: /usr/X11R4/include
1.1       bertrand 5203: 
1.15      bertrand 5204: /usr/include/X11
                   5205: /usr/include/X11R7
                   5206: /usr/include/X11R6
                   5207: /usr/include/X11R5
                   5208: /usr/include/X11R4
1.1       bertrand 5209: 
1.15      bertrand 5210: /usr/local/X11/include
                   5211: /usr/local/X11R7/include
                   5212: /usr/local/X11R6/include
                   5213: /usr/local/X11R5/include
                   5214: /usr/local/X11R4/include
1.1       bertrand 5215: 
1.15      bertrand 5216: /usr/local/include/X11
                   5217: /usr/local/include/X11R7
                   5218: /usr/local/include/X11R6
                   5219: /usr/local/include/X11R5
                   5220: /usr/local/include/X11R4
1.1       bertrand 5221: 
1.15      bertrand 5222: /usr/X386/include
                   5223: /usr/x386/include
                   5224: /usr/XFree86/include/X11
1.1       bertrand 5225: 
1.15      bertrand 5226: /usr/include
                   5227: /usr/local/include
                   5228: /usr/unsupported/include
                   5229: /usr/athena/include
                   5230: /usr/local/x11r5/include
                   5231: /usr/lpp/Xamples/include
1.1       bertrand 5232: 
1.15      bertrand 5233: /usr/openwin/include
                   5234: /usr/openwin/share/include'
1.1       bertrand 5235: 
1.15      bertrand 5236: if test "$ac_x_includes" = no; then
                   5237:   # Guess where to find include files, by looking for Xlib.h.
                   5238:   # First, try using that file with no special directory specified.
                   5239:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5240: /* end confdefs.h.  */
                   5241: #include <X11/Xlib.h>
                   5242: _ACEOF
                   5243: if ac_fn_c_try_cpp "$LINENO"; then :
                   5244:   # We can compile using X headers with no special include directory.
                   5245: ac_x_includes=
1.1       bertrand 5246: else
1.15      bertrand 5247:   for ac_dir in $ac_x_header_dirs; do
                   5248:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5249:     ac_x_includes=$ac_dir
                   5250:     break
                   5251:   fi
                   5252: done
1.1       bertrand 5253: fi
1.15      bertrand 5254: rm -f conftest.err conftest.$ac_ext
                   5255: fi # $ac_x_includes = no
1.1       bertrand 5256: 
1.15      bertrand 5257: if test "$ac_x_libraries" = no; then
                   5258:   # Check for the libraries.
                   5259:   # See if we find them without any special options.
                   5260:   # Don't add to $LIBS permanently.
                   5261:   ac_save_LIBS=$LIBS
                   5262:   LIBS="-lX11 $LIBS"
                   5263:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5264: /* end confdefs.h.  */
1.15      bertrand 5265: #include <X11/Xlib.h>
1.14      bertrand 5266: int
                   5267: main ()
                   5268: {
1.15      bertrand 5269: XrmInitialize ()
1.14      bertrand 5270:   ;
                   5271:   return 0;
                   5272: }
1.1       bertrand 5273: _ACEOF
1.15      bertrand 5274: if ac_fn_c_try_link "$LINENO"; then :
                   5275:   LIBS=$ac_save_LIBS
                   5276: # We can link X programs with no special library path.
                   5277: ac_x_libraries=
1.1       bertrand 5278: else
1.15      bertrand 5279:   LIBS=$ac_save_LIBS
                   5280: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5281: do
                   5282:   # Don't even attempt the hair of trying to link an X program!
                   5283:   for ac_extension in a so sl dylib la dll; do
                   5284:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5285:       ac_x_libraries=$ac_dir
                   5286:       break 2
                   5287:     fi
                   5288:   done
                   5289: done
                   5290: fi
                   5291: rm -f core conftest.err conftest.$ac_objext \
                   5292:     conftest$ac_exeext conftest.$ac_ext
                   5293: fi # $ac_x_libraries = no
1.1       bertrand 5294: 
1.15      bertrand 5295: case $ac_x_includes,$ac_x_libraries in #(
                   5296:   no,* | *,no | *\'*)
                   5297:     # Didn't find X, or a directory has "'" in its name.
                   5298:     ac_cv_have_x="have_x=no";; #(
                   5299:   *)
                   5300:     # Record where we found X for the cache.
                   5301:     ac_cv_have_x="have_x=yes\
                   5302:    ac_x_includes='$ac_x_includes'\
                   5303:    ac_x_libraries='$ac_x_libraries'"
                   5304: esac
1.1       bertrand 5305: fi
1.15      bertrand 5306: ;; #(
                   5307:     *) have_x=yes;;
                   5308:   esac
                   5309:   eval "$ac_cv_have_x"
                   5310: fi # $with_x != no
1.1       bertrand 5311: 
1.15      bertrand 5312: if test "$have_x" != yes; then
                   5313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5314: $as_echo "$have_x" >&6; }
                   5315:   no_x=yes
1.14      bertrand 5316: else
1.15      bertrand 5317:   # If each of the values was on the command line, it overrides each guess.
                   5318:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5319:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5320:   # Update the cache value to reflect the command line values.
                   5321:   ac_cv_have_x="have_x=yes\
                   5322:    ac_x_includes='$x_includes'\
                   5323:    ac_x_libraries='$x_libraries'"
                   5324:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5325: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5326: fi
1.1       bertrand 5327: 
1.15      bertrand 5328: if test "$no_x" = yes; then
                   5329:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5330: 
1.15      bertrand 5331: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5332: 
1.15      bertrand 5333:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5334: else
1.15      bertrand 5335:   if test -n "$x_includes"; then
                   5336:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5337:   fi
                   5338: 
                   5339:   # It would also be nice to do this for all -L options, not just this one.
                   5340:   if test -n "$x_libraries"; then
                   5341:     X_LIBS="$X_LIBS -L$x_libraries"
                   5342:     # For Solaris; some versions of Sun CC require a space after -R and
                   5343:     # others require no space.  Words are not sufficient . . . .
                   5344:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5345: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5346:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5347:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5348:     ac_c_werror_flag=yes
                   5349:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5350: /* end confdefs.h.  */
1.1       bertrand 5351: 
1.15      bertrand 5352: int
                   5353: main ()
                   5354: {
1.1       bertrand 5355: 
1.15      bertrand 5356:   ;
                   5357:   return 0;
                   5358: }
                   5359: _ACEOF
                   5360: if ac_fn_c_try_link "$LINENO"; then :
                   5361:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5362: $as_echo "no" >&6; }
                   5363:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5364: else
1.15      bertrand 5365:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5366:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5367: /* end confdefs.h.  */
1.1       bertrand 5368: 
1.14      bertrand 5369: int
                   5370: main ()
                   5371: {
1.15      bertrand 5372: 
                   5373:   ;
1.14      bertrand 5374:   return 0;
                   5375: }
                   5376: _ACEOF
1.15      bertrand 5377: if ac_fn_c_try_link "$LINENO"; then :
                   5378:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5379: $as_echo "yes" >&6; }
                   5380:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5381: else
1.15      bertrand 5382:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5383: $as_echo "neither works" >&6; }
1.14      bertrand 5384: fi
1.15      bertrand 5385: rm -f core conftest.err conftest.$ac_objext \
                   5386:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5387: fi
1.15      bertrand 5388: rm -f core conftest.err conftest.$ac_objext \
                   5389:     conftest$ac_exeext conftest.$ac_ext
                   5390:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5391:     LIBS=$ac_xsave_LIBS
                   5392:   fi
1.1       bertrand 5393: 
1.15      bertrand 5394:   # Check for system-dependent libraries X programs must link with.
                   5395:   # Do this before checking for the system-independent R6 libraries
                   5396:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5397: 
1.15      bertrand 5398:   if test "$ISC" = yes; then
                   5399:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5400:   else
                   5401:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5402:     # libraries were built with DECnet support.  And Karl Berry says
                   5403:     # the Alpha needs dnet_stub (dnet does not exist).
                   5404:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5405:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5406: /* end confdefs.h.  */
1.1       bertrand 5407: 
1.15      bertrand 5408: /* Override any GCC internal prototype to avoid an error.
                   5409:    Use char because int might match the return type of a GCC
                   5410:    builtin and then its argument prototype would still apply.  */
                   5411: #ifdef __cplusplus
                   5412: extern "C"
                   5413: #endif
                   5414: char XOpenDisplay ();
                   5415: int
                   5416: main ()
                   5417: {
                   5418: return XOpenDisplay ();
                   5419:   ;
                   5420:   return 0;
                   5421: }
1.1       bertrand 5422: _ACEOF
1.15      bertrand 5423: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5424: 
                   5425: else
1.15      bertrand 5426:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5427: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5428: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5429:   $as_echo_n "(cached) " >&6
                   5430: else
                   5431:   ac_check_lib_save_LIBS=$LIBS
                   5432: LIBS="-ldnet  $LIBS"
                   5433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5434: /* end confdefs.h.  */
1.14      bertrand 5435: 
1.15      bertrand 5436: /* Override any GCC internal prototype to avoid an error.
                   5437:    Use char because int might match the return type of a GCC
                   5438:    builtin and then its argument prototype would still apply.  */
                   5439: #ifdef __cplusplus
                   5440: extern "C"
                   5441: #endif
                   5442: char dnet_ntoa ();
                   5443: int
                   5444: main ()
                   5445: {
                   5446: return dnet_ntoa ();
                   5447:   ;
                   5448:   return 0;
                   5449: }
1.1       bertrand 5450: _ACEOF
1.15      bertrand 5451: if ac_fn_c_try_link "$LINENO"; then :
                   5452:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5453: else
1.15      bertrand 5454:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5455: fi
1.15      bertrand 5456: rm -f core conftest.err conftest.$ac_objext \
                   5457:     conftest$ac_exeext conftest.$ac_ext
                   5458: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5459: fi
1.15      bertrand 5460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5461: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5462: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5463:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5464: fi
                   5465: 
1.15      bertrand 5466:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5467:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5468: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5469: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5470:   $as_echo_n "(cached) " >&6
1.14      bertrand 5471: else
1.15      bertrand 5472:   ac_check_lib_save_LIBS=$LIBS
                   5473: LIBS="-ldnet_stub  $LIBS"
                   5474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5475: /* end confdefs.h.  */
1.15      bertrand 5476: 
                   5477: /* Override any GCC internal prototype to avoid an error.
                   5478:    Use char because int might match the return type of a GCC
                   5479:    builtin and then its argument prototype would still apply.  */
                   5480: #ifdef __cplusplus
                   5481: extern "C"
                   5482: #endif
                   5483: char dnet_ntoa ();
1.1       bertrand 5484: int
                   5485: main ()
                   5486: {
1.15      bertrand 5487: return dnet_ntoa ();
1.1       bertrand 5488:   ;
                   5489:   return 0;
                   5490: }
                   5491: _ACEOF
1.15      bertrand 5492: if ac_fn_c_try_link "$LINENO"; then :
                   5493:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5494: else
1.15      bertrand 5495:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5496: fi
                   5497: rm -f core conftest.err conftest.$ac_objext \
                   5498:     conftest$ac_exeext conftest.$ac_ext
                   5499: LIBS=$ac_check_lib_save_LIBS
                   5500: fi
                   5501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5502: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5503: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5504:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5505: fi
1.14      bertrand 5506: 
1.15      bertrand 5507:     fi
1.1       bertrand 5508: fi
1.15      bertrand 5509: rm -f core conftest.err conftest.$ac_objext \
                   5510:     conftest$ac_exeext conftest.$ac_ext
                   5511:     LIBS="$ac_xsave_LIBS"
                   5512: 
                   5513:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5514:     # to get the SysV transport functions.
                   5515:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5516:     # needs -lnsl.
                   5517:     # The nsl library prevents programs from opening the X display
                   5518:     # on Irix 5.2, according to T.E. Dickey.
                   5519:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5520:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5521:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5522: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5523: 
                   5524: fi
                   5525: 
1.15      bertrand 5526:     if test $ac_cv_func_gethostbyname = no; then
                   5527:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5528: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5529: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5530:   $as_echo_n "(cached) " >&6
1.1       bertrand 5531: else
1.15      bertrand 5532:   ac_check_lib_save_LIBS=$LIBS
                   5533: LIBS="-lnsl  $LIBS"
                   5534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5535: /* end confdefs.h.  */
1.15      bertrand 5536: 
                   5537: /* Override any GCC internal prototype to avoid an error.
                   5538:    Use char because int might match the return type of a GCC
                   5539:    builtin and then its argument prototype would still apply.  */
                   5540: #ifdef __cplusplus
                   5541: extern "C"
                   5542: #endif
                   5543: char gethostbyname ();
1.1       bertrand 5544: int
                   5545: main ()
                   5546: {
1.15      bertrand 5547: return gethostbyname ();
1.1       bertrand 5548:   ;
                   5549:   return 0;
                   5550: }
                   5551: _ACEOF
1.15      bertrand 5552: if ac_fn_c_try_link "$LINENO"; then :
                   5553:   ac_cv_lib_nsl_gethostbyname=yes
                   5554: else
                   5555:   ac_cv_lib_nsl_gethostbyname=no
                   5556: fi
                   5557: rm -f core conftest.err conftest.$ac_objext \
                   5558:     conftest$ac_exeext conftest.$ac_ext
                   5559: LIBS=$ac_check_lib_save_LIBS
                   5560: fi
                   5561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5562: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5563: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5564:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5565: fi
                   5566: 
                   5567:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5568:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5569: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5570: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5571:   $as_echo_n "(cached) " >&6
                   5572: else
                   5573:   ac_check_lib_save_LIBS=$LIBS
                   5574: LIBS="-lbsd  $LIBS"
                   5575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5576: /* end confdefs.h.  */
1.15      bertrand 5577: 
                   5578: /* Override any GCC internal prototype to avoid an error.
                   5579:    Use char because int might match the return type of a GCC
                   5580:    builtin and then its argument prototype would still apply.  */
                   5581: #ifdef __cplusplus
                   5582: extern "C"
                   5583: #endif
                   5584: char gethostbyname ();
1.1       bertrand 5585: int
                   5586: main ()
                   5587: {
1.15      bertrand 5588: return gethostbyname ();
1.1       bertrand 5589:   ;
                   5590:   return 0;
                   5591: }
                   5592: _ACEOF
1.15      bertrand 5593: if ac_fn_c_try_link "$LINENO"; then :
                   5594:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5595: else
1.15      bertrand 5596:   ac_cv_lib_bsd_gethostbyname=no
                   5597: fi
                   5598: rm -f core conftest.err conftest.$ac_objext \
                   5599:     conftest$ac_exeext conftest.$ac_ext
                   5600: LIBS=$ac_check_lib_save_LIBS
                   5601: fi
                   5602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5603: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5604: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5605:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5606: fi
                   5607: 
                   5608:       fi
                   5609:     fi
                   5610: 
                   5611:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5612:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5613:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5614:     # on later versions), says Simon Leinen: it contains gethostby*
                   5615:     # variants that don't use the name server (or something).  -lsocket
                   5616:     # must be given before -lnsl if both are needed.  We assume that
                   5617:     # if connect needs -lnsl, so does gethostbyname.
                   5618:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5619: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5620: 
1.1       bertrand 5621: fi
                   5622: 
1.15      bertrand 5623:     if test $ac_cv_func_connect = no; then
                   5624:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5625: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5626: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5627:   $as_echo_n "(cached) " >&6
1.14      bertrand 5628: else
1.15      bertrand 5629:   ac_check_lib_save_LIBS=$LIBS
                   5630: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5632: /* end confdefs.h.  */
1.1       bertrand 5633: 
1.15      bertrand 5634: /* Override any GCC internal prototype to avoid an error.
                   5635:    Use char because int might match the return type of a GCC
                   5636:    builtin and then its argument prototype would still apply.  */
                   5637: #ifdef __cplusplus
                   5638: extern "C"
                   5639: #endif
                   5640: char connect ();
1.14      bertrand 5641: int
                   5642: main ()
                   5643: {
1.15      bertrand 5644: return connect ();
1.14      bertrand 5645:   ;
                   5646:   return 0;
                   5647: }
                   5648: _ACEOF
1.15      bertrand 5649: if ac_fn_c_try_link "$LINENO"; then :
                   5650:   ac_cv_lib_socket_connect=yes
                   5651: else
                   5652:   ac_cv_lib_socket_connect=no
                   5653: fi
                   5654: rm -f core conftest.err conftest.$ac_objext \
                   5655:     conftest$ac_exeext conftest.$ac_ext
                   5656: LIBS=$ac_check_lib_save_LIBS
                   5657: fi
                   5658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5659: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5660: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5661:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5662: fi
                   5663: 
                   5664:     fi
                   5665: 
                   5666:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5667:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5668: if test "x$ac_cv_func_remove" = x""yes; then :
                   5669: 
                   5670: fi
                   5671: 
                   5672:     if test $ac_cv_func_remove = no; then
                   5673:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5674: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5675: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5676:   $as_echo_n "(cached) " >&6
                   5677: else
                   5678:   ac_check_lib_save_LIBS=$LIBS
                   5679: LIBS="-lposix  $LIBS"
                   5680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5681: /* end confdefs.h.  */
1.15      bertrand 5682: 
                   5683: /* Override any GCC internal prototype to avoid an error.
                   5684:    Use char because int might match the return type of a GCC
                   5685:    builtin and then its argument prototype would still apply.  */
                   5686: #ifdef __cplusplus
                   5687: extern "C"
                   5688: #endif
                   5689: char remove ();
1.1       bertrand 5690: int
                   5691: main ()
                   5692: {
1.15      bertrand 5693: return remove ();
1.1       bertrand 5694:   ;
                   5695:   return 0;
                   5696: }
                   5697: _ACEOF
1.15      bertrand 5698: if ac_fn_c_try_link "$LINENO"; then :
                   5699:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5700: else
1.15      bertrand 5701:   ac_cv_lib_posix_remove=no
                   5702: fi
                   5703: rm -f core conftest.err conftest.$ac_objext \
                   5704:     conftest$ac_exeext conftest.$ac_ext
                   5705: LIBS=$ac_check_lib_save_LIBS
                   5706: fi
                   5707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5708: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5709: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5710:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5711: fi
1.1       bertrand 5712: 
1.15      bertrand 5713:     fi
1.14      bertrand 5714: 
1.15      bertrand 5715:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5716:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5717: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5718: 
                   5719: fi
                   5720: 
1.15      bertrand 5721:     if test $ac_cv_func_shmat = no; then
                   5722:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5723: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5724: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5725:   $as_echo_n "(cached) " >&6
                   5726: else
                   5727:   ac_check_lib_save_LIBS=$LIBS
                   5728: LIBS="-lipc  $LIBS"
                   5729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5730: /* end confdefs.h.  */
1.15      bertrand 5731: 
                   5732: /* Override any GCC internal prototype to avoid an error.
                   5733:    Use char because int might match the return type of a GCC
                   5734:    builtin and then its argument prototype would still apply.  */
                   5735: #ifdef __cplusplus
                   5736: extern "C"
                   5737: #endif
                   5738: char shmat ();
1.1       bertrand 5739: int
                   5740: main ()
                   5741: {
1.15      bertrand 5742: return shmat ();
1.1       bertrand 5743:   ;
                   5744:   return 0;
                   5745: }
                   5746: _ACEOF
1.15      bertrand 5747: if ac_fn_c_try_link "$LINENO"; then :
                   5748:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5749: else
1.15      bertrand 5750:   ac_cv_lib_ipc_shmat=no
                   5751: fi
                   5752: rm -f core conftest.err conftest.$ac_objext \
                   5753:     conftest$ac_exeext conftest.$ac_ext
                   5754: LIBS=$ac_check_lib_save_LIBS
                   5755: fi
                   5756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5757: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5758: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5759:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5760: fi
1.14      bertrand 5761: 
1.15      bertrand 5762:     fi
                   5763:   fi
1.1       bertrand 5764: 
1.15      bertrand 5765:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5766:   ac_save_LDFLAGS=$LDFLAGS
                   5767:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5768:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5769:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5770:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5771:   # These have to be linked with before -lX11, unlike the other
                   5772:   # libraries we check for below, so use a different variable.
                   5773:   # John Interrante, Karl Berry
                   5774:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5775: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5776: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5777:   $as_echo_n "(cached) " >&6
1.1       bertrand 5778: else
1.15      bertrand 5779:   ac_check_lib_save_LIBS=$LIBS
                   5780: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5782: /* end confdefs.h.  */
1.15      bertrand 5783: 
                   5784: /* Override any GCC internal prototype to avoid an error.
                   5785:    Use char because int might match the return type of a GCC
                   5786:    builtin and then its argument prototype would still apply.  */
                   5787: #ifdef __cplusplus
                   5788: extern "C"
                   5789: #endif
                   5790: char IceConnectionNumber ();
1.1       bertrand 5791: int
                   5792: main ()
                   5793: {
1.15      bertrand 5794: return IceConnectionNumber ();
1.1       bertrand 5795:   ;
                   5796:   return 0;
                   5797: }
                   5798: _ACEOF
1.15      bertrand 5799: if ac_fn_c_try_link "$LINENO"; then :
                   5800:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5801: else
1.15      bertrand 5802:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5803: fi
                   5804: rm -f core conftest.err conftest.$ac_objext \
                   5805:     conftest$ac_exeext conftest.$ac_ext
                   5806: LIBS=$ac_check_lib_save_LIBS
                   5807: fi
                   5808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5809: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5810: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5811:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5812: fi
                   5813: 
                   5814:   LDFLAGS=$ac_save_LDFLAGS
                   5815: 
                   5816: fi
                   5817: 
1.14      bertrand 5818: 
1.15      bertrand 5819: if test "$ac_x_includes" != "no"; then
                   5820:    if test x"$ac_x_includes" != x; then
                   5821:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5822:        includeX="-I$ac_x_includes"
                   5823:    fi
1.1       bertrand 5824: fi
1.15      bertrand 5825: if test "$ac_x_libraries" != "no"; then
                   5826:    if test x"$ac_x_libraries" != x; then
                   5827:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5828:    fi
1.1       bertrand 5829: fi
1.15      bertrand 5830: 
                   5831: # Check whether --enable-optimization was given.
                   5832: if test "${enable_optimization+set}" = set; then :
                   5833:   enableval=$enable_optimization;
                   5834: if test "$enableval" = "no"; then
                   5835:    CFLAGS=
                   5836:    FFLAGS=
                   5837:    CXXFLAGS=
                   5838:    FCFLAGS=
                   5839: else
                   5840:    CFLAGS="$CFLAGS $enable_optimization"
                   5841:    FFLAGS="$FFLAGS $enable_optimization"
                   5842:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5843: fi
1.15      bertrand 5844: else
1.14      bertrand 5845: 
1.15      bertrand 5846:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5847:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5848:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5849: 
                   5850: 
1.15      bertrand 5851: fi
1.1       bertrand 5852: 
                   5853: 
1.30    ! bertrand 5854: # Check whether --enable-full-static was given.
        !          5855: if test "${enable_full_static+set}" = set; then :
        !          5856:   enableval=$enable_full_static;
        !          5857: if test "$enableval" = "no"; then
        !          5858:    STATIC=no
        !          5859: else
        !          5860:    STATIC=yes
        !          5861: fi
        !          5862: else
        !          5863:   STATIC=no
        !          5864: fi
        !          5865: 
        !          5866: 
1.15      bertrand 5867: # Check whether --enable-final-encoding was given.
                   5868: if test "${enable_final_encoding+set}" = set; then :
                   5869:   enableval=$enable_final_encoding;
                   5870: if test "$enableval" = "no"; then
                   5871:    FINAL_ENCODING="\$(shell locale charmap | \
                   5872:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.1       bertrand 5873: else
1.15      bertrand 5874:    FINAL_ENCODING="$enable_final_encoding"
                   5875: fi
1.1       bertrand 5876: else
1.15      bertrand 5877:   FINAL_ENCODING="\$(shell locale charmap | \
                   5878:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5879: fi
                   5880: 
1.14      bertrand 5881: 
1.15      bertrand 5882: # Check whether --enable-tex was given.
                   5883: if test "${enable_tex+set}" = set; then :
                   5884:   enableval=$enable_tex;
                   5885: if test "$enableval" = "no"; then
                   5886:    TEX_SUPPORT=no
                   5887: else
                   5888:    TEX_SUPPORT=yes
1.1       bertrand 5889: fi
1.15      bertrand 5890: else
                   5891:   TEX_SUPPORT=guessed
                   5892: fi
                   5893: 
1.14      bertrand 5894: 
1.15      bertrand 5895: # Check whether --enable-vim was given.
                   5896: if test "${enable_vim+set}" = set; then :
                   5897:   enableval=$enable_vim;
                   5898: if test "$enableval" = "no"; then
                   5899:    VIM_SUPPORT=no
                   5900: else
                   5901:    VIM_SUPPORT=yes
                   5902: fi
                   5903: else
                   5904:   VIM_SUPPORT=guessed
1.1       bertrand 5905: fi
                   5906: 
1.15      bertrand 5907: 
                   5908: # Check whether --enable-embedded-gnuplot was given.
                   5909: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5910:   enableval=$enable_embedded_gnuplot;
                   5911: if test "$enableval" = "no"; then
                   5912:    MYGNUPLOT=no
                   5913: else
                   5914:    MYGNUPLOT=yes
                   5915: fi
1.1       bertrand 5916: else
                   5917: 
1.15      bertrand 5918: MYGNUPLOT=yes
                   5919: fi
                   5920: 
1.14      bertrand 5921: 
1.15      bertrand 5922: # Check whether --enable-gnuplot was given.
                   5923: if test "${enable_gnuplot+set}" = set; then :
                   5924:   enableval=$enable_gnuplot;
                   5925: if test "$enableval" = "no"; then
                   5926:    GNUPLOT_SUPPORT=no
                   5927:    MYGNUPLOT=no
                   5928:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5929: else
                   5930:    GNUPLOT_SUPPORT=yes
                   5931:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5932: fi
1.1       bertrand 5933: else
                   5934: 
1.15      bertrand 5935: if test "$MYGNUPLOT" = "yes"; then
                   5936:    GNUPLOT_SUPPORT=yes
                   5937:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5938: else
                   5939:    GNUPLOT_SUPPORT=guessed
                   5940:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5941: fi
1.1       bertrand 5942: fi
                   5943: 
1.15      bertrand 5944: 
                   5945: # Check whether --enable-motif was given.
                   5946: if test "${enable_motif+set}" = set; then :
                   5947:   enableval=$enable_motif;
                   5948: if test "$enableval" = "no"; then
                   5949:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5950: else
                   5951:    CFLAGS_ORIG=$CFLAGS
                   5952:    LIBS_ORIG=$LIBS
                   5953:    CFLAGS="$CFLAGS $X_CFLAGS"
                   5954:    LIBS="$LIB $X_LIBS"
                   5955:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   5956: $as_echo_n "checking for main in -lXm... " >&6; }
                   5957: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   5958:   $as_echo_n "(cached) " >&6
1.1       bertrand 5959: else
1.15      bertrand 5960:   ac_check_lib_save_LIBS=$LIBS
                   5961: LIBS="-lXm  $LIBS"
                   5962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5963: /* end confdefs.h.  */
1.14      bertrand 5964: 
                   5965: 
1.1       bertrand 5966: int
                   5967: main ()
                   5968: {
1.15      bertrand 5969: return main ();
1.1       bertrand 5970:   ;
                   5971:   return 0;
                   5972: }
                   5973: _ACEOF
1.15      bertrand 5974: if ac_fn_c_try_link "$LINENO"; then :
                   5975:   ac_cv_lib_Xm_main=yes
                   5976: else
                   5977:   ac_cv_lib_Xm_main=no
                   5978: fi
                   5979: rm -f core conftest.err conftest.$ac_objext \
                   5980:     conftest$ac_exeext conftest.$ac_ext
                   5981: LIBS=$ac_check_lib_save_LIBS
                   5982: fi
                   5983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   5984: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   5985: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   5986:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 5987: else
1.15      bertrand 5988:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5989: fi
1.14      bertrand 5990: 
1.15      bertrand 5991:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   5992:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   5993: Motif flag is disabled.
                   5994: " >&5
                   5995: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   5996: Motif flag is disabled.
                   5997: " >&2;}
                   5998:    fi
                   5999:    LIBS=$LIBS_ORIG
                   6000:    CFLAGS=$CFLAGS_ORIG
                   6001: fi
                   6002: else
                   6003:   MOTIF_SUPPORT=guessed
1.1       bertrand 6004: fi
                   6005: 
1.15      bertrand 6006: 
                   6007: # Check whether --enable-experimental was given.
                   6008: if test "${enable_experimental+set}" = set; then :
                   6009:   enableval=$enable_experimental;
                   6010: if test "$enableval" = "no"; then
                   6011:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6012: else
                   6013:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6014: fi
1.14      bertrand 6015: else
1.15      bertrand 6016:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6017: fi
                   6018: 
1.1       bertrand 6019: 
1.15      bertrand 6020: # Check whether --enable-debug was given.
                   6021: if test "${enable_debug+set}" = set; then :
                   6022:   enableval=$enable_debug;
                   6023: if test "$enableval" = "no"; then
1.24      bertrand 6024:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6025:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.15      bertrand 6026: else
1.24      bertrand 6027:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6028:    MALLOC=""
1.15      bertrand 6029: fi
                   6030: else
1.24      bertrand 6031:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6032:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.14      bertrand 6033: fi
1.1       bertrand 6034: 
1.15      bertrand 6035: 
                   6036: # Check whether --enable-profile was given.
                   6037: if test "${enable_profile+set}" = set; then :
                   6038:   enableval=$enable_profile;
                   6039: if test "$enableval" = "no"; then
                   6040:    PROFILAGE=""
                   6041: else
                   6042:    PROFILAGE="-pg"
                   6043: fi
                   6044: else
                   6045:   PROFILAGE=""
1.1       bertrand 6046: fi
                   6047: 
1.14      bertrand 6048: 
                   6049: 
1.15      bertrand 6050: 
                   6051: if test ! -d tools; then
                   6052:    mkdir tools
                   6053: fi
                   6054: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6055:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6056:            (cd "$srcdir/tools" && tar -xf -)
                   6057: fi
                   6058: if test ! -d "$srcdir"/tools/$READLINE; then
                   6059:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6060:            (cd "$srcdir/tools" && tar -xf -)
                   6061: fi
                   6062: if test ! -d "$srcdir"/tools/$UNITS; then
                   6063:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6064:            (cd "$srcdir/tools" && tar -xf -)
                   6065: fi
                   6066: if test ! -d "$srcdir"/tools/$GSL; then
                   6067:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6068:            (cd "$srcdir/tools" && tar -xf -)
                   6069: fi
                   6070: if test ! -d "$srcdir"/tools/$GPP; then
                   6071:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6072:            (cd "$srcdir/tools" && tar -xf -)
                   6073: fi
                   6074: if test ! -d "$srcdir"/tools/$FILE; then
                   6075:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6076:            (cd "$srcdir/tools" && tar -xf - )
                   6077:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6078: fi
                   6079: if test ! -d "$srcdir"/tools/$ICONV; then
                   6080:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6081:            (cd "$srcdir/tools" && tar -xf -)
                   6082: fi
                   6083: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6084:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6085:            (cd "$srcdir/tools" && tar -xf -)
                   6086: fi
                   6087: if test ! -d tools/$OPENSSL; then
                   6088:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6089:            (cd tools && tar -xf -)
1.1       bertrand 6090: fi
                   6091: 
                   6092: 
                   6093: 
1.15      bertrand 6094: # Check whether --enable-final-run-path was given.
                   6095: if test "${enable_final_run_path+set}" = set; then :
                   6096:   enableval=$enable_final_run_path;
                   6097:    if test "x$enable_final_run_path" = "x"; then
                   6098:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6099: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
                   6100:        as_fn_error "\"You should specify final path !\"" "$LINENO" 5
                   6101:    else
                   6102:        RUNPATH="$enable_final_run_path"
                   6103:    fi
1.1       bertrand 6104: 
                   6105: else
1.15      bertrand 6106:   RUNPATH="\${prefix}"
1.1       bertrand 6107: 
                   6108: fi
                   6109: 
1.15      bertrand 6110: 
                   6111: 
                   6112: 
                   6113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6114: $as_echo_n "checking whether ln -s works... " >&6; }
                   6115: LN_S=$as_ln_s
                   6116: if test "$LN_S" = "ln -s"; then
                   6117:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6118: $as_echo "yes" >&6; }
                   6119: else
                   6120:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6121: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6122: fi
                   6123: 
1.15      bertrand 6124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6125: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6126: set x ${MAKE-make}
                   6127: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   6128: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   6129:   $as_echo_n "(cached) " >&6
1.1       bertrand 6130: else
1.15      bertrand 6131:   cat >conftest.make <<\_ACEOF
                   6132: SHELL = /bin/sh
                   6133: all:
                   6134:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6135: _ACEOF
1.15      bertrand 6136: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   6137: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6138:   *@@@%%%=?*=@@@%%%*)
                   6139:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6140:   *)
                   6141:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6142: esac
1.15      bertrand 6143: rm -f conftest.make
                   6144: fi
                   6145: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6147: $as_echo "yes" >&6; }
                   6148:   SET_MAKE=
                   6149: else
                   6150:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6151: $as_echo "no" >&6; }
                   6152:   SET_MAKE="MAKE=${MAKE-make}"
                   6153: fi
1.1       bertrand 6154: 
1.15      bertrand 6155: if test -n "$ac_tool_prefix"; then
                   6156:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6157: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6159: $as_echo_n "checking for $ac_word... " >&6; }
                   6160: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6161:   $as_echo_n "(cached) " >&6
                   6162: else
                   6163:   if test -n "$RANLIB"; then
                   6164:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6165: else
1.15      bertrand 6166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6167: for as_dir in $PATH
                   6168: do
                   6169:   IFS=$as_save_IFS
                   6170:   test -z "$as_dir" && as_dir=.
                   6171:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6172:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6173:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6174:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6175:     break 2
                   6176:   fi
                   6177: done
                   6178:   done
                   6179: IFS=$as_save_IFS
1.1       bertrand 6180: 
                   6181: fi
1.15      bertrand 6182: fi
                   6183: RANLIB=$ac_cv_prog_RANLIB
                   6184: if test -n "$RANLIB"; then
                   6185:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6186: $as_echo "$RANLIB" >&6; }
                   6187: else
                   6188:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6189: $as_echo "no" >&6; }
                   6190: fi
                   6191: 
1.1       bertrand 6192: 
1.15      bertrand 6193: fi
                   6194: if test -z "$ac_cv_prog_RANLIB"; then
                   6195:   ac_ct_RANLIB=$RANLIB
                   6196:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6197: set dummy ranlib; ac_word=$2
                   6198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6199: $as_echo_n "checking for $ac_word... " >&6; }
                   6200: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6201:   $as_echo_n "(cached) " >&6
                   6202: else
                   6203:   if test -n "$ac_ct_RANLIB"; then
                   6204:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6205: else
                   6206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6207: for as_dir in $PATH
                   6208: do
                   6209:   IFS=$as_save_IFS
                   6210:   test -z "$as_dir" && as_dir=.
                   6211:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6212:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6213:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6214:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6215:     break 2
                   6216:   fi
                   6217: done
1.14      bertrand 6218:   done
1.15      bertrand 6219: IFS=$as_save_IFS
                   6220: 
                   6221: fi
                   6222: fi
                   6223: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6224: if test -n "$ac_ct_RANLIB"; then
                   6225:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6226: $as_echo "$ac_ct_RANLIB" >&6; }
                   6227: else
                   6228:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6229: $as_echo "no" >&6; }
                   6230: fi
                   6231: 
                   6232:   if test "x$ac_ct_RANLIB" = x; then
                   6233:     RANLIB=":"
                   6234:   else
                   6235:     case $cross_compiling:$ac_tool_warned in
                   6236: yes:)
                   6237: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6238: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6239: ac_tool_warned=yes ;;
                   6240: esac
                   6241:     RANLIB=$ac_ct_RANLIB
                   6242:   fi
1.14      bertrand 6243: else
1.15      bertrand 6244:   RANLIB="$ac_cv_prog_RANLIB"
                   6245: fi
1.1       bertrand 6246: 
                   6247: 
1.15      bertrand 6248: # Extract the first word of "nawk", so it can be a program name with args.
                   6249: set dummy nawk; ac_word=$2
                   6250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6251: $as_echo_n "checking for $ac_word... " >&6; }
                   6252: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6253:   $as_echo_n "(cached) " >&6
                   6254: else
                   6255:   if test -n "$AWK"; then
                   6256:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6257: else
                   6258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6259: for as_dir in $PATH
                   6260: do
                   6261:   IFS=$as_save_IFS
                   6262:   test -z "$as_dir" && as_dir=.
                   6263:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6264:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6265:     ac_cv_prog_AWK="yes"
                   6266:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6267:     break 2
                   6268:   fi
                   6269: done
                   6270:   done
                   6271: IFS=$as_save_IFS
1.1       bertrand 6272: 
1.15      bertrand 6273:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6274: fi
                   6275: fi
                   6276: AWK=$ac_cv_prog_AWK
                   6277: if test -n "$AWK"; then
                   6278:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6279: $as_echo "$AWK" >&6; }
1.1       bertrand 6280: else
1.15      bertrand 6281:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6282: $as_echo "no" >&6; }
                   6283: fi
                   6284: 
1.1       bertrand 6285: 
1.15      bertrand 6286: if test "$AWK" = no; then
                   6287:    as_fn_error "Can not find nawk !" "$LINENO" 5
1.1       bertrand 6288: fi
                   6289: 
1.15      bertrand 6290: # Extract the first word of "sed", so it can be a program name with args.
                   6291: set dummy sed; ac_word=$2
                   6292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6293: $as_echo_n "checking for $ac_word... " >&6; }
                   6294: if test "${ac_cv_prog_SED+set}" = set; then :
                   6295:   $as_echo_n "(cached) " >&6
                   6296: else
                   6297:   if test -n "$SED"; then
                   6298:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6299: else
                   6300: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6301: for as_dir in $PATH
                   6302: do
                   6303:   IFS=$as_save_IFS
                   6304:   test -z "$as_dir" && as_dir=.
                   6305:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6306:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6307:     ac_cv_prog_SED="yes"
                   6308:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6309:     break 2
                   6310:   fi
                   6311: done
1.14      bertrand 6312:   done
1.15      bertrand 6313: IFS=$as_save_IFS
1.1       bertrand 6314: 
1.15      bertrand 6315:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6316: fi
1.15      bertrand 6317: fi
                   6318: SED=$ac_cv_prog_SED
                   6319: if test -n "$SED"; then
                   6320:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6321: $as_echo "$SED" >&6; }
                   6322: else
                   6323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6324: $as_echo "no" >&6; }
1.14      bertrand 6325: fi
1.1       bertrand 6326: 
                   6327: 
1.15      bertrand 6328: if test "$SED" = no; then
                   6329:    as_fn_error "Can not find sed !" "$LINENO" 5
                   6330: fi
1.14      bertrand 6331: 
1.15      bertrand 6332: if test "$TEX_SUPPORT" = guessed; then
                   6333:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6334: 
1.15      bertrand 6335:    # Extract the first word of "tex", so it can be a program name with args.
                   6336: set dummy tex; ac_word=$2
                   6337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6338: $as_echo_n "checking for $ac_word... " >&6; }
                   6339: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6340:   $as_echo_n "(cached) " >&6
1.1       bertrand 6341: else
1.15      bertrand 6342:   if test -n "$TEX"; then
                   6343:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6344: else
1.15      bertrand 6345: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6346: for as_dir in $PATH
                   6347: do
                   6348:   IFS=$as_save_IFS
                   6349:   test -z "$as_dir" && as_dir=.
                   6350:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6351:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6352:     ac_cv_prog_TEX="yes"
                   6353:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6354:     break 2
                   6355:   fi
                   6356: done
                   6357:   done
                   6358: IFS=$as_save_IFS
1.1       bertrand 6359: 
1.15      bertrand 6360:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6361: fi
                   6362: fi
1.15      bertrand 6363: TEX=$ac_cv_prog_TEX
                   6364: if test -n "$TEX"; then
                   6365:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6366: $as_echo "$TEX" >&6; }
                   6367: else
                   6368:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6369: $as_echo "no" >&6; }
1.1       bertrand 6370: fi
1.14      bertrand 6371: 
                   6372: 
1.15      bertrand 6373:    if test "$TEX" = no; then
                   6374:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6375: Download at http://tex.loria.fr/
                   6376: " >&5
                   6377: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6378: Download at http://tex.loria.fr/
                   6379: " >&2;}
                   6380:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6381:    fi
1.14      bertrand 6382: 
1.15      bertrand 6383:    # Extract the first word of "latex", so it can be a program name with args.
                   6384: set dummy latex; ac_word=$2
                   6385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6386: $as_echo_n "checking for $ac_word... " >&6; }
                   6387: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6388:   $as_echo_n "(cached) " >&6
1.1       bertrand 6389: else
1.15      bertrand 6390:   if test -n "$LATEX"; then
                   6391:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6392: else
1.15      bertrand 6393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6394: for as_dir in $PATH
                   6395: do
                   6396:   IFS=$as_save_IFS
                   6397:   test -z "$as_dir" && as_dir=.
                   6398:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6399:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6400:     ac_cv_prog_LATEX="yes"
                   6401:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6402:     break 2
                   6403:   fi
                   6404: done
                   6405:   done
                   6406: IFS=$as_save_IFS
1.1       bertrand 6407: 
1.15      bertrand 6408:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6409: fi
                   6410: fi
1.15      bertrand 6411: LATEX=$ac_cv_prog_LATEX
                   6412: if test -n "$LATEX"; then
                   6413:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6414: $as_echo "$LATEX" >&6; }
                   6415: else
                   6416:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6417: $as_echo "no" >&6; }
                   6418: fi
1.14      bertrand 6419: 
1.1       bertrand 6420: 
1.15      bertrand 6421:    if test "$LATEX" = no; then
                   6422:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6423: Download at http://tex.loria.fr/
                   6424: " >&5
                   6425: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6426: Download at http://tex.loria.fr/
                   6427: " >&2;}
                   6428:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6429:    fi
1.1       bertrand 6430: 
1.15      bertrand 6431:    # Extract the first word of "dvips", so it can be a program name with args.
                   6432: set dummy dvips; ac_word=$2
                   6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6434: $as_echo_n "checking for $ac_word... " >&6; }
                   6435: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6436:   $as_echo_n "(cached) " >&6
                   6437: else
                   6438:   if test -n "$DVIPS"; then
                   6439:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6440: else
                   6441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6442: for as_dir in $PATH
                   6443: do
                   6444:   IFS=$as_save_IFS
                   6445:   test -z "$as_dir" && as_dir=.
                   6446:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6447:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6448:     ac_cv_prog_DVIPS="yes"
                   6449:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6450:     break 2
                   6451:   fi
                   6452: done
                   6453:   done
                   6454: IFS=$as_save_IFS
1.1       bertrand 6455: 
1.15      bertrand 6456:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6457: fi
1.1       bertrand 6458: fi
1.15      bertrand 6459: DVIPS=$ac_cv_prog_DVIPS
                   6460: if test -n "$DVIPS"; then
                   6461:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6462: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6463: else
1.15      bertrand 6464:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6465: $as_echo "no" >&6; }
                   6466: fi
1.1       bertrand 6467: 
                   6468: 
1.15      bertrand 6469:    if test "$DVIPS" = no; then
                   6470:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6471: Download at http://tex.loria.fr/
                   6472: " >&5
                   6473: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6474: Download at http://tex.loria.fr/
                   6475: " >&2;}
                   6476:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6477:    fi
1.1       bertrand 6478: 
1.15      bertrand 6479:    # Extract the first word of "gs", so it can be a program name with args.
                   6480: set dummy gs; ac_word=$2
                   6481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6482: $as_echo_n "checking for $ac_word... " >&6; }
                   6483: if test "${ac_cv_prog_GS+set}" = set; then :
                   6484:   $as_echo_n "(cached) " >&6
                   6485: else
                   6486:   if test -n "$GS"; then
                   6487:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6488: else
1.15      bertrand 6489: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6490: for as_dir in $PATH
                   6491: do
                   6492:   IFS=$as_save_IFS
                   6493:   test -z "$as_dir" && as_dir=.
                   6494:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6495:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6496:     ac_cv_prog_GS="yes"
                   6497:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6498:     break 2
                   6499:   fi
                   6500: done
                   6501:   done
                   6502: IFS=$as_save_IFS
1.1       bertrand 6503: 
1.15      bertrand 6504:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6505: fi
                   6506: fi
                   6507: GS=$ac_cv_prog_GS
                   6508: if test -n "$GS"; then
                   6509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6510: $as_echo "$GS" >&6; }
                   6511: else
                   6512:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6513: $as_echo "no" >&6; }
1.1       bertrand 6514: fi
                   6515: 
1.15      bertrand 6516: 
                   6517:    if test "$GS" = no; then
                   6518:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6519: Download at http://ftp.lip6.fr/
                   6520: " >&5
                   6521: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6522: Download at http://ftp.lip6.fr/
                   6523: " >&2;}
                   6524:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6525:    fi
                   6526: 
                   6527:    # Extract the first word of "gv", so it can be a program name with args.
                   6528: set dummy gv; ac_word=$2
                   6529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6530: $as_echo_n "checking for $ac_word... " >&6; }
                   6531: if test "${ac_cv_prog_GV+set}" = set; then :
                   6532:   $as_echo_n "(cached) " >&6
                   6533: else
                   6534:   if test -n "$GV"; then
                   6535:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6536: else
                   6537: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6538: for as_dir in $PATH
                   6539: do
                   6540:   IFS=$as_save_IFS
                   6541:   test -z "$as_dir" && as_dir=.
                   6542:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6543:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6544:     ac_cv_prog_GV="yes"
                   6545:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6546:     break 2
                   6547:   fi
                   6548: done
1.14      bertrand 6549:   done
1.15      bertrand 6550: IFS=$as_save_IFS
1.1       bertrand 6551: 
1.15      bertrand 6552:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6553: fi
1.1       bertrand 6554: fi
1.15      bertrand 6555: GV=$ac_cv_prog_GV
                   6556: if test -n "$GV"; then
                   6557:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6558: $as_echo "$GV" >&6; }
                   6559: else
                   6560:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6561: $as_echo "no" >&6; }
1.1       bertrand 6562: fi
1.14      bertrand 6563: 
                   6564: 
1.15      bertrand 6565:    if test "$GV" = no; then
                   6566:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6567: Download at http://ftp.lip6.fr/
                   6568: " >&5
                   6569: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6570: Download at http://ftp.lip6.fr/
                   6571: " >&2;}
                   6572:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6573:    fi
1.1       bertrand 6574: else
1.15      bertrand 6575:    if test "$TEX_SUPPORT" = no; then
                   6576:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6577:    else
                   6578:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6579:    fi
1.1       bertrand 6580: fi
                   6581: 
1.15      bertrand 6582: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6583:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6584: set dummy gnuplot; ac_word=$2
                   6585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6586: $as_echo_n "checking for $ac_word... " >&6; }
                   6587: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6588:   $as_echo_n "(cached) " >&6
1.14      bertrand 6589: else
1.15      bertrand 6590:   if test -n "$GNUPLOT_P"; then
                   6591:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6592: else
1.15      bertrand 6593: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6594: for as_dir in $PATH
                   6595: do
                   6596:   IFS=$as_save_IFS
                   6597:   test -z "$as_dir" && as_dir=.
                   6598:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6599:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6600:     ac_cv_prog_GNUPLOT_P="yes"
                   6601:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6602:     break 2
                   6603:   fi
                   6604: done
                   6605:   done
                   6606: IFS=$as_save_IFS
1.1       bertrand 6607: 
1.15      bertrand 6608:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6609: fi
                   6610: fi
1.15      bertrand 6611: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6612: if test -n "$GNUPLOT_P"; then
                   6613:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6614: $as_echo "$GNUPLOT_P" >&6; }
                   6615: else
                   6616:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6617: $as_echo "no" >&6; }
1.1       bertrand 6618: fi
                   6619: 
                   6620: 
1.15      bertrand 6621:    if test "$GNUPLOT_P" = no; then
                   6622:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6623: Download at http://www.gnuplot.vt.edu/
                   6624: " >&5
                   6625: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6626: Download at http://www.gnuplot.vt.edu/
                   6627: " >&2;}
                   6628:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6629:    else
                   6630:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6631:    fi
                   6632: else
                   6633:    if test "$GNUPLOT_SUPPORT" = no; then
                   6634:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6635:    else
                   6636:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6637:    fi
                   6638: fi
1.1       bertrand 6639: 
1.15      bertrand 6640: if test "$VIM_SUPPORT" = guessed; then
                   6641:    # Extract the first word of "vim", so it can be a program name with args.
                   6642: set dummy vim; ac_word=$2
                   6643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6644: $as_echo_n "checking for $ac_word... " >&6; }
                   6645: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6646:   $as_echo_n "(cached) " >&6
1.1       bertrand 6647: else
1.15      bertrand 6648:   if test -n "$VIM"; then
                   6649:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6650: else
1.15      bertrand 6651: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6652: for as_dir in $PATH
                   6653: do
                   6654:   IFS=$as_save_IFS
                   6655:   test -z "$as_dir" && as_dir=.
                   6656:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6657:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6658:     ac_cv_prog_VIM="yes"
                   6659:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6660:     break 2
                   6661:   fi
                   6662: done
                   6663:   done
                   6664: IFS=$as_save_IFS
1.1       bertrand 6665: 
1.15      bertrand 6666:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6667: fi
                   6668: fi
1.15      bertrand 6669: VIM=$ac_cv_prog_VIM
                   6670: if test -n "$VIM"; then
                   6671:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6672: $as_echo "$VIM" >&6; }
1.1       bertrand 6673: else
1.15      bertrand 6674:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6675: $as_echo "no" >&6; }
                   6676: fi
1.1       bertrand 6677: 
                   6678: 
1.15      bertrand 6679:    if test "$VIM" = no; then
                   6680:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6681: Download at http://www.vim.org/
                   6682: " >&5
                   6683: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6684: Download at http://www.vim.org/
                   6685: " >&2;}
                   6686:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6687:    else
                   6688:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6689:    fi
1.1       bertrand 6690: else
1.15      bertrand 6691:    if test "$VIM_SUPPORT" = no; then
                   6692:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6693:    else
                   6694:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6695:    fi
1.1       bertrand 6696: fi
                   6697: 
1.15      bertrand 6698: if test "$MOTIF_SUPPORT" = guessed; then
                   6699:    CFLAGS_ORIG=$CFLAGS
                   6700:    LIBS_ORIG=$LIBS
                   6701:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6702:    LIBS="$LIB $X_LIBS"
                   6703:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6704: $as_echo_n "checking for main in -lXm... " >&6; }
                   6705: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6706:   $as_echo_n "(cached) " >&6
1.1       bertrand 6707: else
1.15      bertrand 6708:   ac_check_lib_save_LIBS=$LIBS
                   6709: LIBS="-lXm  $LIBS"
                   6710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6711: /* end confdefs.h.  */
1.1       bertrand 6712: 
                   6713: 
1.14      bertrand 6714: int
                   6715: main ()
                   6716: {
1.15      bertrand 6717: return main ();
1.14      bertrand 6718:   ;
                   6719:   return 0;
                   6720: }
                   6721: _ACEOF
1.15      bertrand 6722: if ac_fn_c_try_link "$LINENO"; then :
                   6723:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6724: else
1.15      bertrand 6725:   ac_cv_lib_Xm_main=no
                   6726: fi
                   6727: rm -f core conftest.err conftest.$ac_objext \
                   6728:     conftest$ac_exeext conftest.$ac_ext
                   6729: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6730: fi
1.15      bertrand 6731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6732: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6733: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6734:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6735: else
1.15      bertrand 6736:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6737: fi
1.14      bertrand 6738: 
1.15      bertrand 6739:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6740:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6741: Motif flag is disabled.
                   6742: " >&5
                   6743: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6744: Motif flag is disabled.
                   6745: " >&2;}
                   6746:    fi
                   6747:    LIBS=$LIBS_ORIG
                   6748:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6749: fi
                   6750: 
1.15      bertrand 6751: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6752:    CFLAGS_ORIG=$CFLAGS
                   6753:    LIBS_ORIG=$LIBS
                   6754:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6755:    LIBS="$LIB $X_LIBS"
                   6756:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6757: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6758: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6759:   $as_echo_n "(cached) " >&6
                   6760: else
                   6761:   ac_check_lib_save_LIBS=$LIBS
                   6762: LIBS="-lXpm  $LIBS"
                   6763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6764: /* end confdefs.h.  */
                   6765: 
1.1       bertrand 6766: 
                   6767: int
                   6768: main ()
                   6769: {
1.15      bertrand 6770: return main ();
1.1       bertrand 6771:   ;
                   6772:   return 0;
                   6773: }
                   6774: _ACEOF
1.15      bertrand 6775: if ac_fn_c_try_link "$LINENO"; then :
                   6776:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6777: else
1.15      bertrand 6778:   ac_cv_lib_Xpm_main=no
                   6779: fi
                   6780: rm -f core conftest.err conftest.$ac_objext \
                   6781:     conftest$ac_exeext conftest.$ac_ext
                   6782: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6783: fi
1.15      bertrand 6784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6785: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6786: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6787:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6788: else
                   6789:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6790: fi
1.15      bertrand 6791: 
                   6792:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6793:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6794:    else
                   6795:        libX=""
                   6796:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6797: Motif flag is disabled.
                   6798: " >&5
                   6799: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6800: Motif flag is disabled.
                   6801: " >&2;}
                   6802:    fi
                   6803:    LIBS=$LIBS_ORIG
                   6804:    CFLAGS=$CFLAGS_ORIG
                   6805: else
                   6806:    libX=""
1.1       bertrand 6807: fi
1.14      bertrand 6808: 
                   6809: 
                   6810: 
1.1       bertrand 6811: 
                   6812: 
1.15      bertrand 6813: 
                   6814: 
                   6815: 
                   6816: 
                   6817: 
                   6818: 
                   6819: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6820: 
                   6821: 
                   6822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6823: $as_echo_n "checking for main in -lm... " >&6; }
                   6824: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6825:   $as_echo_n "(cached) " >&6
1.1       bertrand 6826: else
1.15      bertrand 6827:   ac_check_lib_save_LIBS=$LIBS
                   6828: LIBS="-lm  $LIBS"
                   6829: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6830: /* end confdefs.h.  */
1.15      bertrand 6831: 
                   6832: 
1.1       bertrand 6833: int
                   6834: main ()
                   6835: {
1.15      bertrand 6836: return main ();
1.1       bertrand 6837:   ;
                   6838:   return 0;
                   6839: }
                   6840: _ACEOF
1.15      bertrand 6841: if ac_fn_c_try_link "$LINENO"; then :
                   6842:   ac_cv_lib_m_main=yes
1.1       bertrand 6843: else
1.15      bertrand 6844:   ac_cv_lib_m_main=no
                   6845: fi
                   6846: rm -f core conftest.err conftest.$ac_objext \
                   6847:     conftest$ac_exeext conftest.$ac_ext
                   6848: LIBS=$ac_check_lib_save_LIBS
                   6849: fi
                   6850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6851: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6852: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6853:   cat >>confdefs.h <<_ACEOF
                   6854: #define HAVE_LIBM 1
                   6855: _ACEOF
1.14      bertrand 6856: 
1.15      bertrand 6857:   LIBS="-lm $LIBS"
1.1       bertrand 6858: 
1.15      bertrand 6859: else
                   6860:   as_fn_error "Can not find libm !" "$LINENO" 5
1.1       bertrand 6861: fi
                   6862: 
1.15      bertrand 6863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6864: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6865: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6866:   $as_echo_n "(cached) " >&6
1.1       bertrand 6867: else
1.15      bertrand 6868:   ac_check_lib_save_LIBS=$LIBS
                   6869: LIBS="-lpthread  $LIBS"
                   6870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6871: /* end confdefs.h.  */
1.15      bertrand 6872: 
                   6873: 
1.14      bertrand 6874: int
                   6875: main ()
                   6876: {
1.15      bertrand 6877: return main ();
1.14      bertrand 6878:   ;
                   6879:   return 0;
                   6880: }
                   6881: _ACEOF
1.15      bertrand 6882: if ac_fn_c_try_link "$LINENO"; then :
                   6883:   ac_cv_lib_pthread_main=yes
                   6884: else
                   6885:   ac_cv_lib_pthread_main=no
                   6886: fi
                   6887: rm -f core conftest.err conftest.$ac_objext \
                   6888:     conftest$ac_exeext conftest.$ac_ext
                   6889: LIBS=$ac_check_lib_save_LIBS
                   6890: fi
                   6891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   6892: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   6893: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   6894:   cat >>confdefs.h <<_ACEOF
                   6895: #define HAVE_LIBPTHREAD 1
1.14      bertrand 6896: _ACEOF
                   6897: 
1.15      bertrand 6898:   LIBS="-lpthread $LIBS"
                   6899: 
1.1       bertrand 6900: else
1.15      bertrand 6901:   as_fn_error "Can not find libpthread !" "$LINENO" 5
                   6902: fi
1.14      bertrand 6903: 
1.1       bertrand 6904: 
1.15      bertrand 6905: if test "$CYGWIN" != yes; then
                   6906:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   6907: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   6908: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   6909:   $as_echo_n "(cached) " >&6
1.1       bertrand 6910: else
1.15      bertrand 6911:   ac_check_lib_save_LIBS=$LIBS
                   6912: LIBS="-ldl  $LIBS"
                   6913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6914: /* end confdefs.h.  */
                   6915: 
1.15      bertrand 6916: /* Override any GCC internal prototype to avoid an error.
                   6917:    Use char because int might match the return type of a GCC
                   6918:    builtin and then its argument prototype would still apply.  */
                   6919: #ifdef __cplusplus
                   6920: extern "C"
                   6921: #endif
                   6922: char dlopen ();
1.1       bertrand 6923: int
                   6924: main ()
                   6925: {
1.15      bertrand 6926: return dlopen ();
1.1       bertrand 6927:   ;
                   6928:   return 0;
                   6929: }
                   6930: _ACEOF
1.15      bertrand 6931: if ac_fn_c_try_link "$LINENO"; then :
                   6932:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 6933: else
1.15      bertrand 6934:   ac_cv_lib_dl_dlopen=no
                   6935: fi
                   6936: rm -f core conftest.err conftest.$ac_objext \
                   6937:     conftest$ac_exeext conftest.$ac_ext
                   6938: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6939: fi
1.15      bertrand 6940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   6941: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   6942: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   6943:   LIBS="$LIBS -ldl"
1.14      bertrand 6944: else
1.15      bertrand 6945:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   6946: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 6947: fi
                   6948: 
1.14      bertrand 6949: fi
1.1       bertrand 6950: 
1.15      bertrand 6951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   6952: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   6953: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   6954:   $as_echo_n "(cached) " >&6
                   6955: else
                   6956:   ac_check_lib_save_LIBS=$LIBS
                   6957: LIBS="-lrt  $LIBS"
                   6958: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6959: /* end confdefs.h.  */
1.15      bertrand 6960: 
                   6961: /* Override any GCC internal prototype to avoid an error.
                   6962:    Use char because int might match the return type of a GCC
                   6963:    builtin and then its argument prototype would still apply.  */
                   6964: #ifdef __cplusplus
                   6965: extern "C"
                   6966: #endif
                   6967: char nanosleep ();
1.1       bertrand 6968: int
                   6969: main ()
                   6970: {
1.15      bertrand 6971: return nanosleep ();
1.1       bertrand 6972:   ;
                   6973:   return 0;
                   6974: }
                   6975: _ACEOF
1.15      bertrand 6976: if ac_fn_c_try_link "$LINENO"; then :
                   6977:   ac_cv_lib_rt_nanosleep=yes
                   6978: else
                   6979:   ac_cv_lib_rt_nanosleep=no
                   6980: fi
                   6981: rm -f core conftest.err conftest.$ac_objext \
                   6982:     conftest$ac_exeext conftest.$ac_ext
                   6983: LIBS=$ac_check_lib_save_LIBS
                   6984: fi
                   6985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   6986: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   6987: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   6988:   LIBS="$LIBS -lrt"
1.1       bertrand 6989: else
1.15      bertrand 6990:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   6991: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   6992: fi
1.1       bertrand 6993: 
                   6994: 
1.15      bertrand 6995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   6996: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   6997: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   6998:   $as_echo_n "(cached) " >&6
1.1       bertrand 6999: else
1.15      bertrand 7000:   ac_check_lib_save_LIBS=$LIBS
                   7001: LIBS="-lsocket  $LIBS"
                   7002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7003: /* end confdefs.h.  */
1.15      bertrand 7004: 
                   7005: /* Override any GCC internal prototype to avoid an error.
                   7006:    Use char because int might match the return type of a GCC
                   7007:    builtin and then its argument prototype would still apply.  */
                   7008: #ifdef __cplusplus
                   7009: extern "C"
                   7010: #endif
                   7011: char bind ();
1.1       bertrand 7012: int
                   7013: main ()
                   7014: {
1.15      bertrand 7015: return bind ();
1.1       bertrand 7016:   ;
                   7017:   return 0;
                   7018: }
                   7019: _ACEOF
1.15      bertrand 7020: if ac_fn_c_try_link "$LINENO"; then :
                   7021:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7022: else
1.15      bertrand 7023:   ac_cv_lib_socket_bind=no
1.1       bertrand 7024: fi
1.15      bertrand 7025: rm -f core conftest.err conftest.$ac_objext \
                   7026:     conftest$ac_exeext conftest.$ac_ext
                   7027: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7028: fi
1.15      bertrand 7029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7030: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7031: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7032:   LIBS="$LIBS -lsocket"
                   7033: else
                   7034:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7035: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7036: fi
                   7037: 
                   7038: 
1.15      bertrand 7039: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7040: 
                   7041: # Check whether --with-mysql was given.
                   7042: if test "${with_mysql+set}" = set; then :
                   7043:   withval=$with_mysql;
                   7044: else
                   7045:   with_mysql=check
                   7046: fi
1.14      bertrand 7047: 
                   7048: 
1.15      bertrand 7049: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7050:    libMySQLinc="-I/usr/include"
1.30    ! bertrand 7051:    libMySQLlib="/usr/lib"
1.14      bertrand 7052: 
1.15      bertrand 7053:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7054: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7055:    saved_CFLAGS="$CFLAGS"
1.30    ! bertrand 7056:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7057:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7058: /* end confdefs.h.  */
1.15      bertrand 7059: #include "mysql.h"
1.1       bertrand 7060: int
                   7061: main ()
                   7062: {
1.15      bertrand 7063: 
1.1       bertrand 7064:   ;
                   7065:   return 0;
                   7066: }
                   7067: _ACEOF
1.15      bertrand 7068: if ac_fn_c_try_compile "$LINENO"; then :
                   7069:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7070: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7071:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7072: else
1.15      bertrand 7073:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7074: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7075: fi
1.14      bertrand 7076: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7077:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7078: 
1.15      bertrand 7079:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7080:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7081: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7082:        saved_CFLAGS="$CFLAGS"
                   7083:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7084:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7085: /* end confdefs.h.  */
1.15      bertrand 7086: #include "mysql.h"
1.1       bertrand 7087: int
                   7088: main ()
                   7089: {
                   7090: 
                   7091:   ;
                   7092:   return 0;
                   7093: }
                   7094: _ACEOF
1.15      bertrand 7095: if ac_fn_c_try_compile "$LINENO"; then :
                   7096:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7097: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7098:                        libMySQLinc=$libMySQLinc
                   7099: else
                   7100:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7101: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7102: fi
                   7103: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7104:        CFLAGS=$saved_CFLAGS
                   7105:        libMySQLinc=$libMySQLinc/mysql
                   7106:    fi
                   7107: 
                   7108:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7109:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7110: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7111:        saved_CFLAGS="$CFLAGS"
                   7112:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7113:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7114: /* end confdefs.h.  */
1.15      bertrand 7115: #include "mysql.h"
1.1       bertrand 7116: int
                   7117: main ()
                   7118: {
                   7119: 
                   7120:   ;
                   7121:   return 0;
                   7122: }
                   7123: _ACEOF
1.15      bertrand 7124: if ac_fn_c_try_compile "$LINENO"; then :
                   7125:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7126: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7127:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7128: else
1.15      bertrand 7129:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7130: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7131: fi
                   7132: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7133:        CFLAGS=$saved_CFLAGS
                   7134:        libMySQLinc=$libMySQLinc/../local/include
                   7135:        libMySQLlib=$libMySQLlib/../local/lib
                   7136:    fi
1.1       bertrand 7137: 
1.15      bertrand 7138:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7139:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7140: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7141:        saved_CFLAGS="$CFLAGS"
                   7142:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7143:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7144: /* end confdefs.h.  */
1.15      bertrand 7145: #include "mysql.h"
1.1       bertrand 7146: int
                   7147: main ()
                   7148: {
                   7149: 
                   7150:   ;
                   7151:   return 0;
                   7152: }
                   7153: _ACEOF
1.15      bertrand 7154: if ac_fn_c_try_compile "$LINENO"; then :
                   7155:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7156: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7157:                        libMySQLinc=$libMySQLinc/mysql
                   7158: else
                   7159:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7160: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7161: fi
                   7162: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7163:        CFLAGS=$saved_CFLAGS
                   7164:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7165:        libMySQLlib=$libMySQLlib/../local/lib
                   7166:    fi
                   7167: else
                   7168:    if test "x$with_mysql" != xno; then
                   7169:        libMySQLinc="-I$with_mysql/include"
1.30    ! bertrand 7170:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7171: 
                   7172:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7173: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7174:        saved_CFLAGS="$CFLAGS"
                   7175:        CFLAGS="$CFLAGS $libMySQLinc"
                   7176:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7177: /* end confdefs.h.  */
1.15      bertrand 7178: #include "mysql.h"
1.1       bertrand 7179: int
                   7180: main ()
                   7181: {
                   7182: 
                   7183:   ;
                   7184:   return 0;
                   7185: }
                   7186: _ACEOF
1.15      bertrand 7187: if ac_fn_c_try_compile "$LINENO"; then :
                   7188:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7189: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7190:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7191: else
1.15      bertrand 7192:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7193: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7194: fi
                   7195: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7196:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7197: 
1.15      bertrand 7198:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7199:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7200: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7201:            saved_CFLAGS="$CFLAGS"
                   7202:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7203:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7204: /* end confdefs.h.  */
1.15      bertrand 7205: #include "mysql.h"
1.1       bertrand 7206: int
                   7207: main ()
                   7208: {
                   7209: 
                   7210:   ;
                   7211:   return 0;
                   7212: }
                   7213: _ACEOF
1.15      bertrand 7214: if ac_fn_c_try_compile "$LINENO"; then :
                   7215:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7216: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7217:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7218: else
1.15      bertrand 7219:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7220: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7221: fi
                   7222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7223:            CFLAGS=$saved_CFLAGS
                   7224:            libMySQLinc=$libMySQLinc/mysql
                   7225:        fi
                   7226:    else
                   7227:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7228:    fi
                   7229: fi
1.14      bertrand 7230: 
1.15      bertrand 7231: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7232:    MYSQL_LIB=no
1.14      bertrand 7233: 
1.15      bertrand 7234:    if test $MYSQL_LIB = no; then
                   7235:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7236: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7237:        saved_LIBS="$LIBS"
1.30    ! bertrand 7238:        if test $STATIC = no; then
        !          7239:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
        !          7240:        else
        !          7241:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
        !          7242:        fi
1.15      bertrand 7243:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7244: /* end confdefs.h.  */
1.15      bertrand 7245: #include "mysql.h"
1.1       bertrand 7246: int
                   7247: main ()
                   7248: {
1.15      bertrand 7249: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7250:   ;
                   7251:   return 0;
                   7252: }
                   7253: _ACEOF
1.15      bertrand 7254: if ac_fn_c_try_link "$LINENO"; then :
                   7255:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7256: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7257: else
1.15      bertrand 7258:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7259: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7260: fi
                   7261: rm -f core conftest.err conftest.$ac_objext \
                   7262:     conftest$ac_exeext conftest.$ac_ext
                   7263:        LIBS=$saved_LIBS;
1.30    ! bertrand 7264:        if test $STATIC = no; then
        !          7265:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
        !          7266:        else
        !          7267:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
        !          7268:            EXT_SQL="$EXT_SQL $libMySQLlib"
        !          7269:        fi
1.15      bertrand 7270:    fi
1.14      bertrand 7271: 
1.15      bertrand 7272:    if test $MYSQL_LIB = no; then
                   7273:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7274:    fi
1.14      bertrand 7275: fi
1.15      bertrand 7276: 
                   7277: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7278:    libMySQLinc=
                   7279:    libMySQLlib=
1.1       bertrand 7280: fi
1.14      bertrand 7281: 
                   7282: 
                   7283: 
1.1       bertrand 7284: 
                   7285: 
1.15      bertrand 7286: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7287: 
                   7288: # Check whether --with-postgresql was given.
                   7289: if test "${with_postgresql+set}" = set; then :
                   7290:   withval=$with_postgresql;
1.14      bertrand 7291: else
1.15      bertrand 7292:   with_postgresql=check
                   7293: fi
                   7294: 
                   7295: 
                   7296: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7297: # no [--without], valeur [--with=valeur].
                   7298: 
                   7299: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7300:    libPgSQLinc="-I/usr/include"
1.30    ! bertrand 7301:    libPgSQLlib="/usr/lib"
1.15      bertrand 7302: 
                   7303:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7304: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7305:    saved_CFLAGS="$CFLAGS"
                   7306:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7307:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7308: /* end confdefs.h.  */
1.15      bertrand 7309: #include "libpq-fe.h"
1.1       bertrand 7310: int
                   7311: main ()
                   7312: {
1.15      bertrand 7313: 
1.1       bertrand 7314:   ;
                   7315:   return 0;
                   7316: }
                   7317: _ACEOF
1.15      bertrand 7318: if ac_fn_c_try_compile "$LINENO"; then :
                   7319:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7320: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7321: else
1.15      bertrand 7322:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7323: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7324: fi
1.14      bertrand 7325: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7326:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7327: 
1.15      bertrand 7328:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7329:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7330: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7331:        saved_CFLAGS="$CFLAGS"
                   7332:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7333:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7334: /* end confdefs.h.  */
1.15      bertrand 7335: #include "libpq-fe.h"
1.1       bertrand 7336: int
                   7337: main ()
                   7338: {
                   7339: 
                   7340:   ;
                   7341:   return 0;
                   7342: }
                   7343: _ACEOF
1.15      bertrand 7344: if ac_fn_c_try_compile "$LINENO"; then :
                   7345:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7346: $as_echo "yes" >&6; };
                   7347:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7348: else
                   7349:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7350: $as_echo "no" >&6; };
                   7351:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7352: fi
                   7353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7354:        CFLAGS=$saved_CFLAGS
                   7355:        libPgSQLinc=$libPgSQLinc/postgresql
                   7356:    fi
                   7357: 
                   7358:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7359:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7360: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7361:        saved_CFLAGS="$CFLAGS"
                   7362:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7363:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7364: /* end confdefs.h.  */
1.15      bertrand 7365: #include "libpq-fe.h"
1.1       bertrand 7366: int
                   7367: main ()
                   7368: {
                   7369: 
                   7370:   ;
                   7371:   return 0;
                   7372: }
                   7373: _ACEOF
1.15      bertrand 7374: if ac_fn_c_try_compile "$LINENO"; then :
                   7375:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7376: $as_echo "yes" >&6; };
                   7377:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7378: else
1.15      bertrand 7379:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7380: $as_echo "no" >&6; };
                   7381:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7382: fi
                   7383: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7384:        CFLAGS=$saved_CFLAGS
                   7385:        libPgSQLinc=$libPgSQLinc/pgsql
                   7386:    fi
1.1       bertrand 7387: 
1.15      bertrand 7388:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7389:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7390: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7391:        saved_CFLAGS="$CFLAGS"
                   7392:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7393:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7394: /* end confdefs.h.  */
1.15      bertrand 7395: #include "libpq-fe.h"
1.1       bertrand 7396: int
                   7397: main ()
                   7398: {
                   7399: 
                   7400:   ;
                   7401:   return 0;
                   7402: }
                   7403: _ACEOF
1.15      bertrand 7404: if ac_fn_c_try_compile "$LINENO"; then :
                   7405:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7406: $as_echo "yes" >&6; };
                   7407:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7408: else
                   7409:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7410: $as_echo "no" >&6; };
                   7411:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7412: fi
                   7413: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7414:        CFLAGS=$saved_CFLAGS
                   7415:        libPgSQLinc=$libPgSQLinc/../local/include
                   7416:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7417:    fi
                   7418: 
                   7419:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7420:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7421: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7422:        saved_CFLAGS="$CFLAGS"
                   7423:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7424:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7425: /* end confdefs.h.  */
1.15      bertrand 7426: #include "libpq-fe.h"
1.1       bertrand 7427: int
                   7428: main ()
                   7429: {
                   7430: 
                   7431:   ;
                   7432:   return 0;
                   7433: }
                   7434: _ACEOF
1.15      bertrand 7435: if ac_fn_c_try_compile "$LINENO"; then :
                   7436:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7437: $as_echo "yes" >&6; };
                   7438:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7439: else
1.15      bertrand 7440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7441: $as_echo "no" >&6; };
                   7442:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7443: fi
                   7444: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7445:        CFLAGS=$saved_CFLAGS
                   7446:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7447:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7448:    fi
1.14      bertrand 7449: 
1.15      bertrand 7450:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7451:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7452: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7453:        saved_CFLAGS="$CFLAGS"
                   7454:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7455:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7456: /* end confdefs.h.  */
1.15      bertrand 7457: #include "libpq-fe.h"
1.1       bertrand 7458: int
                   7459: main ()
                   7460: {
                   7461: 
                   7462:   ;
                   7463:   return 0;
                   7464: }
                   7465: _ACEOF
1.15      bertrand 7466: if ac_fn_c_try_compile "$LINENO"; then :
                   7467:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7468: $as_echo "yes" >&6; };
                   7469:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7470: else
1.15      bertrand 7471:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7472: $as_echo "no" >&6; };
                   7473:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7474: fi
                   7475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7476:        CFLAGS=$saved_CFLAGS
                   7477:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7478:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7479:    fi
1.14      bertrand 7480: else
1.15      bertrand 7481:    if test "x$with_postgresql" != xno; then
                   7482:        libPgSQLinc="-I$with_postgresql/include"
1.30    ! bertrand 7483:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7484: 
                   7485:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7486: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7487:        saved_CFLAGS="$CFLAGS"
                   7488:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7489:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7490: /* end confdefs.h.  */
1.15      bertrand 7491: #include "libpq-fe.h"
1.1       bertrand 7492: int
                   7493: main ()
                   7494: {
                   7495: 
                   7496:   ;
                   7497:   return 0;
                   7498: }
                   7499: _ACEOF
1.15      bertrand 7500: if ac_fn_c_try_compile "$LINENO"; then :
                   7501:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7502: $as_echo "yes" >&6; };
                   7503:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7504: else
1.15      bertrand 7505:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7506: $as_echo "no" >&6; };
                   7507:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7508: fi
1.15      bertrand 7509: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7510:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7511: 
1.15      bertrand 7512:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7513:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7514: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7515:            saved_CFLAGS="$CFLAGS"
                   7516:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7517:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7518: /* end confdefs.h.  */
1.15      bertrand 7519: #include "libpq-fe.h"
1.1       bertrand 7520: int
                   7521: main ()
                   7522: {
1.15      bertrand 7523: 
1.1       bertrand 7524:   ;
                   7525:   return 0;
                   7526: }
                   7527: _ACEOF
1.15      bertrand 7528: if ac_fn_c_try_compile "$LINENO"; then :
                   7529:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7530: $as_echo "yes" >&6; };
                   7531:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7532: else
1.15      bertrand 7533:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7534: $as_echo "no" >&6; };
                   7535:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7536: fi
                   7537: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7538:            CFLAGS=$saved_CFLAGS
                   7539:            libPgSQLinc=$libPgSQLinc/postgresql
                   7540:        fi
1.14      bertrand 7541: 
1.15      bertrand 7542:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7543:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7544: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7545:            saved_CFLAGS="$CFLAGS"
                   7546:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7547:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7548: /* end confdefs.h.  */
1.15      bertrand 7549: #include "libpq-fe.h"
1.1       bertrand 7550: int
                   7551: main ()
                   7552: {
1.15      bertrand 7553: 
1.1       bertrand 7554:   ;
                   7555:   return 0;
                   7556: }
                   7557: _ACEOF
1.15      bertrand 7558: if ac_fn_c_try_compile "$LINENO"; then :
                   7559:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7560: $as_echo "yes" >&6; };
                   7561:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7562: else
1.15      bertrand 7563:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7564: $as_echo "no" >&6; };
                   7565:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7566: fi
1.15      bertrand 7567: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7568:            CFLAGS=$saved_CFLAGS
                   7569:            libPgSQLinc=$libPgSQLinc/pgsql
                   7570:        fi
                   7571:    else
                   7572:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7573:    fi
1.1       bertrand 7574: fi
                   7575: 
1.15      bertrand 7576: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7577:    POSTGRESQL_LIB=no
1.1       bertrand 7578: 
1.15      bertrand 7579:    if test $POSTGRESQL_LIB = no; then
                   7580:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7581: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7582:        saved_LIBS="$LIBS"
1.30    ! bertrand 7583:        if test $STATIC = no; then
        !          7584:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
        !          7585:        else
        !          7586:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
        !          7587:        fi
1.15      bertrand 7588:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7589: /* end confdefs.h.  */
1.15      bertrand 7590: #include "libpq-fe.h"
1.1       bertrand 7591: int
                   7592: main ()
                   7593: {
1.15      bertrand 7594: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7595:             PQconnectdb(conninfo);
1.1       bertrand 7596:   ;
                   7597:   return 0;
                   7598: }
                   7599: _ACEOF
1.15      bertrand 7600: if ac_fn_c_try_link "$LINENO"; then :
                   7601:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7602: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7603: else
1.15      bertrand 7604:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7605: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7606: fi
                   7607: rm -f core conftest.err conftest.$ac_objext \
                   7608:     conftest$ac_exeext conftest.$ac_ext
                   7609:        LIBS=$saved_LIBS;
1.30    ! bertrand 7610:        if test $STATIC = no; then
        !          7611:            libPgSQLlib="-L/$libPgSQLlib -lpq"
        !          7612:        else
        !          7613:            libPgSQLlib="$libPgSQLlib/libpq.a"
        !          7614:            EXT_SQL="$EXT_SQL $libPgSQLlib"
        !          7615:        fi
1.15      bertrand 7616:    fi
                   7617: fi
                   7618: 
                   7619: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7620:    libPgSQLinc=
                   7621:    libPgSQLlib=
                   7622: fi
                   7623: 
                   7624: 
                   7625: 
                   7626: 
1.14      bertrand 7627: 
1.15      bertrand 7628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7629: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7630: if test "${ac_cv_path_GREP+set}" = set; then :
                   7631:   $as_echo_n "(cached) " >&6
                   7632: else
                   7633:   if test -z "$GREP"; then
                   7634:   ac_path_GREP_found=false
                   7635:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7636:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7637: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7638: do
                   7639:   IFS=$as_save_IFS
                   7640:   test -z "$as_dir" && as_dir=.
                   7641:     for ac_prog in grep ggrep; do
                   7642:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7643:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7644:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7645: # Check for GNU ac_path_GREP and select it if it is found.
                   7646:   # Check for GNU $ac_path_GREP
                   7647: case `"$ac_path_GREP" --version 2>&1` in
                   7648: *GNU*)
                   7649:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7650: *)
                   7651:   ac_count=0
                   7652:   $as_echo_n 0123456789 >"conftest.in"
                   7653:   while :
                   7654:   do
                   7655:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7656:     mv "conftest.tmp" "conftest.in"
                   7657:     cp "conftest.in" "conftest.nl"
                   7658:     $as_echo 'GREP' >> "conftest.nl"
                   7659:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7660:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7661:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7662:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7663:       # Best one so far, save it but keep looking for a better one
                   7664:       ac_cv_path_GREP="$ac_path_GREP"
                   7665:       ac_path_GREP_max=$ac_count
                   7666:     fi
                   7667:     # 10*(2^10) chars as input seems more than enough
                   7668:     test $ac_count -gt 10 && break
                   7669:   done
                   7670:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7671: esac
1.14      bertrand 7672: 
1.15      bertrand 7673:       $ac_path_GREP_found && break 3
                   7674:     done
                   7675:   done
                   7676:   done
                   7677: IFS=$as_save_IFS
                   7678:   if test -z "$ac_cv_path_GREP"; then
                   7679:     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7680:   fi
                   7681: else
                   7682:   ac_cv_path_GREP=$GREP
1.1       bertrand 7683: fi
                   7684: 
                   7685: fi
1.15      bertrand 7686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7687: $as_echo "$ac_cv_path_GREP" >&6; }
                   7688:  GREP="$ac_cv_path_GREP"
                   7689: 
                   7690: 
                   7691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7692: $as_echo_n "checking for egrep... " >&6; }
                   7693: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7694:   $as_echo_n "(cached) " >&6
                   7695: else
                   7696:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7697:    then ac_cv_path_EGREP="$GREP -E"
                   7698:    else
                   7699:      if test -z "$EGREP"; then
                   7700:   ac_path_EGREP_found=false
                   7701:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7702:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7703: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7704: do
                   7705:   IFS=$as_save_IFS
                   7706:   test -z "$as_dir" && as_dir=.
                   7707:     for ac_prog in egrep; do
                   7708:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7709:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7710:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7711: # Check for GNU ac_path_EGREP and select it if it is found.
                   7712:   # Check for GNU $ac_path_EGREP
                   7713: case `"$ac_path_EGREP" --version 2>&1` in
                   7714: *GNU*)
                   7715:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7716: *)
                   7717:   ac_count=0
                   7718:   $as_echo_n 0123456789 >"conftest.in"
                   7719:   while :
                   7720:   do
                   7721:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7722:     mv "conftest.tmp" "conftest.in"
                   7723:     cp "conftest.in" "conftest.nl"
                   7724:     $as_echo 'EGREP' >> "conftest.nl"
                   7725:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7726:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7727:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7728:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7729:       # Best one so far, save it but keep looking for a better one
                   7730:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7731:       ac_path_EGREP_max=$ac_count
                   7732:     fi
                   7733:     # 10*(2^10) chars as input seems more than enough
                   7734:     test $ac_count -gt 10 && break
                   7735:   done
                   7736:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7737: esac
                   7738: 
                   7739:       $ac_path_EGREP_found && break 3
                   7740:     done
                   7741:   done
                   7742:   done
                   7743: IFS=$as_save_IFS
                   7744:   if test -z "$ac_cv_path_EGREP"; then
                   7745:     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7746:   fi
1.1       bertrand 7747: else
1.15      bertrand 7748:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7749: fi
                   7750: 
1.15      bertrand 7751:    fi
1.1       bertrand 7752: fi
1.15      bertrand 7753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7754: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7755:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7756: 
                   7757: 
1.15      bertrand 7758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7759: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7760: if test "${ac_cv_header_stdc+set}" = set; then :
                   7761:   $as_echo_n "(cached) " >&6
1.1       bertrand 7762: else
1.15      bertrand 7763:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7764: /* end confdefs.h.  */
                   7765: #include <stdlib.h>
                   7766: #include <stdarg.h>
                   7767: #include <string.h>
                   7768: #include <float.h>
                   7769: 
                   7770: int
                   7771: main ()
                   7772: {
                   7773: 
                   7774:   ;
                   7775:   return 0;
                   7776: }
                   7777: _ACEOF
1.15      bertrand 7778: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7779:   ac_cv_header_stdc=yes
                   7780: else
1.15      bertrand 7781:   ac_cv_header_stdc=no
1.1       bertrand 7782: fi
                   7783: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7784: 
                   7785: if test $ac_cv_header_stdc = yes; then
                   7786:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7787:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7788: /* end confdefs.h.  */
                   7789: #include <string.h>
                   7790: 
                   7791: _ACEOF
                   7792: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7793:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7794: 
1.1       bertrand 7795: else
                   7796:   ac_cv_header_stdc=no
                   7797: fi
                   7798: rm -f conftest*
                   7799: 
                   7800: fi
                   7801: 
                   7802: if test $ac_cv_header_stdc = yes; then
                   7803:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7804:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7805: /* end confdefs.h.  */
                   7806: #include <stdlib.h>
                   7807: 
                   7808: _ACEOF
                   7809: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7810:   $EGREP "free" >/dev/null 2>&1; then :
                   7811: 
1.1       bertrand 7812: else
                   7813:   ac_cv_header_stdc=no
                   7814: fi
                   7815: rm -f conftest*
                   7816: 
                   7817: fi
                   7818: 
                   7819: if test $ac_cv_header_stdc = yes; then
                   7820:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 7821:   if test "$cross_compiling" = yes; then :
1.1       bertrand 7822:   :
                   7823: else
1.15      bertrand 7824:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7825: /* end confdefs.h.  */
                   7826: #include <ctype.h>
                   7827: #include <stdlib.h>
                   7828: #if ((' ' & 0x0FF) == 0x020)
                   7829: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7830: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7831: #else
                   7832: # define ISLOWER(c) \
                   7833:           (('a' <= (c) && (c) <= 'i') \
                   7834:             || ('j' <= (c) && (c) <= 'r') \
                   7835:             || ('s' <= (c) && (c) <= 'z'))
                   7836: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7837: #endif
                   7838: 
                   7839: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   7840: int
                   7841: main ()
                   7842: {
                   7843:   int i;
                   7844:   for (i = 0; i < 256; i++)
                   7845:     if (XOR (islower (i), ISLOWER (i))
                   7846:    || toupper (i) != TOUPPER (i))
                   7847:       return 2;
                   7848:   return 0;
                   7849: }
                   7850: _ACEOF
1.15      bertrand 7851: if ac_fn_c_try_run "$LINENO"; then :
                   7852: 
1.14      bertrand 7853: else
1.15      bertrand 7854:   ac_cv_header_stdc=no
                   7855: fi
                   7856: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7857:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7858: fi
1.1       bertrand 7859: 
                   7860: fi
                   7861: fi
1.15      bertrand 7862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   7863: $as_echo "$ac_cv_header_stdc" >&6; }
                   7864: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 7865: 
1.15      bertrand 7866: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 7867: 
1.1       bertrand 7868: fi
                   7869: 
1.15      bertrand 7870: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   7871: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   7872:          inttypes.h stdint.h unistd.h
                   7873: do :
                   7874:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   7875: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   7876: "
                   7877: eval as_val=\$$as_ac_Header
                   7878:    if test "x$as_val" = x""yes; then :
                   7879:   cat >>confdefs.h <<_ACEOF
                   7880: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 7881: _ACEOF
1.1       bertrand 7882: 
                   7883: fi
                   7884: 
1.15      bertrand 7885: done
                   7886: 
                   7887: 
                   7888: # The cast to long int works around a bug in the HP C Compiler
                   7889: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7890: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7891: # This bug is HP SR number 8606223364.
                   7892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   7893: $as_echo_n "checking size of void *... " >&6; }
                   7894: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   7895:   $as_echo_n "(cached) " >&6
                   7896: else
                   7897:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 7898: 
                   7899: else
1.15      bertrand 7900:   if test "$ac_cv_type_void_p" = yes; then
                   7901:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7902: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7903: { as_fn_set_status 77
                   7904: as_fn_error "cannot compute sizeof (void *)
                   7905: See \`config.log' for more details." "$LINENO" 5; }; }
                   7906:    else
                   7907:      ac_cv_sizeof_void_p=0
                   7908:    fi
                   7909: fi
1.1       bertrand 7910: 
                   7911: fi
1.15      bertrand 7912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   7913: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   7914: 
1.1       bertrand 7915: 
                   7916: 
1.15      bertrand 7917: cat >>confdefs.h <<_ACEOF
                   7918: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 7919: _ACEOF
1.1       bertrand 7920: 
1.15      bertrand 7921: 
                   7922: # The cast to long int works around a bug in the HP C Compiler
                   7923: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7924: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7925: # This bug is HP SR number 8606223364.
                   7926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   7927: $as_echo_n "checking size of char... " >&6; }
                   7928: if test "${ac_cv_sizeof_char+set}" = set; then :
                   7929:   $as_echo_n "(cached) " >&6
                   7930: else
                   7931:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   7932: 
                   7933: else
                   7934:   if test "$ac_cv_type_char" = yes; then
                   7935:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7936: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7937: { as_fn_set_status 77
                   7938: as_fn_error "cannot compute sizeof (char)
                   7939: See \`config.log' for more details." "$LINENO" 5; }; }
                   7940:    else
                   7941:      ac_cv_sizeof_char=0
                   7942:    fi
                   7943: fi
                   7944: 
1.1       bertrand 7945: fi
1.15      bertrand 7946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   7947: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 7948: 
                   7949: 
                   7950: 
1.15      bertrand 7951: cat >>confdefs.h <<_ACEOF
                   7952: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   7953: _ACEOF
1.1       bertrand 7954: 
                   7955: 
1.15      bertrand 7956: # The cast to long int works around a bug in the HP C Compiler
                   7957: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7958: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7959: # This bug is HP SR number 8606223364.
                   7960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   7961: $as_echo_n "checking size of short int... " >&6; }
                   7962: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   7963:   $as_echo_n "(cached) " >&6
                   7964: else
                   7965:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 7966: 
1.15      bertrand 7967: else
                   7968:   if test "$ac_cv_type_short_int" = yes; then
                   7969:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7970: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7971: { as_fn_set_status 77
                   7972: as_fn_error "cannot compute sizeof (short int)
                   7973: See \`config.log' for more details." "$LINENO" 5; }; }
                   7974:    else
                   7975:      ac_cv_sizeof_short_int=0
                   7976:    fi
                   7977: fi
1.1       bertrand 7978: 
1.15      bertrand 7979: fi
                   7980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   7981: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 7982: 
                   7983: 
                   7984: 
1.15      bertrand 7985: cat >>confdefs.h <<_ACEOF
                   7986: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   7987: _ACEOF
1.1       bertrand 7988: 
                   7989: 
1.15      bertrand 7990: # The cast to long int works around a bug in the HP C Compiler
                   7991: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7992: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7993: # This bug is HP SR number 8606223364.
                   7994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   7995: $as_echo_n "checking size of int... " >&6; }
                   7996: if test "${ac_cv_sizeof_int+set}" = set; then :
                   7997:   $as_echo_n "(cached) " >&6
                   7998: else
                   7999:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8000: 
1.15      bertrand 8001: else
                   8002:   if test "$ac_cv_type_int" = yes; then
                   8003:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8004: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8005: { as_fn_set_status 77
                   8006: as_fn_error "cannot compute sizeof (int)
                   8007: See \`config.log' for more details." "$LINENO" 5; }; }
                   8008:    else
                   8009:      ac_cv_sizeof_int=0
                   8010:    fi
                   8011: fi
1.1       bertrand 8012: 
1.15      bertrand 8013: fi
                   8014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8015: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8016: 
                   8017: 
                   8018: 
1.15      bertrand 8019: cat >>confdefs.h <<_ACEOF
                   8020: #define SIZEOF_INT $ac_cv_sizeof_int
                   8021: _ACEOF
1.1       bertrand 8022: 
                   8023: 
1.15      bertrand 8024: # The cast to long int works around a bug in the HP C Compiler
                   8025: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8026: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8027: # This bug is HP SR number 8606223364.
                   8028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8029: $as_echo_n "checking size of long int... " >&6; }
                   8030: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   8031:   $as_echo_n "(cached) " >&6
                   8032: else
                   8033:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8034: 
1.14      bertrand 8035: else
1.15      bertrand 8036:   if test "$ac_cv_type_long_int" = yes; then
                   8037:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8038: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8039: { as_fn_set_status 77
                   8040: as_fn_error "cannot compute sizeof (long int)
                   8041: See \`config.log' for more details." "$LINENO" 5; }; }
                   8042:    else
                   8043:      ac_cv_sizeof_long_int=0
                   8044:    fi
                   8045: fi
1.1       bertrand 8046: 
                   8047: fi
1.15      bertrand 8048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8049: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8050: 
1.1       bertrand 8051: 
                   8052: 
1.15      bertrand 8053: cat >>confdefs.h <<_ACEOF
                   8054: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8055: _ACEOF
1.15      bertrand 8056: 
                   8057: 
                   8058: # The cast to long int works around a bug in the HP C Compiler
                   8059: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8060: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8061: # This bug is HP SR number 8606223364.
                   8062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8063: $as_echo_n "checking size of long long int... " >&6; }
                   8064: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8065:   $as_echo_n "(cached) " >&6
                   8066: else
                   8067:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8068: 
1.14      bertrand 8069: else
1.15      bertrand 8070:   if test "$ac_cv_type_long_long_int" = yes; then
                   8071:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8072: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8073: { as_fn_set_status 77
                   8074: as_fn_error "cannot compute sizeof (long long int)
                   8075: See \`config.log' for more details." "$LINENO" 5; }; }
                   8076:    else
                   8077:      ac_cv_sizeof_long_long_int=0
                   8078:    fi
                   8079: fi
1.1       bertrand 8080: 
1.14      bertrand 8081: fi
1.15      bertrand 8082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8083: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8084: 
                   8085: 
                   8086: 
                   8087: cat >>confdefs.h <<_ACEOF
                   8088: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8089: _ACEOF
1.1       bertrand 8090: 
                   8091: 
1.15      bertrand 8092: # The cast to long int works around a bug in the HP C Compiler
                   8093: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8094: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8095: # This bug is HP SR number 8606223364.
                   8096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8097: $as_echo_n "checking size of float... " >&6; }
                   8098: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8099:   $as_echo_n "(cached) " >&6
                   8100: else
                   8101:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8102: 
                   8103: else
1.15      bertrand 8104:   if test "$ac_cv_type_float" = yes; then
                   8105:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8106: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8107: { as_fn_set_status 77
                   8108: as_fn_error "cannot compute sizeof (float)
                   8109: See \`config.log' for more details." "$LINENO" 5; }; }
                   8110:    else
                   8111:      ac_cv_sizeof_float=0
                   8112:    fi
1.14      bertrand 8113: fi
                   8114: 
1.1       bertrand 8115: fi
1.15      bertrand 8116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8117: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8118: 
                   8119: 
                   8120: 
                   8121: cat >>confdefs.h <<_ACEOF
                   8122: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8123: _ACEOF
1.1       bertrand 8124: 
                   8125: 
1.15      bertrand 8126: # The cast to long int works around a bug in the HP C Compiler
                   8127: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8128: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8129: # This bug is HP SR number 8606223364.
                   8130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8131: $as_echo_n "checking size of double... " >&6; }
                   8132: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8133:   $as_echo_n "(cached) " >&6
                   8134: else
                   8135:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8136: 
1.15      bertrand 8137: else
                   8138:   if test "$ac_cv_type_double" = yes; then
                   8139:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8140: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8141: { as_fn_set_status 77
                   8142: as_fn_error "cannot compute sizeof (double)
                   8143: See \`config.log' for more details." "$LINENO" 5; }; }
                   8144:    else
                   8145:      ac_cv_sizeof_double=0
                   8146:    fi
                   8147: fi
1.1       bertrand 8148: 
1.15      bertrand 8149: fi
                   8150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8151: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8152: 
1.1       bertrand 8153: 
                   8154: 
1.15      bertrand 8155: cat >>confdefs.h <<_ACEOF
                   8156: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8157: _ACEOF
1.15      bertrand 8158: 
                   8159: 
                   8160: # The cast to long int works around a bug in the HP C Compiler
                   8161: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8162: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8163: # This bug is HP SR number 8606223364.
                   8164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8165: $as_echo_n "checking size of long double... " >&6; }
                   8166: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8167:   $as_echo_n "(cached) " >&6
                   8168: else
                   8169:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8170: 
1.14      bertrand 8171: else
1.15      bertrand 8172:   if test "$ac_cv_type_long_double" = yes; then
                   8173:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8174: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8175: { as_fn_set_status 77
                   8176: as_fn_error "cannot compute sizeof (long double)
                   8177: See \`config.log' for more details." "$LINENO" 5; }; }
                   8178:    else
                   8179:      ac_cv_sizeof_long_double=0
                   8180:    fi
                   8181: fi
1.1       bertrand 8182: 
                   8183: fi
1.15      bertrand 8184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8185: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8186: 
1.1       bertrand 8187: 
                   8188: 
1.15      bertrand 8189: cat >>confdefs.h <<_ACEOF
                   8190: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8191: _ACEOF
                   8192: 
                   8193: 
1.15      bertrand 8194: 
                   8195: ac_header_dirent=no
                   8196: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8197:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8199: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   8200: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
                   8201:   $as_echo_n "(cached) " >&6
1.1       bertrand 8202: else
1.15      bertrand 8203:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8204: /* end confdefs.h.  */
                   8205: #include <sys/types.h>
1.15      bertrand 8206: #include <$ac_hdr>
1.1       bertrand 8207: 
1.15      bertrand 8208: int
                   8209: main ()
                   8210: {
                   8211: if ((DIR *) 0)
                   8212: return 0;
                   8213:   ;
                   8214:   return 0;
                   8215: }
1.1       bertrand 8216: _ACEOF
1.15      bertrand 8217: if ac_fn_c_try_compile "$LINENO"; then :
                   8218:   eval "$as_ac_Header=yes"
1.1       bertrand 8219: else
1.15      bertrand 8220:   eval "$as_ac_Header=no"
                   8221: fi
                   8222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8223: fi
1.15      bertrand 8224: eval ac_res=\$$as_ac_Header
                   8225:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8226: $as_echo "$ac_res" >&6; }
                   8227: eval as_val=\$$as_ac_Header
                   8228:    if test "x$as_val" = x""yes; then :
                   8229:   cat >>confdefs.h <<_ACEOF
                   8230: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8231: _ACEOF
1.1       bertrand 8232: 
1.15      bertrand 8233: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8234: fi
                   8235: 
1.15      bertrand 8236: done
                   8237: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8238: if test $ac_header_dirent = dirent.h; then
                   8239:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8240: $as_echo_n "checking for library containing opendir... " >&6; }
                   8241: if test "${ac_cv_search_opendir+set}" = set; then :
                   8242:   $as_echo_n "(cached) " >&6
                   8243: else
                   8244:   ac_func_search_save_LIBS=$LIBS
                   8245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8246: /* end confdefs.h.  */
                   8247: 
                   8248: /* Override any GCC internal prototype to avoid an error.
                   8249:    Use char because int might match the return type of a GCC
                   8250:    builtin and then its argument prototype would still apply.  */
                   8251: #ifdef __cplusplus
                   8252: extern "C"
                   8253: #endif
                   8254: char opendir ();
                   8255: int
                   8256: main ()
                   8257: {
                   8258: return opendir ();
                   8259:   ;
                   8260:   return 0;
                   8261: }
1.14      bertrand 8262: _ACEOF
1.15      bertrand 8263: for ac_lib in '' dir; do
                   8264:   if test -z "$ac_lib"; then
                   8265:     ac_res="none required"
                   8266:   else
                   8267:     ac_res=-l$ac_lib
                   8268:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8269:   fi
                   8270:   if ac_fn_c_try_link "$LINENO"; then :
                   8271:   ac_cv_search_opendir=$ac_res
                   8272: fi
                   8273: rm -f core conftest.err conftest.$ac_objext \
                   8274:     conftest$ac_exeext
                   8275:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8276:   break
                   8277: fi
                   8278: done
                   8279: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8280: 
1.15      bertrand 8281: else
                   8282:   ac_cv_search_opendir=no
                   8283: fi
                   8284: rm conftest.$ac_ext
                   8285: LIBS=$ac_func_search_save_LIBS
                   8286: fi
                   8287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8288: $as_echo "$ac_cv_search_opendir" >&6; }
                   8289: ac_res=$ac_cv_search_opendir
                   8290: if test "$ac_res" != no; then :
                   8291:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8292: 
1.14      bertrand 8293: fi
1.1       bertrand 8294: 
                   8295: else
1.15      bertrand 8296:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8297: $as_echo_n "checking for library containing opendir... " >&6; }
                   8298: if test "${ac_cv_search_opendir+set}" = set; then :
                   8299:   $as_echo_n "(cached) " >&6
                   8300: else
                   8301:   ac_func_search_save_LIBS=$LIBS
                   8302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8303: /* end confdefs.h.  */
1.15      bertrand 8304: 
                   8305: /* Override any GCC internal prototype to avoid an error.
                   8306:    Use char because int might match the return type of a GCC
                   8307:    builtin and then its argument prototype would still apply.  */
                   8308: #ifdef __cplusplus
                   8309: extern "C"
                   8310: #endif
                   8311: char opendir ();
1.1       bertrand 8312: int
                   8313: main ()
                   8314: {
1.15      bertrand 8315: return opendir ();
1.1       bertrand 8316:   ;
                   8317:   return 0;
                   8318: }
                   8319: _ACEOF
1.15      bertrand 8320: for ac_lib in '' x; do
                   8321:   if test -z "$ac_lib"; then
                   8322:     ac_res="none required"
                   8323:   else
                   8324:     ac_res=-l$ac_lib
                   8325:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8326:   fi
                   8327:   if ac_fn_c_try_link "$LINENO"; then :
                   8328:   ac_cv_search_opendir=$ac_res
                   8329: fi
                   8330: rm -f core conftest.err conftest.$ac_objext \
                   8331:     conftest$ac_exeext
                   8332:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8333:   break
                   8334: fi
                   8335: done
                   8336: if test "${ac_cv_search_opendir+set}" = set; then :
                   8337: 
1.1       bertrand 8338: else
1.15      bertrand 8339:   ac_cv_search_opendir=no
                   8340: fi
                   8341: rm conftest.$ac_ext
                   8342: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8343: fi
1.15      bertrand 8344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8345: $as_echo "$ac_cv_search_opendir" >&6; }
                   8346: ac_res=$ac_cv_search_opendir
                   8347: if test "$ac_res" != no; then :
                   8348:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8349: 
1.1       bertrand 8350: fi
                   8351: 
                   8352: fi
                   8353: 
1.15      bertrand 8354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8355: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8356: if test "${ac_cv_header_stdc+set}" = set; then :
                   8357:   $as_echo_n "(cached) " >&6
1.1       bertrand 8358: else
1.15      bertrand 8359:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8360: /* end confdefs.h.  */
1.15      bertrand 8361: #include <stdlib.h>
                   8362: #include <stdarg.h>
                   8363: #include <string.h>
                   8364: #include <float.h>
                   8365: 
1.1       bertrand 8366: int
                   8367: main ()
                   8368: {
1.15      bertrand 8369: 
1.1       bertrand 8370:   ;
                   8371:   return 0;
                   8372: }
                   8373: _ACEOF
1.15      bertrand 8374: if ac_fn_c_try_compile "$LINENO"; then :
                   8375:   ac_cv_header_stdc=yes
1.14      bertrand 8376: else
1.15      bertrand 8377:   ac_cv_header_stdc=no
                   8378: fi
                   8379: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8380: 
                   8381: if test $ac_cv_header_stdc = yes; then
                   8382:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8383:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8384: /* end confdefs.h.  */
                   8385: #include <string.h>
                   8386: 
                   8387: _ACEOF
                   8388: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8389:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8390: 
1.15      bertrand 8391: else
                   8392:   ac_cv_header_stdc=no
1.1       bertrand 8393: fi
1.15      bertrand 8394: rm -f conftest*
1.14      bertrand 8395: 
1.1       bertrand 8396: fi
                   8397: 
1.15      bertrand 8398: if test $ac_cv_header_stdc = yes; then
                   8399:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8400:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8401: /* end confdefs.h.  */
                   8402: #include <stdlib.h>
                   8403: 
1.14      bertrand 8404: _ACEOF
1.15      bertrand 8405: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8406:   $EGREP "free" >/dev/null 2>&1; then :
                   8407: 
                   8408: else
                   8409:   ac_cv_header_stdc=no
                   8410: fi
                   8411: rm -f conftest*
1.1       bertrand 8412: 
                   8413: fi
                   8414: 
1.15      bertrand 8415: if test $ac_cv_header_stdc = yes; then
                   8416:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8417:   if test "$cross_compiling" = yes; then :
                   8418:   :
1.1       bertrand 8419: else
1.15      bertrand 8420:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8421: /* end confdefs.h.  */
1.15      bertrand 8422: #include <ctype.h>
                   8423: #include <stdlib.h>
                   8424: #if ((' ' & 0x0FF) == 0x020)
                   8425: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8426: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8427: #else
                   8428: # define ISLOWER(c) \
                   8429:           (('a' <= (c) && (c) <= 'i') \
                   8430:             || ('j' <= (c) && (c) <= 'r') \
                   8431:             || ('s' <= (c) && (c) <= 'z'))
                   8432: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8433: #endif
1.1       bertrand 8434: 
1.15      bertrand 8435: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8436: int
                   8437: main ()
                   8438: {
1.15      bertrand 8439:   int i;
                   8440:   for (i = 0; i < 256; i++)
                   8441:     if (XOR (islower (i), ISLOWER (i))
                   8442:    || toupper (i) != TOUPPER (i))
                   8443:       return 2;
1.1       bertrand 8444:   return 0;
                   8445: }
                   8446: _ACEOF
1.15      bertrand 8447: if ac_fn_c_try_run "$LINENO"; then :
                   8448: 
1.14      bertrand 8449: else
1.15      bertrand 8450:   ac_cv_header_stdc=no
                   8451: fi
                   8452: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8453:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8454: fi
1.14      bertrand 8455: 
1.1       bertrand 8456: fi
                   8457: fi
1.15      bertrand 8458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8459: $as_echo "$ac_cv_header_stdc" >&6; }
                   8460: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8461: 
1.15      bertrand 8462: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8463: 
                   8464: fi
                   8465: 
1.15      bertrand 8466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8467: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8468: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8469:   $as_echo_n "(cached) " >&6
1.1       bertrand 8470: else
1.15      bertrand 8471:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8472: /* end confdefs.h.  */
1.14      bertrand 8473: #include <sys/types.h>
1.15      bertrand 8474: #include <sys/wait.h>
                   8475: #ifndef WEXITSTATUS
                   8476: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8477: #endif
                   8478: #ifndef WIFEXITED
                   8479: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8480: #endif
1.1       bertrand 8481: 
                   8482: int
                   8483: main ()
                   8484: {
1.15      bertrand 8485:   int s;
                   8486:   wait (&s);
                   8487:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8488:   ;
                   8489:   return 0;
                   8490: }
                   8491: _ACEOF
1.15      bertrand 8492: if ac_fn_c_try_compile "$LINENO"; then :
                   8493:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8494: else
1.15      bertrand 8495:   ac_cv_header_sys_wait_h=no
                   8496: fi
                   8497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8498: fi
                   8499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8500: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8501: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8502: 
1.15      bertrand 8503: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8504: 
                   8505: fi
                   8506: 
1.15      bertrand 8507: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8508:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8509:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8510: do :
                   8511:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8512: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   8513: eval as_val=\$$as_ac_Header
                   8514:    if test "x$as_val" = x""yes; then :
                   8515:   cat >>confdefs.h <<_ACEOF
                   8516: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8517: _ACEOF
                   8518: 
                   8519: fi
                   8520: 
1.15      bertrand 8521: done
                   8522: 
1.1       bertrand 8523: 
1.15      bertrand 8524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8525: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8526: if test "${ac_cv_c_const+set}" = set; then :
                   8527:   $as_echo_n "(cached) " >&6
1.1       bertrand 8528: else
1.15      bertrand 8529:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8530: /* end confdefs.h.  */
                   8531: 
                   8532: int
                   8533: main ()
                   8534: {
1.15      bertrand 8535: /* FIXME: Include the comments suggested by Paul. */
                   8536: #ifndef __cplusplus
                   8537:   /* Ultrix mips cc rejects this.  */
                   8538:   typedef int charset[2];
                   8539:   const charset cs;
                   8540:   /* SunOS 4.1.1 cc rejects this.  */
                   8541:   char const *const *pcpcc;
                   8542:   char **ppc;
                   8543:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8544:   struct point {int x, y;};
                   8545:   static struct point const zero = {0,0};
                   8546:   /* AIX XL C 1.02.0.0 rejects this.
                   8547:      It does not let you subtract one const X* pointer from another in
                   8548:      an arm of an if-expression whose if-part is not a constant
                   8549:      expression */
                   8550:   const char *g = "string";
                   8551:   pcpcc = &g + (g ? g-g : 0);
                   8552:   /* HPUX 7.0 cc rejects these. */
                   8553:   ++pcpcc;
                   8554:   ppc = (char**) pcpcc;
                   8555:   pcpcc = (char const *const *) ppc;
                   8556:   { /* SCO 3.2v4 cc rejects this.  */
                   8557:     char *t;
                   8558:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8559: 
                   8560:     *t++ = 0;
                   8561:     if (s) return 0;
                   8562:   }
                   8563:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8564:     int x[] = {25, 17};
                   8565:     const int *foo = &x[0];
                   8566:     ++foo;
                   8567:   }
                   8568:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8569:     typedef const int *iptr;
                   8570:     iptr p = 0;
                   8571:     ++p;
                   8572:   }
                   8573:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8574:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8575:     struct s { int j; const int *ap[3]; };
                   8576:     struct s *b; b->j = 5;
                   8577:   }
                   8578:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8579:     const int foo = 10;
                   8580:     if (!foo) return 0;
                   8581:   }
                   8582:   return !cs[0] && !zero.x;
                   8583: #endif
                   8584: 
1.14      bertrand 8585:   ;
1.1       bertrand 8586:   return 0;
                   8587: }
                   8588: _ACEOF
1.15      bertrand 8589: if ac_fn_c_try_compile "$LINENO"; then :
                   8590:   ac_cv_c_const=yes
1.14      bertrand 8591: else
1.15      bertrand 8592:   ac_cv_c_const=no
1.1       bertrand 8593: fi
1.14      bertrand 8594: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8595: fi
1.15      bertrand 8596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8597: $as_echo "$ac_cv_c_const" >&6; }
                   8598: if test $ac_cv_c_const = no; then
1.1       bertrand 8599: 
1.15      bertrand 8600: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8601: 
1.15      bertrand 8602: fi
1.1       bertrand 8603: 
1.15      bertrand 8604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8605: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8606: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8607:   $as_echo_n "(cached) " >&6
1.1       bertrand 8608: else
1.15      bertrand 8609:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8610: /* end confdefs.h.  */
1.15      bertrand 8611: #include <sys/types.h>
                   8612: 
1.1       bertrand 8613: _ACEOF
1.15      bertrand 8614: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8615:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8616:   ac_cv_type_uid_t=yes
1.1       bertrand 8617: else
1.15      bertrand 8618:   ac_cv_type_uid_t=no
                   8619: fi
                   8620: rm -f conftest*
1.14      bertrand 8621: 
1.1       bertrand 8622: fi
1.15      bertrand 8623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8624: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8625: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8626: 
1.15      bertrand 8627: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8628: 
                   8629: 
1.15      bertrand 8630: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8631: 
                   8632: fi
                   8633: 
1.15      bertrand 8634: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8635: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8636: 
                   8637: else
1.15      bertrand 8638: 
                   8639: cat >>confdefs.h <<_ACEOF
                   8640: #define pid_t int
1.14      bertrand 8641: _ACEOF
                   8642: 
1.15      bertrand 8643: fi
1.14      bertrand 8644: 
1.15      bertrand 8645: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8646: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8647: 
1.15      bertrand 8648: else
1.1       bertrand 8649: 
1.15      bertrand 8650: cat >>confdefs.h <<_ACEOF
                   8651: #define size_t unsigned int
1.1       bertrand 8652: _ACEOF
1.14      bertrand 8653: 
1.1       bertrand 8654: fi
                   8655: 
1.15      bertrand 8656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8657: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8658: if test "${ac_cv_header_time+set}" = set; then :
                   8659:   $as_echo_n "(cached) " >&6
1.1       bertrand 8660: else
1.15      bertrand 8661:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8662: /* end confdefs.h.  */
1.15      bertrand 8663: #include <sys/types.h>
                   8664: #include <sys/time.h>
                   8665: #include <time.h>
1.1       bertrand 8666: 
1.14      bertrand 8667: int
                   8668: main ()
                   8669: {
1.15      bertrand 8670: if ((struct tm *) 0)
                   8671: return 0;
1.14      bertrand 8672:   ;
                   8673:   return 0;
                   8674: }
1.1       bertrand 8675: _ACEOF
1.15      bertrand 8676: if ac_fn_c_try_compile "$LINENO"; then :
                   8677:   ac_cv_header_time=yes
1.1       bertrand 8678: else
1.15      bertrand 8679:   ac_cv_header_time=no
1.1       bertrand 8680: fi
1.15      bertrand 8681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8682: fi
1.15      bertrand 8683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8684: $as_echo "$ac_cv_header_time" >&6; }
                   8685: if test $ac_cv_header_time = yes; then
1.1       bertrand 8686: 
1.15      bertrand 8687: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8688: 
                   8689: fi
                   8690: 
1.15      bertrand 8691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8692: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8693: if test "${ac_cv_struct_tm+set}" = set; then :
                   8694:   $as_echo_n "(cached) " >&6
1.1       bertrand 8695: else
1.15      bertrand 8696:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8697: /* end confdefs.h.  */
1.15      bertrand 8698: #include <sys/types.h>
                   8699: #include <time.h>
1.1       bertrand 8700: 
                   8701: int
                   8702: main ()
                   8703: {
1.15      bertrand 8704: struct tm tm;
                   8705:                     int *p = &tm.tm_sec;
                   8706:                     return !p;
1.1       bertrand 8707:   ;
                   8708:   return 0;
                   8709: }
                   8710: _ACEOF
1.15      bertrand 8711: if ac_fn_c_try_compile "$LINENO"; then :
                   8712:   ac_cv_struct_tm=time.h
1.1       bertrand 8713: else
1.15      bertrand 8714:   ac_cv_struct_tm=sys/time.h
                   8715: fi
                   8716: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8717: fi
                   8718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8719: $as_echo "$ac_cv_struct_tm" >&6; }
                   8720: if test $ac_cv_struct_tm = sys/time.h; then
                   8721: 
                   8722: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8723: 
1.1       bertrand 8724: fi
                   8725: 
                   8726: 
1.15      bertrand 8727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8728: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8729: if test "${ac_cv_type_signal+set}" = set; then :
                   8730:   $as_echo_n "(cached) " >&6
1.1       bertrand 8731: else
1.15      bertrand 8732:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8733: /* end confdefs.h.  */
1.15      bertrand 8734: #include <sys/types.h>
                   8735: #include <signal.h>
1.1       bertrand 8736: 
                   8737: int
                   8738: main ()
                   8739: {
1.15      bertrand 8740: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8741:   ;
                   8742:   return 0;
                   8743: }
                   8744: _ACEOF
1.15      bertrand 8745: if ac_fn_c_try_compile "$LINENO"; then :
                   8746:   ac_cv_type_signal=int
1.1       bertrand 8747: else
1.15      bertrand 8748:   ac_cv_type_signal=void
1.1       bertrand 8749: fi
1.15      bertrand 8750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8751: fi
1.15      bertrand 8752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8753: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8754: 
1.15      bertrand 8755: cat >>confdefs.h <<_ACEOF
                   8756: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8757: _ACEOF
1.1       bertrand 8758: 
1.15      bertrand 8759: 
                   8760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8761: $as_echo_n "checking for working strcoll... " >&6; }
                   8762: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8763:   $as_echo_n "(cached) " >&6
                   8764: else
                   8765:   if test "$cross_compiling" = yes; then :
                   8766:   ac_cv_func_strcoll_works=no
                   8767: else
                   8768:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8769: /* end confdefs.h.  */
                   8770: $ac_includes_default
                   8771: int
                   8772: main ()
                   8773: {
                   8774: return (strcoll ("abc", "def") >= 0 ||
                   8775:     strcoll ("ABC", "DEF") >= 0 ||
                   8776:     strcoll ("123", "456") >= 0)
                   8777:   ;
                   8778:   return 0;
                   8779: }
                   8780: _ACEOF
                   8781: if ac_fn_c_try_run "$LINENO"; then :
                   8782:   ac_cv_func_strcoll_works=yes
                   8783: else
                   8784:   ac_cv_func_strcoll_works=no
                   8785: fi
                   8786: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8787:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8788: fi
1.1       bertrand 8789: 
                   8790: fi
1.15      bertrand 8791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   8792: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   8793: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 8794: 
1.15      bertrand 8795: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 8796: 
1.15      bertrand 8797: fi
1.1       bertrand 8798: 
1.15      bertrand 8799: for ac_func in strftime
                   8800: do :
                   8801:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   8802: if test "x$ac_cv_func_strftime" = x""yes; then :
                   8803:   cat >>confdefs.h <<_ACEOF
                   8804: #define HAVE_STRFTIME 1
                   8805: _ACEOF
1.1       bertrand 8806: 
                   8807: else
1.15      bertrand 8808:   # strftime is in -lintl on SCO UNIX.
                   8809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   8810: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   8811: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   8812:   $as_echo_n "(cached) " >&6
                   8813: else
                   8814:   ac_check_lib_save_LIBS=$LIBS
                   8815: LIBS="-lintl  $LIBS"
                   8816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8817: /* end confdefs.h.  */
                   8818: 
                   8819: /* Override any GCC internal prototype to avoid an error.
                   8820:    Use char because int might match the return type of a GCC
                   8821:    builtin and then its argument prototype would still apply.  */
                   8822: #ifdef __cplusplus
                   8823: extern "C"
                   8824: #endif
1.15      bertrand 8825: char strftime ();
1.1       bertrand 8826: int
                   8827: main ()
                   8828: {
1.15      bertrand 8829: return strftime ();
1.1       bertrand 8830:   ;
                   8831:   return 0;
                   8832: }
                   8833: _ACEOF
1.15      bertrand 8834: if ac_fn_c_try_link "$LINENO"; then :
                   8835:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 8836: else
1.15      bertrand 8837:   ac_cv_lib_intl_strftime=no
                   8838: fi
                   8839: rm -f core conftest.err conftest.$ac_objext \
                   8840:     conftest$ac_exeext conftest.$ac_ext
                   8841: LIBS=$ac_check_lib_save_LIBS
                   8842: fi
                   8843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   8844: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   8845: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   8846:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   8847: 
                   8848: LIBS="-lintl $LIBS"
                   8849: fi
                   8850: 
                   8851: fi
                   8852: done
                   8853: 
                   8854: for ac_func in vprintf
                   8855: do :
                   8856:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   8857: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   8858:   cat >>confdefs.h <<_ACEOF
                   8859: #define HAVE_VPRINTF 1
                   8860: _ACEOF
                   8861: 
                   8862: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   8863: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   8864: 
                   8865: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 8866: 
                   8867: fi
                   8868: 
                   8869: fi
1.15      bertrand 8870: done
                   8871: 
                   8872: 
                   8873: for ac_func in ftime getcwd putenv select strcspn strdup \
                   8874:        strerror strspn strstr strtod
                   8875: do :
                   8876:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8877: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   8878: eval as_val=\$$as_ac_var
                   8879:    if test "x$as_val" = x""yes; then :
1.1       bertrand 8880:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 8881: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 8882: _ACEOF
                   8883: 
                   8884: fi
                   8885: done
                   8886: 
                   8887: 
1.18      bertrand 8888: ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static"
1.17      bertrand 8889: 
1.15      bertrand 8890: 
                   8891: 
1.1       bertrand 8892: subdirs="$subdirs tools/$NCURSES"
                   8893: 
                   8894: subdirs="$subdirs tools/$READLINE"
                   8895: 
                   8896: subdirs="$subdirs tools/$GSL"
                   8897: 
                   8898: subdirs="$subdirs tools/$GPP"
                   8899: 
                   8900: subdirs="$subdirs tools/$FILE"
                   8901: 
                   8902: subdirs="$subdirs tools/$ICONV"
                   8903: 
1.9       bertrand 8904: subdirs="$subdirs tools/$SQLITE"
                   8905: 
1.17      bertrand 8906: subdirs="$subdirs tools/$UNITS"
                   8907: 
1.15      bertrand 8908: 
                   8909: 
                   8910: # Check whether --with-openssl_arch was given.
                   8911: if test "${with_openssl_arch+set}" = set; then :
                   8912:   withval=$with_openssl_arch;
                   8913: else
                   8914:   with_openssl_arch=none
                   8915: fi
                   8916: 
                   8917: 
                   8918: if test "x$with_openssl_arch" = xnone; then
                   8919:    (cd tools/$OPENSSL && ./config)
                   8920: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   8921:    (cd tools/$OPENSSL && ./Configure)
                   8922:    as_fn_error "OS/COMP informations are required!" "$LINENO" 5
                   8923: elif test "x$with_openssl_arch" = xlist; then
                   8924:    (cd tools/$OPENSSL && ./Configure)
                   8925:    as_fn_error "Please specify OS and Architecture" "$LINENO" 5
                   8926: else
                   8927:    (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   8928: fi
1.1       bertrand 8929: 
                   8930: if test "$MYGNUPLOT" = "yes"; then
                   8931:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   8932:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   8933:                (cd "$srcdir/tools" && tar -xf -)
                   8934:    fi
                   8935:    subdirs="$subdirs tools/$GNUPLOT"
                   8936: 
                   8937:    GNUPLOT_COMPILATION=$GNUPLOT
                   8938: else
                   8939:    GNUPLOT_COMPILATION=
                   8940: fi
                   8941: 
                   8942: 
                   8943: 
                   8944: case $host_cpu in
                   8945: 
                   8946:     i?86)
                   8947:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8948:            -Wno-pointer-sign"
                   8949:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8950:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8951:    break ;;
                   8952: 
                   8953:    x86_64*)
                   8954:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   8955:            -Wno-pointer-sign"
                   8956:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8957:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   8958:    break ;;
                   8959: 
                   8960:     alpha*)
                   8961:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   8962:            -Wno-pointer-sign"
                   8963:    FFLAGS="$FFLAGS -mieee -Wall"
                   8964:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   8965:    break ;;
                   8966: 
                   8967:     sparc*)
                   8968:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   8969:            -Wno-pointer-sign"
                   8970:    FFLAGS="$FFLAGS -Wall"
                   8971:    FCFLAGS="$FCFLAGS -Wall"
                   8972:    break ;;
                   8973: 
                   8974: esac
                   8975: 
1.8       bertrand 8976: case $host_os in
                   8977: 
                   8978:    cygwin*)
                   8979:        OS=Cygwin
                   8980:    break ;;
                   8981: 
                   8982:    interix*)
                   8983:        OS=Interix
                   8984:    break ;;
                   8985: 
                   8986:    *)
                   8987:        OS=$(uname)
                   8988:    break ;;
                   8989: 
                   8990: esac
                   8991: 
                   8992: 
                   8993: 
1.1       bertrand 8994: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   8995: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                   8996: 
1.22      bertrand 8997: case $OS in
1.17      bertrand 8998: 
                   8999:     Darwin)
                   9000:        EXPORT_DYNAMIC=-flat_namespace
                   9001:        NESTED_FUNCTIONS=-fnested-functions
                   9002:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.23      bertrand 9003:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.17      bertrand 9004:    break ;;
                   9005: 
                   9006:    Cygwin)
                   9007:        EXPORT_DYNAMIC=--export-all-symbols
                   9008:        NESTED_FUNCTIONS=
                   9009:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9010:    break ;;
                   9011: 
1.18      bertrand 9012:    AIX)
                   9013:        EXPORT_DYNAMIC=--export-dynamic
                   9014:        NESTED_FUNCTIONS=
                   9015:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
                   9016:    break ;;
                   9017: 
1.17      bertrand 9018:     *)
                   9019:        EXPORT_DYNAMIC=--export-dynamic
                   9020:        NESTED_FUNCTIONS=
                   9021:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9022:    break ;;
                   9023: 
                   9024: esac
                   9025: 
                   9026: 
                   9027: 
                   9028: 
1.1       bertrand 9029: 
                   9030: 
                   9031: 
                   9032: 
                   9033: 
                   9034: 
                   9035: 
                   9036: 
                   9037: 
                   9038: 
                   9039: 
                   9040: 
                   9041: 
                   9042: 
                   9043: 
                   9044: 
                   9045: 
                   9046: 
                   9047: 
1.9       bertrand 9048: 
1.24      bertrand 9049: 
1.30    ! bertrand 9050: 
1.1       bertrand 9051: ac_config_files="$ac_config_files Makefile"
                   9052: 
                   9053: ac_config_files="$ac_config_files COPYING"
                   9054: 
                   9055: ac_config_files="$ac_config_files tools/Makefile"
                   9056: 
                   9057: ac_config_files="$ac_config_files src/Makefile"
                   9058: 
                   9059: ac_config_files="$ac_config_files man/Makefile"
                   9060: 
                   9061: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9062: 
                   9063: ac_config_files="$ac_config_files doc/Makefile"
                   9064: 
                   9065: ac_config_files="$ac_config_files scripts/Makefile"
                   9066: 
                   9067: ac_config_files="$ac_config_files scripts/mkrplso"
                   9068: 
                   9069: ac_config_files="$ac_config_files scripts/rplcc"
                   9070: 
                   9071: ac_config_files="$ac_config_files scripts/rpllink"
                   9072: 
                   9073: ac_config_files="$ac_config_files rpltags/Makefile"
                   9074: 
                   9075: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9076: 
1.9       bertrand 9077: ac_config_files="$ac_config_files rplsums/Makefile"
                   9078: 
1.1       bertrand 9079: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9080: 
                   9081: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9082: 
1.20      bertrand 9083: ac_config_files="$ac_config_files ptmalloc3/Makefile"
                   9084: 
1.1       bertrand 9085: 
                   9086: ac_config_files="$ac_config_files man/rpl.1"
                   9087: 
                   9088: ac_config_files="$ac_config_files man/rplcc.1"
                   9089: 
                   9090: ac_config_files="$ac_config_files man/rpllink.1"
                   9091: 
                   9092: ac_config_files="$ac_config_files man/rpltags.1"
                   9093: 
                   9094: ac_config_files="$ac_config_files man/mkrplso.1"
                   9095: 
                   9096: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9097: 
                   9098: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9099: 
                   9100: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9101: 
                   9102: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9103: 
                   9104: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9105: 
                   9106: 
                   9107: cat >confcache <<\_ACEOF
                   9108: # This file is a shell script that caches the results of configure
                   9109: # tests run on this system so they can be shared between configure
                   9110: # scripts and configure runs, see configure's option --config-cache.
                   9111: # It is not useful on other systems.  If it contains results you don't
                   9112: # want to keep, you may remove or edit it.
                   9113: #
                   9114: # config.status only pays attention to the cache file if you give it
                   9115: # the --recheck option to rerun configure.
                   9116: #
                   9117: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9118: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9119: # following values.
                   9120: 
                   9121: _ACEOF
                   9122: 
                   9123: # The following way of writing the cache mishandles newlines in values,
                   9124: # but we know of no workaround that is simple, portable, and efficient.
                   9125: # So, we kill variables containing newlines.
                   9126: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9127: # and sets the high bit in the cache file unless we assign to the vars.
                   9128: (
                   9129:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9130:     eval ac_val=\$$ac_var
                   9131:     case $ac_val in #(
                   9132:     *${as_nl}*)
                   9133:       case $ac_var in #(
1.15      bertrand 9134:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9135: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9136:       esac
                   9137:       case $ac_var in #(
                   9138:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9139:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9140:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9141:       esac ;;
                   9142:     esac
                   9143:   done
                   9144: 
                   9145:   (set) 2>&1 |
                   9146:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9147:     *${as_nl}ac_space=\ *)
1.15      bertrand 9148:       # `set' does not quote correctly, so add quotes: double-quote
                   9149:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9150:       sed -n \
                   9151:    "s/'/'\\\\''/g;
                   9152:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9153:       ;; #(
                   9154:     *)
                   9155:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9156:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9157:       ;;
                   9158:     esac |
                   9159:     sort
                   9160: ) |
                   9161:   sed '
                   9162:      /^ac_cv_env_/b end
                   9163:      t clear
                   9164:      :clear
                   9165:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9166:      t end
                   9167:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9168:      :end' >>confcache
                   9169: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9170:   if test -w "$cache_file"; then
                   9171:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9172:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9173: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9174:     cat confcache >$cache_file
                   9175:   else
1.15      bertrand 9176:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9177: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9178:   fi
                   9179: fi
                   9180: rm -f confcache
                   9181: 
                   9182: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9183: # Let make expand exec_prefix.
                   9184: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9185: 
                   9186: DEFS=-DHAVE_CONFIG_H
                   9187: 
                   9188: ac_libobjs=
                   9189: ac_ltlibobjs=
                   9190: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9191:   # 1. Remove the extension, and $U if already installed.
                   9192:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9193:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9194:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9195:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9196:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9197:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9198: done
                   9199: LIBOBJS=$ac_libobjs
                   9200: 
                   9201: LTLIBOBJS=$ac_ltlibobjs
                   9202: 
                   9203: 
1.15      bertrand 9204:  if test -n "$EXEEXT"; then
                   9205:   am__EXEEXT_TRUE=
                   9206:   am__EXEEXT_FALSE='#'
                   9207: else
                   9208:   am__EXEEXT_TRUE='#'
                   9209:   am__EXEEXT_FALSE=
                   9210: fi
                   9211: 
1.1       bertrand 9212: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.15      bertrand 9213:   as_fn_error "conditional \"AMDEP\" was never defined.
                   9214: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9215: fi
                   9216: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.15      bertrand 9217:   as_fn_error "conditional \"am__fastdepCC\" was never defined.
                   9218: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9219: fi
                   9220: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.15      bertrand 9221:   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
                   9222: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9223: fi
                   9224: 
                   9225: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9226: ac_write_fail=0
1.1       bertrand 9227: ac_clean_files_save=$ac_clean_files
                   9228: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9229: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9230: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9231: as_write_fail=0
                   9232: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9233: #! $SHELL
                   9234: # Generated by $as_me.
                   9235: # Run this file to recreate the current configuration.
                   9236: # Compiler output produced by configure, useful for debugging
                   9237: # configure, is in config.log if it exists.
                   9238: 
                   9239: debug=false
                   9240: ac_cs_recheck=false
                   9241: ac_cs_silent=false
1.15      bertrand 9242: 
1.14      bertrand 9243: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9244: export SHELL
                   9245: _ASEOF
                   9246: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9247: ## -------------------- ##
                   9248: ## M4sh Initialization. ##
                   9249: ## -------------------- ##
1.1       bertrand 9250: 
                   9251: # Be more Bourne compatible
                   9252: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9253: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9254:   emulate sh
                   9255:   NULLCMD=:
1.15      bertrand 9256:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9257:   # is contrary to our usage.  Disable this feature.
                   9258:   alias -g '${1+"$@"}'='"$@"'
                   9259:   setopt NO_GLOB_SUBST
                   9260: else
1.15      bertrand 9261:   case `(set -o) 2>/dev/null` in #(
                   9262:   *posix*) :
                   9263:     set -o posix ;; #(
                   9264:   *) :
                   9265:      ;;
1.1       bertrand 9266: esac
                   9267: fi
                   9268: 
                   9269: 
1.15      bertrand 9270: as_nl='
                   9271: '
                   9272: export as_nl
                   9273: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9274: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9275: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9276: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9277: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9278: # but without wasting forks for bash or zsh.
                   9279: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9280:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9281:   as_echo='print -r --'
                   9282:   as_echo_n='print -rn --'
                   9283: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9284:   as_echo='printf %s\n'
                   9285:   as_echo_n='printf %s'
                   9286: else
                   9287:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9288:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9289:     as_echo_n='/usr/ucb/echo -n'
                   9290:   else
                   9291:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9292:     as_echo_n_body='eval
                   9293:       arg=$1;
                   9294:       case $arg in #(
                   9295:       *"$as_nl"*)
                   9296:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9297:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9298:       esac;
                   9299:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9300:     '
                   9301:     export as_echo_n_body
                   9302:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9303:   fi
                   9304:   export as_echo_body
                   9305:   as_echo='sh -c $as_echo_body as_echo'
                   9306: fi
1.14      bertrand 9307: 
                   9308: # The user is always right.
                   9309: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9310:   PATH_SEPARATOR=:
                   9311:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9312:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9313:       PATH_SEPARATOR=';'
                   9314:   }
1.1       bertrand 9315: fi
                   9316: 
                   9317: 
                   9318: # IFS
                   9319: # We need space, tab and new line, in precisely that order.  Quoting is
                   9320: # there to prevent editors from complaining about space-tab.
                   9321: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9322: # splitting by setting IFS to empty value.)
                   9323: IFS=" ""   $as_nl"
                   9324: 
                   9325: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9326: case $0 in #((
1.1       bertrand 9327:   *[\\/]* ) as_myself=$0 ;;
                   9328:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9329: for as_dir in $PATH
                   9330: do
                   9331:   IFS=$as_save_IFS
                   9332:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9333:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9334:   done
1.1       bertrand 9335: IFS=$as_save_IFS
                   9336: 
                   9337:      ;;
                   9338: esac
                   9339: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9340: # in which case we are not to be found in the path.
                   9341: if test "x$as_myself" = x; then
                   9342:   as_myself=$0
                   9343: fi
                   9344: if test ! -f "$as_myself"; then
1.15      bertrand 9345:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9346:   exit 1
1.1       bertrand 9347: fi
                   9348: 
1.15      bertrand 9349: # Unset variables that we do not need and which cause bugs (e.g. in
                   9350: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9351: # suppresses any "Segmentation fault" message there.  '((' could
                   9352: # trigger a bug in pdksh 5.2.14.
                   9353: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9354: do eval test x\${$as_var+set} = xset \
                   9355:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9356: done
                   9357: PS1='$ '
                   9358: PS2='> '
                   9359: PS4='+ '
                   9360: 
                   9361: # NLS nuisances.
1.15      bertrand 9362: LC_ALL=C
                   9363: export LC_ALL
                   9364: LANGUAGE=C
                   9365: export LANGUAGE
                   9366: 
                   9367: # CDPATH.
                   9368: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9369: 
                   9370: 
                   9371: # as_fn_error ERROR [LINENO LOG_FD]
                   9372: # ---------------------------------
                   9373: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9374: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   9375: # script with status $?, using 1 if that was 0.
                   9376: as_fn_error ()
                   9377: {
                   9378:   as_status=$?; test $as_status -eq 0 && as_status=1
                   9379:   if test "$3"; then
                   9380:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9381:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                   9382:   fi
                   9383:   $as_echo "$as_me: error: $1" >&2
                   9384:   as_fn_exit $as_status
                   9385: } # as_fn_error
                   9386: 
                   9387: 
                   9388: # as_fn_set_status STATUS
                   9389: # -----------------------
                   9390: # Set $? to STATUS, without forking.
                   9391: as_fn_set_status ()
                   9392: {
                   9393:   return $1
                   9394: } # as_fn_set_status
                   9395: 
                   9396: # as_fn_exit STATUS
                   9397: # -----------------
                   9398: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9399: as_fn_exit ()
                   9400: {
                   9401:   set +e
                   9402:   as_fn_set_status $1
                   9403:   exit $1
                   9404: } # as_fn_exit
                   9405: 
                   9406: # as_fn_unset VAR
                   9407: # ---------------
                   9408: # Portably unset VAR.
                   9409: as_fn_unset ()
                   9410: {
                   9411:   { eval $1=; unset $1;}
                   9412: }
                   9413: as_unset=as_fn_unset
                   9414: # as_fn_append VAR VALUE
                   9415: # ----------------------
                   9416: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9417: # advantage of any shell optimizations that allow amortized linear growth over
                   9418: # repeated appends, instead of the typical quadratic growth present in naive
                   9419: # implementations.
                   9420: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9421:   eval 'as_fn_append ()
                   9422:   {
                   9423:     eval $1+=\$2
                   9424:   }'
                   9425: else
                   9426:   as_fn_append ()
                   9427:   {
                   9428:     eval $1=\$$1\$2
                   9429:   }
                   9430: fi # as_fn_append
                   9431: 
                   9432: # as_fn_arith ARG...
                   9433: # ------------------
                   9434: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9435: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9436: # must be portable across $(()) and expr.
                   9437: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9438:   eval 'as_fn_arith ()
                   9439:   {
                   9440:     as_val=$(( $* ))
                   9441:   }'
                   9442: else
                   9443:   as_fn_arith ()
                   9444:   {
                   9445:     as_val=`expr "$@" || test $? -eq 1`
                   9446:   }
                   9447: fi # as_fn_arith
                   9448: 
1.1       bertrand 9449: 
                   9450: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9451:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9452:   as_expr=expr
                   9453: else
                   9454:   as_expr=false
                   9455: fi
                   9456: 
                   9457: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9458:   as_basename=basename
                   9459: else
                   9460:   as_basename=false
                   9461: fi
                   9462: 
1.15      bertrand 9463: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9464:   as_dirname=dirname
                   9465: else
                   9466:   as_dirname=false
                   9467: fi
1.1       bertrand 9468: 
                   9469: as_me=`$as_basename -- "$0" ||
                   9470: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9471:     X"$0" : 'X\(//\)$' \| \
                   9472:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9473: $as_echo X/"$0" |
1.1       bertrand 9474:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9475:        s//\1/
                   9476:        q
                   9477:      }
                   9478:      /^X\/\(\/\/\)$/{
                   9479:        s//\1/
                   9480:        q
                   9481:      }
                   9482:      /^X\/\(\/\).*/{
                   9483:        s//\1/
                   9484:        q
                   9485:      }
1.14      bertrand 9486:      s/.*/./; q'`
                   9487: 
1.15      bertrand 9488: # Avoid depending upon Character Ranges.
                   9489: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9490: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9491: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9492: as_cr_digits='0123456789'
                   9493: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9494: 
                   9495: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9496: case `echo -n x` in #(((((
1.1       bertrand 9497: -n*)
1.15      bertrand 9498:   case `echo 'xy\c'` in
1.1       bertrand 9499:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9500:   xy)  ECHO_C='\c';;
                   9501:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9502:        ECHO_T='    ';;
1.1       bertrand 9503:   esac;;
                   9504: *)
                   9505:   ECHO_N='-n';;
                   9506: esac
                   9507: 
                   9508: rm -f conf$$ conf$$.exe conf$$.file
                   9509: if test -d conf$$.dir; then
                   9510:   rm -f conf$$.dir/conf$$.file
                   9511: else
                   9512:   rm -f conf$$.dir
1.15      bertrand 9513:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9514: fi
1.15      bertrand 9515: if (echo >conf$$.file) 2>/dev/null; then
                   9516:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9517:     as_ln_s='ln -s'
                   9518:     # ... but there are two gotchas:
                   9519:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9520:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9521:     # In both cases, we have to default to `cp -p'.
                   9522:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9523:       as_ln_s='cp -p'
                   9524:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9525:     as_ln_s=ln
                   9526:   else
1.1       bertrand 9527:     as_ln_s='cp -p'
1.15      bertrand 9528:   fi
1.1       bertrand 9529: else
                   9530:   as_ln_s='cp -p'
                   9531: fi
                   9532: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9533: rmdir conf$$.dir 2>/dev/null
                   9534: 
1.15      bertrand 9535: 
                   9536: # as_fn_mkdir_p
                   9537: # -------------
                   9538: # Create "$as_dir" as a directory, including parents if necessary.
                   9539: as_fn_mkdir_p ()
                   9540: {
                   9541: 
                   9542:   case $as_dir in #(
                   9543:   -*) as_dir=./$as_dir;;
                   9544:   esac
                   9545:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9546:     as_dirs=
                   9547:     while :; do
                   9548:       case $as_dir in #(
                   9549:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9550:       *) as_qdir=$as_dir;;
                   9551:       esac
                   9552:       as_dirs="'$as_qdir' $as_dirs"
                   9553:       as_dir=`$as_dirname -- "$as_dir" ||
                   9554: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9555:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9556:     X"$as_dir" : 'X\(//\)$' \| \
                   9557:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9558: $as_echo X"$as_dir" |
                   9559:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9560:        s//\1/
                   9561:        q
                   9562:      }
                   9563:      /^X\(\/\/\)[^/].*/{
                   9564:        s//\1/
                   9565:        q
                   9566:      }
                   9567:      /^X\(\/\/\)$/{
                   9568:        s//\1/
                   9569:        q
                   9570:      }
                   9571:      /^X\(\/\).*/{
                   9572:        s//\1/
                   9573:        q
                   9574:      }
                   9575:      s/.*/./; q'`
                   9576:       test -d "$as_dir" && break
                   9577:     done
                   9578:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   9579:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
                   9580: 
                   9581: 
                   9582: } # as_fn_mkdir_p
1.1       bertrand 9583: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9584:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9585: else
                   9586:   test -d ./-p && rmdir ./-p
                   9587:   as_mkdir_p=false
                   9588: fi
                   9589: 
                   9590: if test -x / >/dev/null 2>&1; then
                   9591:   as_test_x='test -x'
                   9592: else
                   9593:   if ls -dL / >/dev/null 2>&1; then
                   9594:     as_ls_L_option=L
                   9595:   else
                   9596:     as_ls_L_option=
                   9597:   fi
                   9598:   as_test_x='
                   9599:     eval sh -c '\''
                   9600:       if test -d "$1"; then
1.15      bertrand 9601:    test -d "$1/.";
1.1       bertrand 9602:       else
1.15      bertrand 9603:    case $1 in #(
                   9604:    -*)set "./$1";;
1.1       bertrand 9605:    esac;
1.15      bertrand 9606:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9607:    ???[sx]*):;;*)false;;esac;fi
                   9608:     '\'' sh
                   9609:   '
                   9610: fi
                   9611: as_executable_p=$as_test_x
                   9612: 
                   9613: # Sed expression to map a string onto a valid CPP name.
                   9614: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9615: 
                   9616: # Sed expression to map a string onto a valid variable name.
                   9617: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9618: 
                   9619: 
                   9620: exec 6>&1
1.15      bertrand 9621: ## ----------------------------------- ##
                   9622: ## Main body of $CONFIG_STATUS script. ##
                   9623: ## ----------------------------------- ##
                   9624: _ASEOF
                   9625: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9626: 
1.15      bertrand 9627: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9628: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9629: # report actual input values of CONFIG_FILES etc. instead of their
                   9630: # values after options handling.
                   9631: ac_log="
1.29      bertrand 9632: This file was extended by rpl $as_me 4.0.18, which was
1.15      bertrand 9633: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 9634: 
                   9635:   CONFIG_FILES    = $CONFIG_FILES
                   9636:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9637:   CONFIG_LINKS    = $CONFIG_LINKS
                   9638:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9639:   $ $0 $@
                   9640: 
                   9641: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9642: "
                   9643: 
                   9644: _ACEOF
                   9645: 
1.15      bertrand 9646: case $ac_config_files in *"
                   9647: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9648: esac
                   9649: 
                   9650: case $ac_config_headers in *"
                   9651: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9652: esac
                   9653: 
                   9654: 
                   9655: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9656: # Files that config.status was made for.
                   9657: config_files="$ac_config_files"
                   9658: config_headers="$ac_config_headers"
                   9659: config_commands="$ac_config_commands"
                   9660: 
                   9661: _ACEOF
                   9662: 
1.15      bertrand 9663: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9664: ac_cs_usage="\
1.15      bertrand 9665: \`$as_me' instantiates files and other configuration actions
                   9666: from templates according to the current configuration.  Unless the files
                   9667: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9668: 
1.15      bertrand 9669: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9670: 
                   9671:   -h, --help       print this help, then exit
                   9672:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9673:       --config     print configuration, then exit
                   9674:   -q, --quiet, --silent
                   9675:                    do not print progress messages
1.1       bertrand 9676:   -d, --debug      don't remove temporary files
                   9677:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9678:       --file=FILE[:TEMPLATE]
                   9679:                    instantiate the configuration file FILE
                   9680:       --header=FILE[:TEMPLATE]
                   9681:                    instantiate the configuration header FILE
1.1       bertrand 9682: 
                   9683: Configuration files:
                   9684: $config_files
                   9685: 
                   9686: Configuration headers:
                   9687: $config_headers
                   9688: 
                   9689: Configuration commands:
                   9690: $config_commands
                   9691: 
1.15      bertrand 9692: Report bugs to the package provider."
1.1       bertrand 9693: 
                   9694: _ACEOF
1.15      bertrand 9695: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9696: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 9697: ac_cs_version="\\
1.29      bertrand 9698: rpl config.status 4.0.18
1.15      bertrand 9699: configured by $0, generated by GNU Autoconf 2.65,
                   9700:   with options \\"\$ac_cs_config\\"
1.1       bertrand 9701: 
1.15      bertrand 9702: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 9703: This config.status script is free software; the Free Software Foundation
                   9704: gives unlimited permission to copy, distribute and modify it."
                   9705: 
                   9706: ac_pwd='$ac_pwd'
                   9707: srcdir='$srcdir'
                   9708: INSTALL='$INSTALL'
                   9709: MKDIR_P='$MKDIR_P'
1.15      bertrand 9710: AWK='$AWK'
                   9711: test -n "\$AWK" || AWK=awk
1.1       bertrand 9712: _ACEOF
                   9713: 
1.15      bertrand 9714: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9715: # The default lists apply if the user does not specify any file.
1.1       bertrand 9716: ac_need_defaults=:
                   9717: while test $# != 0
                   9718: do
                   9719:   case $1 in
                   9720:   --*=*)
                   9721:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9722:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9723:     ac_shift=:
                   9724:     ;;
                   9725:   *)
                   9726:     ac_option=$1
                   9727:     ac_optarg=$2
                   9728:     ac_shift=shift
                   9729:     ;;
                   9730:   esac
                   9731: 
                   9732:   case $ac_option in
                   9733:   # Handling of the options.
                   9734:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9735:     ac_cs_recheck=: ;;
                   9736:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 9737:     $as_echo "$ac_cs_version"; exit ;;
                   9738:   --config | --confi | --conf | --con | --co | --c )
                   9739:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 9740:   --debug | --debu | --deb | --de | --d | -d )
                   9741:     debug=: ;;
                   9742:   --file | --fil | --fi | --f )
                   9743:     $ac_shift
1.15      bertrand 9744:     case $ac_optarg in
                   9745:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9746:     esac
                   9747:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 9748:     ac_need_defaults=false;;
                   9749:   --header | --heade | --head | --hea )
                   9750:     $ac_shift
1.15      bertrand 9751:     case $ac_optarg in
                   9752:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9753:     esac
                   9754:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 9755:     ac_need_defaults=false;;
                   9756:   --he | --h)
                   9757:     # Conflict between --help and --header
1.15      bertrand 9758:     as_fn_error "ambiguous option: \`$1'
                   9759: Try \`$0 --help' for more information.";;
1.1       bertrand 9760:   --help | --hel | -h )
1.15      bertrand 9761:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 9762:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9763:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9764:     ac_cs_silent=: ;;
                   9765: 
                   9766:   # This is an error.
1.15      bertrand 9767:   -*) as_fn_error "unrecognized option: \`$1'
                   9768: Try \`$0 --help' for more information." ;;
1.1       bertrand 9769: 
1.15      bertrand 9770:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 9771:      ac_need_defaults=false ;;
                   9772: 
                   9773:   esac
                   9774:   shift
                   9775: done
                   9776: 
                   9777: ac_configure_extra_args=
                   9778: 
                   9779: if $ac_cs_silent; then
                   9780:   exec 6>/dev/null
                   9781:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9782: fi
                   9783: 
                   9784: _ACEOF
1.15      bertrand 9785: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9786: if \$ac_cs_recheck; then
1.15      bertrand 9787:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   9788:   shift
                   9789:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   9790:   CONFIG_SHELL='$SHELL'
1.1       bertrand 9791:   export CONFIG_SHELL
1.15      bertrand 9792:   exec "\$@"
1.1       bertrand 9793: fi
                   9794: 
                   9795: _ACEOF
1.15      bertrand 9796: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9797: exec 5>>config.log
                   9798: {
                   9799:   echo
                   9800:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9801: ## Running $as_me. ##
                   9802: _ASBOX
1.15      bertrand 9803:   $as_echo "$ac_log"
1.1       bertrand 9804: } >&5
                   9805: 
                   9806: _ACEOF
1.15      bertrand 9807: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9808: #
                   9809: # INIT-COMMANDS
                   9810: #
                   9811: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   9812: 
                   9813: _ACEOF
                   9814: 
1.15      bertrand 9815: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9816: 
                   9817: # Handling of arguments.
                   9818: for ac_config_target in $ac_config_targets
                   9819: do
                   9820:   case $ac_config_target in
                   9821:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   9822:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   9823:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   9824:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   9825:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   9826:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   9827:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   9828:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   9829:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   9830:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   9831:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   9832:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   9833:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   9834:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   9835:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 9836:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.1       bertrand 9837:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   9838:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20      bertrand 9839:     "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1       bertrand 9840:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   9841:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   9842:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   9843:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   9844:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   9845:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   9846:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   9847:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   9848:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   9849:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   9850: 
1.15      bertrand 9851:   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 9852:   esac
                   9853: done
                   9854: 
                   9855: 
                   9856: # If the user did not use the arguments to specify the items to instantiate,
                   9857: # then the envvar interface is used.  Set only those that are not.
                   9858: # We use the long form for the default assignment because of an extremely
                   9859: # bizarre bug on SunOS 4.1.3.
                   9860: if $ac_need_defaults; then
                   9861:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   9862:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   9863:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   9864: fi
                   9865: 
                   9866: # Have a temporary directory for convenience.  Make it in the build tree
                   9867: # simply because there is no reason against having it here, and in addition,
                   9868: # creating and moving files from /tmp can sometimes cause problems.
                   9869: # Hook for its removal unless debugging.
                   9870: # Note that there is a small window in which the directory will not be cleaned:
                   9871: # after its creation but before its name has been assigned to `$tmp'.
                   9872: $debug ||
                   9873: {
                   9874:   tmp=
                   9875:   trap 'exit_status=$?
                   9876:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   9877: ' 0
1.15      bertrand 9878:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 9879: }
                   9880: # Create a (secure) tmp directory for tmp files.
                   9881: 
                   9882: {
                   9883:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   9884:   test -n "$tmp" && test -d "$tmp"
                   9885: }  ||
                   9886: {
                   9887:   tmp=./conf$$-$RANDOM
                   9888:   (umask 077 && mkdir "$tmp")
1.15      bertrand 9889: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
                   9890: 
                   9891: # Set up the scripts for CONFIG_FILES section.
                   9892: # No need to generate them if there are no CONFIG_FILES.
                   9893: # This happens for instance with `./config.status config.h'.
                   9894: if test -n "$CONFIG_FILES"; then
1.14      bertrand 9895: 
1.1       bertrand 9896: 
1.15      bertrand 9897: ac_cr=`echo X | tr X '\015'`
                   9898: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   9899: # But we know of no other shell where ac_cr would be empty at this
                   9900: # point, so we can use a bashism as a fallback.
                   9901: if test "x$ac_cr" = x; then
                   9902:   eval ac_cr=\$\'\\r\'
                   9903: fi
                   9904: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   9905: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   9906:   ac_cs_awk_cr='\r'
                   9907: else
                   9908:   ac_cs_awk_cr=$ac_cr
                   9909: fi
1.1       bertrand 9910: 
1.15      bertrand 9911: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 9912: _ACEOF
                   9913: 
                   9914: 
1.15      bertrand 9915: {
                   9916:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   9917:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   9918:   echo "_ACEOF"
                   9919: } >conf$$subs.sh ||
                   9920:   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
                   9921: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.14      bertrand 9922: ac_delim='%!_!# '
                   9923: for ac_last_try in false false false false false :; do
1.15      bertrand 9924:   . ./conf$$subs.sh ||
                   9925:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9926: 
1.15      bertrand 9927:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   9928:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 9929:     break
                   9930:   elif $ac_last_try; then
1.15      bertrand 9931:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 9932:   else
                   9933:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   9934:   fi
                   9935: done
1.15      bertrand 9936: rm -f conf$$subs.sh
1.1       bertrand 9937: 
1.15      bertrand 9938: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9939: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   9940: _ACEOF
                   9941: sed -n '
                   9942: h
                   9943: s/^/S["/; s/!.*/"]=/
                   9944: p
                   9945: g
                   9946: s/^[^!]*!//
                   9947: :repl
                   9948: t repl
                   9949: s/'"$ac_delim"'$//
                   9950: t delim
                   9951: :nl
                   9952: h
                   9953: s/\(.\{148\}\)..*/\1/
                   9954: t more1
                   9955: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   9956: p
                   9957: n
                   9958: b repl
                   9959: :more1
                   9960: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9961: p
                   9962: g
                   9963: s/.\{148\}//
                   9964: t nl
                   9965: :delim
                   9966: h
                   9967: s/\(.\{148\}\)..*/\1/
                   9968: t more2
                   9969: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   9970: p
                   9971: b
                   9972: :more2
                   9973: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9974: p
                   9975: g
                   9976: s/.\{148\}//
                   9977: t delim
                   9978: ' <conf$$subs.awk | sed '
                   9979: /^[^""]/{
                   9980:   N
                   9981:   s/\n//
                   9982: }
                   9983: ' >>$CONFIG_STATUS || ac_write_fail=1
                   9984: rm -f conf$$subs.awk
                   9985: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9986: _ACAWK
                   9987: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   9988:   for (key in S) S_is_set[key] = 1
                   9989:   FS = ""
1.1       bertrand 9990: 
1.15      bertrand 9991: }
                   9992: {
                   9993:   line = $ 0
                   9994:   nfields = split(line, field, "@")
                   9995:   substed = 0
                   9996:   len = length(field[1])
                   9997:   for (i = 2; i < nfields; i++) {
                   9998:     key = field[i]
                   9999:     keylen = length(key)
                   10000:     if (S_is_set[key]) {
                   10001:       value = S[key]
                   10002:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10003:       len += length(value) + length(field[++i])
                   10004:       substed = 1
                   10005:     } else
                   10006:       len += 1 + keylen
                   10007:   }
1.1       bertrand 10008: 
1.15      bertrand 10009:   print line
                   10010: }
1.1       bertrand 10011: 
1.15      bertrand 10012: _ACAWK
1.14      bertrand 10013: _ACEOF
1.15      bertrand 10014: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10015: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10016:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10017: else
                   10018:   cat
                   10019: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
                   10020:   || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10021: _ACEOF
                   10022: 
                   10023: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   10024: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   10025: # trailing colons and then remove the whole line if VPATH becomes empty
                   10026: # (actually we leave an empty line to preserve line numbers).
                   10027: if test "x$srcdir" = x.; then
                   10028:   ac_vpsub='/^[     ]*VPATH[    ]*=/{
                   10029: s/:*\$(srcdir):*/:/
                   10030: s/:*\${srcdir}:*/:/
                   10031: s/:*@srcdir@:*/:/
                   10032: s/^\([^=]*=[    ]*\):*/\1/
                   10033: s/:*$//
                   10034: s/^[^=]*=[  ]*$//
                   10035: }'
                   10036: fi
                   10037: 
1.15      bertrand 10038: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10039: fi # test -n "$CONFIG_FILES"
                   10040: 
1.15      bertrand 10041: # Set up the scripts for CONFIG_HEADERS section.
                   10042: # No need to generate them if there are no CONFIG_HEADERS.
                   10043: # This happens for instance with `./config.status Makefile'.
                   10044: if test -n "$CONFIG_HEADERS"; then
                   10045: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   10046: BEGIN {
                   10047: _ACEOF
                   10048: 
                   10049: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10050: # here-document in config.status, that substitutes the proper values into
                   10051: # config.h.in to produce config.h.
                   10052: 
                   10053: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10054: # handling of long lines.
                   10055: ac_delim='%!_!# '
                   10056: for ac_last_try in false false :; do
                   10057:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10058:   if test -z "$ac_t"; then
                   10059:     break
                   10060:   elif $ac_last_try; then
                   10061:     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
                   10062:   else
                   10063:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10064:   fi
                   10065: done
                   10066: 
                   10067: # For the awk script, D is an array of macro values keyed by name,
                   10068: # likewise P contains macro parameters if any.  Preserve backslash
                   10069: # newline sequences.
                   10070: 
                   10071: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10072: sed -n '
                   10073: s/.\{148\}/&'"$ac_delim"'/g
                   10074: t rset
                   10075: :rset
                   10076: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10077: t def
                   10078: d
                   10079: :def
                   10080: s/\\$//
                   10081: t bsnl
                   10082: s/["\\]/\\&/g
                   10083: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10084: D["\1"]=" \3"/p
                   10085: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10086: d
                   10087: :bsnl
                   10088: s/["\\]/\\&/g
                   10089: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10090: D["\1"]=" \3\\\\\\n"\\/p
                   10091: t cont
                   10092: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10093: t cont
                   10094: d
                   10095: :cont
                   10096: n
                   10097: s/.\{148\}/&'"$ac_delim"'/g
                   10098: t clear
                   10099: :clear
                   10100: s/\\$//
                   10101: t bsnlc
                   10102: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10103: d
                   10104: :bsnlc
                   10105: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10106: b cont
                   10107: ' <confdefs.h | sed '
                   10108: s/'"$ac_delim"'/"\\\
                   10109: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10110: 
                   10111: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10112:   for (key in D) D_is_set[key] = 1
                   10113:   FS = ""
                   10114: }
                   10115: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10116:   line = \$ 0
                   10117:   split(line, arg, " ")
                   10118:   if (arg[1] == "#") {
                   10119:     defundef = arg[2]
                   10120:     mac1 = arg[3]
                   10121:   } else {
                   10122:     defundef = substr(arg[1], 2)
                   10123:     mac1 = arg[2]
                   10124:   }
                   10125:   split(mac1, mac2, "(") #)
                   10126:   macro = mac2[1]
                   10127:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10128:   if (D_is_set[macro]) {
                   10129:     # Preserve the white space surrounding the "#".
                   10130:     print prefix "define", macro P[macro] D[macro]
                   10131:     next
                   10132:   } else {
                   10133:     # Replace #undef with comments.  This is necessary, for example,
                   10134:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10135:     # on some systems where configure will not decide to define it.
                   10136:     if (defundef == "undef") {
                   10137:       print "/*", prefix defundef, macro, "*/"
                   10138:       next
                   10139:     }
                   10140:   }
                   10141: }
                   10142: { print }
                   10143: _ACAWK
                   10144: _ACEOF
                   10145: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10146:   as_fn_error "could not setup config headers machinery" "$LINENO" 5
                   10147: fi # test -n "$CONFIG_HEADERS"
                   10148: 
1.1       bertrand 10149: 
1.15      bertrand 10150: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10151: shift
                   10152: for ac_tag
1.1       bertrand 10153: do
                   10154:   case $ac_tag in
                   10155:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10156:   esac
                   10157:   case $ac_mode$ac_tag in
                   10158:   :[FHL]*:*);;
1.15      bertrand 10159:   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10160:   :[FH]-) ac_tag=-:-;;
                   10161:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10162:   esac
                   10163:   ac_save_IFS=$IFS
                   10164:   IFS=:
                   10165:   set x $ac_tag
                   10166:   IFS=$ac_save_IFS
                   10167:   shift
                   10168:   ac_file=$1
                   10169:   shift
                   10170: 
                   10171:   case $ac_mode in
                   10172:   :L) ac_source=$1;;
                   10173:   :[FH])
                   10174:     ac_file_inputs=
                   10175:     for ac_f
                   10176:     do
                   10177:       case $ac_f in
                   10178:       -) ac_f="$tmp/stdin";;
                   10179:       *) # Look for the file first in the build tree, then in the source tree
                   10180:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10181:     # because $ac_f cannot contain `:'.
                   10182:     test -f "$ac_f" ||
                   10183:       case $ac_f in
                   10184:       [\\/$]*) false;;
                   10185:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10186:       esac ||
1.15      bertrand 10187:       as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10188:       esac
1.15      bertrand 10189:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10190:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10191:     done
                   10192: 
                   10193:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10194:     # use $as_me), people would be surprised to read:
                   10195:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10196:     configure_input='Generated from '`
                   10197:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10198:    `' by configure.'
1.1       bertrand 10199:     if test x"$ac_file" != x-; then
                   10200:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10201:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10202: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10203:     fi
1.15      bertrand 10204:     # Neutralize special characters interpreted by sed in replacement strings.
                   10205:     case $configure_input in #(
                   10206:     *\&* | *\|* | *\\* )
                   10207:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10208:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10209:     *) ac_sed_conf_input=$configure_input;;
                   10210:     esac
1.1       bertrand 10211: 
                   10212:     case $ac_tag in
1.15      bertrand 10213:     *:-:* | *:-) cat >"$tmp/stdin" \
                   10214:       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10215:     esac
                   10216:     ;;
                   10217:   esac
                   10218: 
                   10219:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10220: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10221:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10222:     X"$ac_file" : 'X\(//\)$' \| \
                   10223:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10224: $as_echo X"$ac_file" |
1.1       bertrand 10225:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10226:        s//\1/
                   10227:        q
                   10228:      }
                   10229:      /^X\(\/\/\)[^/].*/{
                   10230:        s//\1/
                   10231:        q
                   10232:      }
                   10233:      /^X\(\/\/\)$/{
                   10234:        s//\1/
                   10235:        q
                   10236:      }
                   10237:      /^X\(\/\).*/{
                   10238:        s//\1/
                   10239:        q
                   10240:      }
                   10241:      s/.*/./; q'`
1.15      bertrand 10242:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10243:   ac_builddir=.
                   10244: 
                   10245: case "$ac_dir" in
                   10246: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10247: *)
1.15      bertrand 10248:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10249:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10250:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10251:   case $ac_top_builddir_sub in
                   10252:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10253:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10254:   esac ;;
                   10255: esac
                   10256: ac_abs_top_builddir=$ac_pwd
                   10257: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10258: # for backward compatibility:
                   10259: ac_top_builddir=$ac_top_build_prefix
                   10260: 
                   10261: case $srcdir in
                   10262:   .)  # We are building in place.
                   10263:     ac_srcdir=.
                   10264:     ac_top_srcdir=$ac_top_builddir_sub
                   10265:     ac_abs_top_srcdir=$ac_pwd ;;
                   10266:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10267:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10268:     ac_top_srcdir=$srcdir
                   10269:     ac_abs_top_srcdir=$srcdir ;;
                   10270:   *) # Relative name.
                   10271:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10272:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10273:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10274: esac
                   10275: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10276: 
                   10277: 
                   10278:   case $ac_mode in
                   10279:   :F)
                   10280:   #
                   10281:   # CONFIG_FILE
                   10282:   #
                   10283: 
                   10284:   case $INSTALL in
                   10285:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10286:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10287:   esac
                   10288:   ac_MKDIR_P=$MKDIR_P
                   10289:   case $MKDIR_P in
                   10290:   [\\/$]* | ?:[\\/]* ) ;;
                   10291:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10292:   esac
                   10293: _ACEOF
                   10294: 
1.15      bertrand 10295: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10296: # If the template does not know about datarootdir, expand it.
                   10297: # FIXME: This hack should be removed a few years after 2.60.
                   10298: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10299: ac_sed_dataroot='
                   10300: /datarootdir/ {
1.1       bertrand 10301:   p
                   10302:   q
                   10303: }
                   10304: /@datadir@/p
                   10305: /@docdir@/p
                   10306: /@infodir@/p
                   10307: /@localedir@/p
1.15      bertrand 10308: /@mandir@/p'
                   10309: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10310: *datarootdir*) ac_datarootdir_seen=yes;;
                   10311: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10312:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10313: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10314: _ACEOF
1.15      bertrand 10315: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10316:   ac_datarootdir_hack='
                   10317:   s&@datadir@&$datadir&g
                   10318:   s&@docdir@&$docdir&g
                   10319:   s&@infodir@&$infodir&g
                   10320:   s&@localedir@&$localedir&g
                   10321:   s&@mandir@&$mandir&g
1.15      bertrand 10322:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10323: esac
                   10324: _ACEOF
                   10325: 
                   10326: # Neutralize VPATH when `$srcdir' = `.'.
                   10327: # Shell code in configure.ac might set extrasub.
                   10328: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10329: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10330: ac_sed_extra="$ac_vpsub
1.1       bertrand 10331: $extrasub
                   10332: _ACEOF
1.15      bertrand 10333: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10334: :t
                   10335: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10336: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10337: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10338: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10339: s&@srcdir@&$ac_srcdir&;t t
                   10340: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10341: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10342: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10343: s&@builddir@&$ac_builddir&;t t
                   10344: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10345: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10346: s&@INSTALL@&$ac_INSTALL&;t t
                   10347: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10348: $ac_datarootdir_hack
1.15      bertrand 10349: "
                   10350: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
                   10351:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10352: 
                   10353: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10354:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10355:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10356:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10357: which seems to be undefined.  Please make sure it is defined." >&5
1.15      bertrand 10358: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10359: which seems to be undefined.  Please make sure it is defined." >&2;}
                   10360: 
                   10361:   rm -f "$tmp/stdin"
                   10362:   case $ac_file in
1.15      bertrand 10363:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10364:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10365:   esac \
                   10366:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10367:  ;;
                   10368:   :H)
                   10369:   #
                   10370:   # CONFIG_HEADER
                   10371:   #
                   10372:   if test x"$ac_file" != x-; then
1.15      bertrand 10373:     {
                   10374:       $as_echo "/* $configure_input  */" \
                   10375:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10376:     } >"$tmp/config.h" \
                   10377:       || as_fn_error "could not create $ac_file" "$LINENO" 5
                   10378:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10379:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10380: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10381:     else
1.15      bertrand 10382:       rm -f "$ac_file"
                   10383:       mv "$tmp/config.h" "$ac_file" \
                   10384:    || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10385:     fi
                   10386:   else
1.15      bertrand 10387:     $as_echo "/* $configure_input  */" \
                   10388:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
                   10389:       || as_fn_error "could not create -" "$LINENO" 5
1.1       bertrand 10390:   fi
1.15      bertrand 10391: # Compute "$ac_file"'s index in $config_headers.
                   10392: _am_arg="$ac_file"
1.1       bertrand 10393: _am_stamp_count=1
                   10394: for _am_header in $config_headers :; do
                   10395:   case $_am_header in
                   10396:     $_am_arg | $_am_arg:* )
                   10397:       break ;;
                   10398:     * )
                   10399:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10400:   esac
                   10401: done
                   10402: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10403: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10404:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10405:     X"$_am_arg" : 'X\(//\)$' \| \
                   10406:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10407: $as_echo X"$_am_arg" |
1.1       bertrand 10408:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10409:        s//\1/
                   10410:        q
                   10411:      }
                   10412:      /^X\(\/\/\)[^/].*/{
                   10413:        s//\1/
                   10414:        q
                   10415:      }
                   10416:      /^X\(\/\/\)$/{
                   10417:        s//\1/
                   10418:        q
                   10419:      }
                   10420:      /^X\(\/\).*/{
                   10421:        s//\1/
                   10422:        q
                   10423:      }
                   10424:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10425:  ;;
                   10426: 
1.15      bertrand 10427:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10428: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10429:  ;;
                   10430:   esac
                   10431: 
                   10432: 
                   10433:   case $ac_file$ac_mode in
1.15      bertrand 10434:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10435:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10436:   # are listed without --file.  Let's play safe and only enable the eval
                   10437:   # if we detect the quoting.
                   10438:   case $CONFIG_FILES in
                   10439:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10440:   *)   set x $CONFIG_FILES ;;
                   10441:   esac
                   10442:   shift
                   10443:   for mf
                   10444:   do
                   10445:     # Strip MF so we end up with the name of the file.
                   10446:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10447:     # Check whether this is an Automake generated Makefile or not.
                   10448:     # We used to match only the files named `Makefile.in', but
                   10449:     # some people rename them; so instead we look at the file content.
                   10450:     # Grep'ing the first line is not enough: some people post-process
                   10451:     # each Makefile.in and add a new line on top of each file to say so.
                   10452:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10453:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10454:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10455:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10456: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10457:     X"$mf" : 'X\(//\)[^/]' \| \
                   10458:     X"$mf" : 'X\(//\)$' \| \
                   10459:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10460: $as_echo X"$mf" |
1.1       bertrand 10461:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10462:        s//\1/
                   10463:        q
                   10464:      }
                   10465:      /^X\(\/\/\)[^/].*/{
                   10466:        s//\1/
                   10467:        q
                   10468:      }
                   10469:      /^X\(\/\/\)$/{
                   10470:        s//\1/
                   10471:        q
                   10472:      }
                   10473:      /^X\(\/\).*/{
                   10474:        s//\1/
                   10475:        q
                   10476:      }
                   10477:      s/.*/./; q'`
1.15      bertrand 10478:     else
                   10479:       continue
                   10480:     fi
                   10481:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10482:     # from the Makefile without running `make'.
                   10483:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10484:     test -z "$DEPDIR" && continue
                   10485:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10486:     test -z "am__include" && continue
                   10487:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10488:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10489:     U=`sed -n 's/^U = //p' < "$mf"`
                   10490:     # Find all dependency output files, they are included files with
                   10491:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10492:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10493:     # expansion.
                   10494:     for file in `sed -n "
                   10495:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10496:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10497:       # Make sure the directory exists.
                   10498:       test -f "$dirpart/$file" && continue
                   10499:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10500: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10501:     X"$file" : 'X\(//\)[^/]' \| \
                   10502:     X"$file" : 'X\(//\)$' \| \
                   10503:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10504: $as_echo X"$file" |
1.1       bertrand 10505:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10506:        s//\1/
                   10507:        q
                   10508:      }
                   10509:      /^X\(\/\/\)[^/].*/{
                   10510:        s//\1/
                   10511:        q
                   10512:      }
                   10513:      /^X\(\/\/\)$/{
                   10514:        s//\1/
                   10515:        q
                   10516:      }
                   10517:      /^X\(\/\).*/{
                   10518:        s//\1/
                   10519:        q
                   10520:      }
                   10521:      s/.*/./; q'`
1.15      bertrand 10522:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10523:       # echo "creating $dirpart/$file"
                   10524:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10525:     done
                   10526:   done
1.15      bertrand 10527: }
1.1       bertrand 10528:  ;;
                   10529: 
                   10530:   esac
                   10531: done # for ac_tag
                   10532: 
                   10533: 
1.15      bertrand 10534: as_fn_exit 0
1.1       bertrand 10535: _ACEOF
                   10536: ac_clean_files=$ac_clean_files_save
                   10537: 
1.15      bertrand 10538: test $ac_write_fail = 0 ||
                   10539:   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   10540: 
1.1       bertrand 10541: 
                   10542: # configure is writing to config.log, and then calls config.status.
                   10543: # config.status does its own redirection, appending to config.log.
                   10544: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10545: # by configure, so config.status won't be able to write to it; its
                   10546: # output is simply discarded.  So we exec the FD to /dev/null,
                   10547: # effectively closing config.log, so it can be properly (re)opened and
                   10548: # appended to by config.status.  When coming back to configure, we
                   10549: # need to make the FD available again.
                   10550: if test "$no_create" != yes; then
                   10551:   ac_cs_success=:
                   10552:   ac_config_status_args=
                   10553:   test "$silent" = yes &&
                   10554:     ac_config_status_args="$ac_config_status_args --quiet"
                   10555:   exec 5>/dev/null
                   10556:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10557:   exec 5>>config.log
                   10558:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10559:   # would make configure fail if this is the last instruction.
1.15      bertrand 10560:   $ac_cs_success || as_fn_exit $?
1.1       bertrand 10561: fi
                   10562: 
                   10563: #
                   10564: # CONFIG_SUBDIRS section.
                   10565: #
                   10566: if test "$no_recursion" != yes; then
                   10567: 
1.15      bertrand 10568:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10569:   # so they do not pile up.
1.1       bertrand 10570:   ac_sub_configure_args=
                   10571:   ac_prev=
                   10572:   eval "set x $ac_configure_args"
                   10573:   shift
                   10574:   for ac_arg
                   10575:   do
                   10576:     if test -n "$ac_prev"; then
                   10577:       ac_prev=
                   10578:       continue
                   10579:     fi
                   10580:     case $ac_arg in
                   10581:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10582:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10583:       ac_prev=cache_file ;;
                   10584:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10585:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10586:     | --c=*)
                   10587:       ;;
                   10588:     --config-cache | -C)
                   10589:       ;;
                   10590:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10591:       ac_prev=srcdir ;;
                   10592:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10593:       ;;
                   10594:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10595:       ac_prev=prefix ;;
                   10596:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10597:       ;;
1.15      bertrand 10598:     --disable-option-checking)
                   10599:       ;;
1.1       bertrand 10600:     *)
                   10601:       case $ac_arg in
1.15      bertrand 10602:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10603:       esac
1.15      bertrand 10604:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10605:     esac
                   10606:   done
                   10607: 
                   10608:   # Always prepend --prefix to ensure using the same prefix
                   10609:   # in subdir configurations.
                   10610:   ac_arg="--prefix=$prefix"
                   10611:   case $ac_arg in
1.15      bertrand 10612:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10613:   esac
                   10614:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10615: 
                   10616:   # Pass --silent
                   10617:   if test "$silent" = yes; then
                   10618:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10619:   fi
                   10620: 
1.15      bertrand 10621:   # Always prepend --disable-option-checking to silence warnings, since
                   10622:   # different subdirs can have different --enable and --with options.
                   10623:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10624: 
1.1       bertrand 10625:   ac_popdir=`pwd`
                   10626:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10627: 
                   10628:     # Do not complain, so a configure script can configure whichever
                   10629:     # parts of a large source tree are present.
                   10630:     test -d "$srcdir/$ac_dir" || continue
                   10631: 
                   10632:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10633:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10634:     $as_echo "$ac_msg" >&6
                   10635:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10636:     ac_builddir=.
                   10637: 
                   10638: case "$ac_dir" in
                   10639: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10640: *)
1.15      bertrand 10641:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10642:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10643:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10644:   case $ac_top_builddir_sub in
                   10645:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10646:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10647:   esac ;;
                   10648: esac
                   10649: ac_abs_top_builddir=$ac_pwd
                   10650: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10651: # for backward compatibility:
                   10652: ac_top_builddir=$ac_top_build_prefix
                   10653: 
                   10654: case $srcdir in
                   10655:   .)  # We are building in place.
                   10656:     ac_srcdir=.
                   10657:     ac_top_srcdir=$ac_top_builddir_sub
                   10658:     ac_abs_top_srcdir=$ac_pwd ;;
                   10659:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10660:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10661:     ac_top_srcdir=$srcdir
                   10662:     ac_abs_top_srcdir=$srcdir ;;
                   10663:   *) # Relative name.
                   10664:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10665:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10666:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10667: esac
                   10668: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10669: 
                   10670: 
                   10671:     cd "$ac_dir"
                   10672: 
                   10673:     # Check for guested configure; otherwise get Cygnus style configure.
                   10674:     if test -f "$ac_srcdir/configure.gnu"; then
                   10675:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10676:     elif test -f "$ac_srcdir/configure"; then
                   10677:       ac_sub_configure=$ac_srcdir/configure
                   10678:     elif test -f "$ac_srcdir/configure.in"; then
                   10679:       # This should be Cygnus configure.
                   10680:       ac_sub_configure=$ac_aux_dir/configure
                   10681:     else
1.15      bertrand 10682:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   10683: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 10684:       ac_sub_configure=
                   10685:     fi
                   10686: 
                   10687:     # The recursion is here.
                   10688:     if test -n "$ac_sub_configure"; then
                   10689:       # Make the cache file name correct relative to the subdirectory.
                   10690:       case $cache_file in
                   10691:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   10692:       *) # Relative name.
                   10693:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   10694:       esac
                   10695: 
1.15      bertrand 10696:       { $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
                   10697: $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 10698:       # The eval makes quoting arguments work.
                   10699:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   10700:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.15      bertrand 10701:    as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 10702:     fi
                   10703: 
                   10704:     cd "$ac_popdir"
                   10705:   done
                   10706: fi
1.15      bertrand 10707: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10708:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10709: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10710: fi
1.1       bertrand 10711: 

CVSweb interface <joel.bertrand@systella.fr>