Annotation of rpl/configure, revision 1.76

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.73      bertrand    3: # Generated by GNU Autoconf 2.68 for rpl 4.1.3.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    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.57      bertrand   92: as_myself=
1.15      bertrand   93: case $0 in #((
1.1       bertrand   94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
1.15      bertrand  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
1.1       bertrand  102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
1.15      bertrand  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
1.1       bertrand  114: fi
                    115: 
1.15      bertrand  116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
1.15      bertrand  129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
1.1       bertrand  133: 
                    134: # CDPATH.
1.15      bertrand  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  136: 
                    137: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  138:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    139:   emulate sh
                    140:   NULLCMD=:
                    141:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    142:   # is contrary to our usage.  Disable this feature.
                    143:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    144:   setopt NO_GLOB_SUBST
1.1       bertrand  145: else
1.15      bertrand  146:   case \`(set -o) 2>/dev/null\` in #(
                    147:   *posix*) :
                    148:     set -o posix ;; #(
                    149:   *) :
                    150:      ;;
                    151: esac
1.1       bertrand  152: fi
1.15      bertrand  153: "
                    154:   as_required="as_fn_return () { (exit \$1); }
                    155: as_fn_success () { as_fn_return 0; }
                    156: as_fn_failure () { as_fn_return 1; }
                    157: as_fn_ret_success () { return 0; }
                    158: as_fn_ret_failure () { return 1; }
1.1       bertrand  159: 
                    160: exitcode=0
1.15      bertrand  161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    166: 
                    167: else
                    168:   exitcode=1; echo positional parameters were not saved.
                    169: fi
                    170: test x\$exitcode = x0 || exit 1"
                    171:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    172:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    173:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    174:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    175: test \$(( 1 + 1 )) = 2 || exit 1"
                    176:   if (eval "$as_required") 2>/dev/null; then :
                    177:   as_have_required=yes
1.14      bertrand  178: else
1.15      bertrand  179:   as_have_required=no
1.14      bertrand  180: fi
1.15      bertrand  181:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  182: 
                    183: else
1.15      bertrand  184:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    185: as_found=false
1.1       bertrand  186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    187: do
                    188:   IFS=$as_save_IFS
                    189:   test -z "$as_dir" && as_dir=.
1.15      bertrand  190:   as_found=:
                    191:   case $as_dir in #(
1.1       bertrand  192:     /*)
                    193:       for as_base in sh bash ksh sh5; do
1.15      bertrand  194:         # Try only shells that exist, to save several forks.
                    195:         as_shell=$as_dir/$as_base
                    196:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    197:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    198:   CONFIG_SHELL=$as_shell as_have_required=yes
                    199:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    200:   break 2
                    201: fi
                    202: fi
1.1       bertrand  203:       done;;
                    204:        esac
1.15      bertrand  205:   as_found=false
1.1       bertrand  206: done
1.15      bertrand  207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    208:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    209:   CONFIG_SHELL=$SHELL as_have_required=yes
                    210: fi; }
1.1       bertrand  211: IFS=$as_save_IFS
                    212: 
                    213: 
1.15      bertrand  214:       if test "x$CONFIG_SHELL" != x; then :
                    215:   # We cannot yet assume a decent shell, so we have to provide a
                    216:    # neutralization value for shells without unset; and this also
                    217:    # works around shells that cannot unset nonexistent variables.
1.57      bertrand  218:    # Preserve -v and -x to the replacement shell.
1.15      bertrand  219:    BASH_ENV=/dev/null
                    220:    ENV=/dev/null
                    221:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    222:    export CONFIG_SHELL
1.57      bertrand  223:    case $- in # ((((
                    224:      *v*x* | *x*v* ) as_opts=-vx ;;
                    225:      *v* ) as_opts=-v ;;
                    226:      *x* ) as_opts=-x ;;
                    227:      * ) as_opts= ;;
                    228:    esac
                    229:    exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15      bertrand  230: fi
                    231: 
                    232:     if test x$as_have_required = xno; then :
                    233:   $as_echo "$0: This script requires a shell more modern than all"
                    234:   $as_echo "$0: the shells that I found on your system."
                    235:   if test x${ZSH_VERSION+set} = xset ; then
                    236:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    237:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    238:   else
                    239:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    240: $0: including any error possibly output before this
                    241: $0: message. Then install a modern shell, or manually run
                    242: $0: the script under such a shell if you do have one."
                    243:   fi
                    244:   exit 1
                    245: fi
1.1       bertrand  246: fi
                    247: fi
1.15      bertrand  248: SHELL=${CONFIG_SHELL-/bin/sh}
                    249: export SHELL
                    250: # Unset more variables known to interfere with behavior of common tools.
                    251: CLICOLOR_FORCE= GREP_OPTIONS=
                    252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  253: 
1.15      bertrand  254: ## --------------------- ##
                    255: ## M4sh Shell Functions. ##
                    256: ## --------------------- ##
                    257: # as_fn_unset VAR
                    258: # ---------------
                    259: # Portably unset VAR.
                    260: as_fn_unset ()
                    261: {
                    262:   { eval $1=; unset $1;}
                    263: }
                    264: as_unset=as_fn_unset
                    265: 
                    266: # as_fn_set_status STATUS
                    267: # -----------------------
                    268: # Set $? to STATUS, without forking.
                    269: as_fn_set_status ()
                    270: {
                    271:   return $1
                    272: } # as_fn_set_status
                    273: 
                    274: # as_fn_exit STATUS
                    275: # -----------------
                    276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    277: as_fn_exit ()
                    278: {
                    279:   set +e
                    280:   as_fn_set_status $1
                    281:   exit $1
                    282: } # as_fn_exit
                    283: 
                    284: # as_fn_mkdir_p
                    285: # -------------
                    286: # Create "$as_dir" as a directory, including parents if necessary.
                    287: as_fn_mkdir_p ()
                    288: {
1.14      bertrand  289: 
1.15      bertrand  290:   case $as_dir in #(
                    291:   -*) as_dir=./$as_dir;;
                    292:   esac
                    293:   test -d "$as_dir" || eval $as_mkdir_p || {
                    294:     as_dirs=
                    295:     while :; do
                    296:       case $as_dir in #(
                    297:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    298:       *) as_qdir=$as_dir;;
                    299:       esac
                    300:       as_dirs="'$as_qdir' $as_dirs"
                    301:       as_dir=`$as_dirname -- "$as_dir" ||
                    302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    303:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    304:     X"$as_dir" : 'X\(//\)$' \| \
                    305:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    306: $as_echo X"$as_dir" |
                    307:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\/\)[^/].*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      /^X\(\/\/\)$/{
                    316:        s//\1/
                    317:        q
                    318:      }
                    319:      /^X\(\/\).*/{
                    320:        s//\1/
                    321:        q
                    322:      }
                    323:      s/.*/./; q'`
                    324:       test -d "$as_dir" && break
                    325:     done
                    326:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  327:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  328: 
                    329: 
1.15      bertrand  330: } # as_fn_mkdir_p
                    331: # as_fn_append VAR VALUE
                    332: # ----------------------
                    333: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    334: # advantage of any shell optimizations that allow amortized linear growth over
                    335: # repeated appends, instead of the typical quadratic growth present in naive
                    336: # implementations.
                    337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    338:   eval 'as_fn_append ()
                    339:   {
                    340:     eval $1+=\$2
                    341:   }'
1.14      bertrand  342: else
1.15      bertrand  343:   as_fn_append ()
                    344:   {
                    345:     eval $1=\$$1\$2
                    346:   }
                    347: fi # as_fn_append
1.1       bertrand  348: 
1.15      bertrand  349: # as_fn_arith ARG...
                    350: # ------------------
                    351: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    353: # must be portable across $(()) and expr.
                    354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    355:   eval 'as_fn_arith ()
                    356:   {
                    357:     as_val=$(( $* ))
                    358:   }'
1.1       bertrand  359: else
1.15      bertrand  360:   as_fn_arith ()
                    361:   {
                    362:     as_val=`expr "$@" || test $? -eq 1`
                    363:   }
                    364: fi # as_fn_arith
1.14      bertrand  365: 
                    366: 
1.36      bertrand  367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    368: # ----------------------------------------
1.15      bertrand  369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  371: # script with STATUS, using 1 if that was 0.
1.15      bertrand  372: as_fn_error ()
                    373: {
1.36      bertrand  374:   as_status=$1; test $as_status -eq 0 && as_status=1
                    375:   if test "$4"; then
                    376:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    377:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  378:   fi
1.36      bertrand  379:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  380:   as_fn_exit $as_status
                    381: } # as_fn_error
1.14      bertrand  382: 
1.15      bertrand  383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    385:   as_expr=expr
1.1       bertrand  386: else
1.15      bertrand  387:   as_expr=false
1.14      bertrand  388: fi
                    389: 
1.15      bertrand  390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    391:   as_basename=basename
1.1       bertrand  392: else
1.15      bertrand  393:   as_basename=false
1.14      bertrand  394: fi
                    395: 
1.15      bertrand  396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    397:   as_dirname=dirname
1.1       bertrand  398: else
1.15      bertrand  399:   as_dirname=false
1.1       bertrand  400: fi
                    401: 
1.15      bertrand  402: as_me=`$as_basename -- "$0" ||
                    403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    404:     X"$0" : 'X\(//\)$' \| \
                    405:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    406: $as_echo X/"$0" |
                    407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      /^X\/\(\/\/\)$/{
                    412:        s//\1/
                    413:        q
                    414:      }
                    415:      /^X\/\(\/\).*/{
                    416:        s//\1/
                    417:        q
                    418:      }
                    419:      s/.*/./; q'`
1.1       bertrand  420: 
1.15      bertrand  421: # Avoid depending upon Character Ranges.
                    422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    425: as_cr_digits='0123456789'
                    426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  427: 
                    428: 
1.15      bertrand  429:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    430:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    431:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    432:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    433:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  434:   sed -n '
                    435:     p
                    436:     /[$]LINENO/=
                    437:   ' <$as_myself |
                    438:     sed '
                    439:       s/[$]LINENO.*/&-/
                    440:       t lineno
                    441:       b
                    442:       :lineno
                    443:       N
                    444:       :loop
                    445:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    446:       t loop
                    447:       s/-\n.*//
                    448:     ' >$as_me.lineno &&
                    449:   chmod +x "$as_me.lineno" ||
1.15      bertrand  450:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  451: 
                    452:   # Don't try to exec as it changes $[0], causing all sort of problems
                    453:   # (the dirname of $[0] is not the place where we might find the
                    454:   # original and so on.  Autoconf is especially sensitive to this).
                    455:   . "./$as_me.lineno"
                    456:   # Exit status is that of the last command.
                    457:   exit
                    458: }
                    459: 
1.15      bertrand  460: ECHO_C= ECHO_N= ECHO_T=
                    461: case `echo -n x` in #(((((
                    462: -n*)
                    463:   case `echo 'xy\c'` in
1.1       bertrand  464:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  465:   xy)  ECHO_C='\c';;
                    466:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    467:        ECHO_T='    ';;
1.1       bertrand  468:   esac;;
                    469: *)
                    470:   ECHO_N='-n';;
                    471: esac
                    472: 
                    473: rm -f conf$$ conf$$.exe conf$$.file
                    474: if test -d conf$$.dir; then
                    475:   rm -f conf$$.dir/conf$$.file
                    476: else
                    477:   rm -f conf$$.dir
1.15      bertrand  478:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  479: fi
1.15      bertrand  480: if (echo >conf$$.file) 2>/dev/null; then
                    481:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s='ln -s'
                    483:     # ... but there are two gotchas:
                    484:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    485:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    486:     # In both cases, we have to default to `cp -p'.
                    487:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    488:       as_ln_s='cp -p'
                    489:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    490:     as_ln_s=ln
                    491:   else
1.1       bertrand  492:     as_ln_s='cp -p'
1.15      bertrand  493:   fi
1.1       bertrand  494: else
                    495:   as_ln_s='cp -p'
                    496: fi
                    497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    498: rmdir conf$$.dir 2>/dev/null
                    499: 
                    500: if mkdir -p . 2>/dev/null; then
1.15      bertrand  501:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  502: else
                    503:   test -d ./-p && rmdir ./-p
                    504:   as_mkdir_p=false
                    505: fi
                    506: 
                    507: if test -x / >/dev/null 2>&1; then
                    508:   as_test_x='test -x'
                    509: else
                    510:   if ls -dL / >/dev/null 2>&1; then
                    511:     as_ls_L_option=L
                    512:   else
                    513:     as_ls_L_option=
                    514:   fi
                    515:   as_test_x='
                    516:     eval sh -c '\''
                    517:       if test -d "$1"; then
1.15      bertrand  518:    test -d "$1/.";
1.1       bertrand  519:       else
1.15      bertrand  520:    case $1 in #(
                    521:    -*)set "./$1";;
1.1       bertrand  522:    esac;
1.15      bertrand  523:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  524:    ???[sx]*):;;*)false;;esac;fi
                    525:     '\'' sh
                    526:   '
                    527: fi
                    528: as_executable_p=$as_test_x
                    529: 
                    530: # Sed expression to map a string onto a valid CPP name.
                    531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    532: 
                    533: # Sed expression to map a string onto a valid variable name.
                    534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    535: 
                    536: 
1.15      bertrand  537: test -n "$DJDIR" || exec 7<&0 </dev/null
                    538: exec 6>&1
1.1       bertrand  539: 
                    540: # Name of the host.
1.36      bertrand  541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  542: # so uname gets run too.
                    543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    544: 
                    545: #
                    546: # Initializations.
                    547: #
                    548: ac_default_prefix=/usr/local
                    549: ac_clean_files=
                    550: ac_config_libobj_dir=.
                    551: LIBOBJS=
                    552: cross_compiling=no
                    553: subdirs=
                    554: MFLAGS=
                    555: MAKEFLAGS=
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='rpl'
                    559: PACKAGE_TARNAME='rpl'
1.73      bertrand  560: PACKAGE_VERSION='4.1.3'
                    561: PACKAGE_STRING='rpl 4.1.3'
1.1       bertrand  562: PACKAGE_BUGREPORT=''
1.15      bertrand  563: PACKAGE_URL=''
1.1       bertrand  564: 
                    565: ac_default_prefix=/usr/local
                    566: # Factoring default headers for most tests.
                    567: ac_includes_default="\
                    568: #include <stdio.h>
                    569: #ifdef HAVE_SYS_TYPES_H
                    570: # include <sys/types.h>
                    571: #endif
                    572: #ifdef HAVE_SYS_STAT_H
                    573: # include <sys/stat.h>
                    574: #endif
                    575: #ifdef STDC_HEADERS
                    576: # include <stdlib.h>
                    577: # include <stddef.h>
                    578: #else
                    579: # ifdef HAVE_STDLIB_H
                    580: #  include <stdlib.h>
                    581: # endif
                    582: #endif
                    583: #ifdef HAVE_STRING_H
                    584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    585: #  include <memory.h>
                    586: # endif
                    587: # include <string.h>
                    588: #endif
                    589: #ifdef HAVE_STRINGS_H
                    590: # include <strings.h>
                    591: #endif
                    592: #ifdef HAVE_INTTYPES_H
                    593: # include <inttypes.h>
                    594: #endif
                    595: #ifdef HAVE_STDINT_H
                    596: # include <stdint.h>
                    597: #endif
                    598: #ifdef HAVE_UNISTD_H
                    599: # include <unistd.h>
                    600: #endif"
                    601: 
1.15      bertrand  602: enable_option_checking=no
                    603: ac_subst_vars='am__EXEEXT_FALSE
                    604: am__EXEEXT_TRUE
                    605: LTLIBOBJS
                    606: LIBOBJS
1.56      bertrand  607: GIAC
                    608: PARI
                    609: COCOA
                    610: NTL
1.55      bertrand  611: MPFR
                    612: GMP
1.49      bertrand  613: MALLOC
1.30      bertrand  614: EXT_SQL
1.15      bertrand  615: DATE_FR
                    616: FINAL_ENCODING
1.76    ! bertrand  617: SIGSEGV
1.15      bertrand  618: OPENSSL
                    619: SQLITE
                    620: ICONV
                    621: FILE
                    622: GNUPLOT
                    623: GPP
                    624: GSL
                    625: UNITS
                    626: READLINE
                    627: NCURSES
1.75      bertrand  628: ELF
1.40      bertrand  629: BSH_PATH
1.35      bertrand  630: BROKEN_SIGINFO
1.34      bertrand  631: IPV6
1.33      bertrand  632: SEMUN
1.36      bertrand  633: IPCS_SYSV
1.17      bertrand  634: SEMAPHORES_NOMMES
                    635: NESTED_FUNCTIONS
                    636: EXPORT_DYNAMIC
1.33      bertrand  637: C_STANDARD
1.15      bertrand  638: OS
1.69      bertrand  639: HOST
1.15      bertrand  640: GNUPLOT_COMPILATION
                    641: subdirs
                    642: EGREP
                    643: GREP
                    644: libPgSQLlib
                    645: libPgSQLinc
                    646: POSTGRESQL_SUPPORT
                    647: libMySQLlib
                    648: libMySQLinc
                    649: MYSQL_SUPPORT
                    650: DATE
                    651: includeX
                    652: libX
                    653: MOTIF_SUPPORT
                    654: DEBUG
                    655: EXPERIMENTAL_CODE
                    656: VIM_SUPPORT
                    657: POSTSCRIPT_SUPPORT
                    658: FORCE_GNUPLOT_PATH
                    659: GNUPLOT_SUPPORT
                    660: VIM
                    661: GNUPLOT_P
                    662: GV
                    663: GS
                    664: DVIPS
                    665: LATEX
                    666: TEX
                    667: SED
                    668: RANLIB
                    669: LN_S
                    670: RUNPATH
                    671: PROFILAGE
1.67      bertrand  672: LIBRPLCAS
                    673: RPLCAS
1.66      bertrand  674: ABI
1.15      bertrand  675: X_EXTRA_LIBS
                    676: X_LIBS
                    677: X_PRE_LIBS
                    678: X_CFLAGS
                    679: CPP
                    680: XMKMF
                    681: ac_ct_FC
                    682: FCFLAGS
                    683: FC
                    684: ac_ct_F77
                    685: FFLAGS
                    686: F77
                    687: am__fastdepCXX_FALSE
                    688: am__fastdepCXX_TRUE
                    689: CXXDEPMODE
                    690: ac_ct_CXX
                    691: CXXFLAGS
                    692: CXX
                    693: am__fastdepCC_FALSE
                    694: am__fastdepCC_TRUE
                    695: CCDEPMODE
                    696: AMDEPBACKSLASH
                    697: AMDEP_FALSE
                    698: AMDEP_TRUE
                    699: am__quote
                    700: am__include
                    701: DEPDIR
                    702: OBJEXT
                    703: EXEEXT
                    704: ac_ct_CC
                    705: CPPFLAGS
                    706: LDFLAGS
                    707: CFLAGS
                    708: CC
                    709: am__untar
                    710: am__tar
                    711: AMTAR
                    712: am__leading_dot
                    713: SET_MAKE
                    714: AWK
                    715: mkdir_p
                    716: MKDIR_P
                    717: INSTALL_STRIP_PROGRAM
                    718: STRIP
                    719: install_sh
                    720: MAKEINFO
                    721: AUTOHEADER
                    722: AUTOMAKE
                    723: AUTOCONF
                    724: ACLOCAL
                    725: VERSION
                    726: PACKAGE
                    727: CYGPATH_W
                    728: am__isrc
                    729: INSTALL_DATA
                    730: INSTALL_SCRIPT
                    731: INSTALL_PROGRAM
                    732: target_os
                    733: target_vendor
                    734: target_cpu
                    735: target
                    736: host_os
                    737: host_vendor
                    738: host_cpu
                    739: host
                    740: build_os
                    741: build_vendor
                    742: build_cpu
                    743: build
                    744: target_alias
                    745: host_alias
                    746: build_alias
                    747: LIBS
                    748: ECHO_T
                    749: ECHO_N
                    750: ECHO_C
                    751: DEFS
                    752: mandir
                    753: localedir
                    754: libdir
                    755: psdir
                    756: pdfdir
                    757: dvidir
                    758: htmldir
                    759: infodir
                    760: docdir
                    761: oldincludedir
                    762: includedir
                    763: localstatedir
                    764: sharedstatedir
                    765: sysconfdir
                    766: datadir
                    767: datarootdir
                    768: libexecdir
                    769: sbindir
                    770: bindir
                    771: program_transform_name
                    772: prefix
                    773: exec_prefix
                    774: PACKAGE_URL
                    775: PACKAGE_BUGREPORT
                    776: PACKAGE_STRING
                    777: PACKAGE_VERSION
                    778: PACKAGE_TARNAME
                    779: PACKAGE_NAME
1.14      bertrand  780: PATH_SEPARATOR
1.15      bertrand  781: SHELL'
                    782: ac_subst_files=''
                    783: ac_user_opts='
                    784: enable_option_checking
                    785: enable_dependency_tracking
                    786: with_x
1.69      bertrand  787: with_32bits_abi
                    788: with_64bits_abi
1.67      bertrand  789: with_rplcas
1.15      bertrand  790: enable_optimization
1.36      bertrand  791: enable_sysv_semaphores
1.30      bertrand  792: enable_full_static
1.15      bertrand  793: enable_final_encoding
                    794: enable_tex
                    795: enable_vim
                    796: enable_embedded_gnuplot
                    797: enable_gnuplot
                    798: enable_motif
                    799: enable_experimental
                    800: enable_debug
                    801: enable_profile
                    802: enable_final_run_path
                    803: with_mysql
                    804: with_postgresql
1.40      bertrand  805: with_bourne_shell
1.15      bertrand  806: with_openssl_arch
                    807: '
                    808:       ac_precious_vars='build_alias
1.1       bertrand  809: host_alias
                    810: target_alias
                    811: CC
                    812: CFLAGS
                    813: LDFLAGS
1.15      bertrand  814: LIBS
1.1       bertrand  815: CPPFLAGS
                    816: CXX
                    817: CXXFLAGS
1.15      bertrand  818: CCC
1.1       bertrand  819: F77
                    820: FFLAGS
                    821: FC
                    822: FCFLAGS
                    823: XMKMF
                    824: CPP'
1.69      bertrand  825: ac_subdirs_all='tools/$GNUPLOT
                    826: tools/$NCURSES
1.1       bertrand  827: tools/$READLINE
                    828: tools/$GSL
                    829: tools/$GPP
                    830: tools/$FILE
                    831: tools/$ICONV
1.9       bertrand  832: tools/$SQLITE
1.76    ! bertrand  833: tools/$UNITS
        !           834: tools/$SIGSEGV'
1.1       bertrand  835: 
                    836: # Initialize some variables set by options.
                    837: ac_init_help=
                    838: ac_init_version=false
1.15      bertrand  839: ac_unrecognized_opts=
                    840: ac_unrecognized_sep=
1.1       bertrand  841: # The variables have the same names as the options, with
                    842: # dashes changed to underlines.
                    843: cache_file=/dev/null
                    844: exec_prefix=NONE
                    845: no_create=
                    846: no_recursion=
                    847: prefix=NONE
                    848: program_prefix=NONE
                    849: program_suffix=NONE
                    850: program_transform_name=s,x,x,
                    851: silent=
                    852: site=
                    853: srcdir=
                    854: verbose=
                    855: x_includes=NONE
                    856: x_libraries=NONE
                    857: 
                    858: # Installation directory options.
                    859: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    860: # and all the variables that are supposed to be based on exec_prefix
                    861: # by default will actually change.
                    862: # Use braces instead of parens because sh, perl, etc. also accept them.
                    863: # (The list follows the same order as the GNU Coding Standards.)
                    864: bindir='${exec_prefix}/bin'
                    865: sbindir='${exec_prefix}/sbin'
                    866: libexecdir='${exec_prefix}/libexec'
                    867: datarootdir='${prefix}/share'
                    868: datadir='${datarootdir}'
                    869: sysconfdir='${prefix}/etc'
                    870: sharedstatedir='${prefix}/com'
                    871: localstatedir='${prefix}/var'
                    872: includedir='${prefix}/include'
                    873: oldincludedir='/usr/include'
                    874: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    875: infodir='${datarootdir}/info'
                    876: htmldir='${docdir}'
                    877: dvidir='${docdir}'
                    878: pdfdir='${docdir}'
                    879: psdir='${docdir}'
                    880: libdir='${exec_prefix}/lib'
                    881: localedir='${datarootdir}/locale'
                    882: mandir='${datarootdir}/man'
                    883: 
                    884: ac_prev=
                    885: ac_dashdash=
                    886: for ac_option
                    887: do
                    888:   # If the previous option needs an argument, assign it.
                    889:   if test -n "$ac_prev"; then
                    890:     eval $ac_prev=\$ac_option
                    891:     ac_prev=
                    892:     continue
                    893:   fi
                    894: 
                    895:   case $ac_option in
1.36      bertrand  896:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    897:   *=)   ac_optarg= ;;
                    898:   *)    ac_optarg=yes ;;
1.1       bertrand  899:   esac
                    900: 
                    901:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    902: 
                    903:   case $ac_dashdash$ac_option in
                    904:   --)
                    905:     ac_dashdash=yes ;;
                    906: 
                    907:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    908:     ac_prev=bindir ;;
                    909:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    910:     bindir=$ac_optarg ;;
                    911: 
                    912:   -build | --build | --buil | --bui | --bu)
                    913:     ac_prev=build_alias ;;
                    914:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    915:     build_alias=$ac_optarg ;;
                    916: 
                    917:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    918:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    919:     ac_prev=cache_file ;;
                    920:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    921:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    922:     cache_file=$ac_optarg ;;
                    923: 
                    924:   --config-cache | -C)
                    925:     cache_file=config.cache ;;
                    926: 
                    927:   -datadir | --datadir | --datadi | --datad)
                    928:     ac_prev=datadir ;;
                    929:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    930:     datadir=$ac_optarg ;;
                    931: 
                    932:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    933:   | --dataroo | --dataro | --datar)
                    934:     ac_prev=datarootdir ;;
                    935:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    936:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    937:     datarootdir=$ac_optarg ;;
                    938: 
                    939:   -disable-* | --disable-*)
1.15      bertrand  940:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  941:     # Reject names that are not valid shell variable names.
1.15      bertrand  942:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  943:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  944:     ac_useropt_orig=$ac_useropt
                    945:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    946:     case $ac_user_opts in
                    947:       *"
                    948: "enable_$ac_useropt"
                    949: "*) ;;
                    950:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    951:     ac_unrecognized_sep=', ';;
                    952:     esac
                    953:     eval enable_$ac_useropt=no ;;
1.1       bertrand  954: 
                    955:   -docdir | --docdir | --docdi | --doc | --do)
                    956:     ac_prev=docdir ;;
                    957:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    958:     docdir=$ac_optarg ;;
                    959: 
                    960:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    961:     ac_prev=dvidir ;;
                    962:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    963:     dvidir=$ac_optarg ;;
                    964: 
                    965:   -enable-* | --enable-*)
1.15      bertrand  966:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  967:     # Reject names that are not valid shell variable names.
1.15      bertrand  968:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  969:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  970:     ac_useropt_orig=$ac_useropt
                    971:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    972:     case $ac_user_opts in
                    973:       *"
                    974: "enable_$ac_useropt"
                    975: "*) ;;
                    976:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    977:     ac_unrecognized_sep=', ';;
                    978:     esac
                    979:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  980: 
                    981:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    982:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    983:   | --exec | --exe | --ex)
                    984:     ac_prev=exec_prefix ;;
                    985:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    986:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    987:   | --exec=* | --exe=* | --ex=*)
                    988:     exec_prefix=$ac_optarg ;;
                    989: 
                    990:   -gas | --gas | --ga | --g)
                    991:     # Obsolete; use --with-gas.
                    992:     with_gas=yes ;;
                    993: 
                    994:   -help | --help | --hel | --he | -h)
                    995:     ac_init_help=long ;;
                    996:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    997:     ac_init_help=recursive ;;
                    998:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    999:     ac_init_help=short ;;
                   1000: 
                   1001:   -host | --host | --hos | --ho)
                   1002:     ac_prev=host_alias ;;
                   1003:   -host=* | --host=* | --hos=* | --ho=*)
                   1004:     host_alias=$ac_optarg ;;
                   1005: 
                   1006:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1007:     ac_prev=htmldir ;;
                   1008:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1009:   | --ht=*)
                   1010:     htmldir=$ac_optarg ;;
                   1011: 
                   1012:   -includedir | --includedir | --includedi | --included | --include \
                   1013:   | --includ | --inclu | --incl | --inc)
                   1014:     ac_prev=includedir ;;
                   1015:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1016:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1017:     includedir=$ac_optarg ;;
                   1018: 
                   1019:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1020:     ac_prev=infodir ;;
                   1021:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1022:     infodir=$ac_optarg ;;
                   1023: 
                   1024:   -libdir | --libdir | --libdi | --libd)
                   1025:     ac_prev=libdir ;;
                   1026:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1027:     libdir=$ac_optarg ;;
                   1028: 
                   1029:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1030:   | --libexe | --libex | --libe)
                   1031:     ac_prev=libexecdir ;;
                   1032:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1033:   | --libexe=* | --libex=* | --libe=*)
                   1034:     libexecdir=$ac_optarg ;;
                   1035: 
                   1036:   -localedir | --localedir | --localedi | --localed | --locale)
                   1037:     ac_prev=localedir ;;
                   1038:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1039:     localedir=$ac_optarg ;;
                   1040: 
                   1041:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1042:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1043:     ac_prev=localstatedir ;;
                   1044:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1045:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1046:     localstatedir=$ac_optarg ;;
                   1047: 
                   1048:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1049:     ac_prev=mandir ;;
                   1050:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1051:     mandir=$ac_optarg ;;
                   1052: 
                   1053:   -nfp | --nfp | --nf)
                   1054:     # Obsolete; use --without-fp.
                   1055:     with_fp=no ;;
                   1056: 
                   1057:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1058:   | --no-cr | --no-c | -n)
                   1059:     no_create=yes ;;
                   1060: 
                   1061:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1062:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1063:     no_recursion=yes ;;
                   1064: 
                   1065:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1066:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1067:   | --oldin | --oldi | --old | --ol | --o)
                   1068:     ac_prev=oldincludedir ;;
                   1069:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1070:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1071:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1072:     oldincludedir=$ac_optarg ;;
                   1073: 
                   1074:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1075:     ac_prev=prefix ;;
                   1076:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1077:     prefix=$ac_optarg ;;
                   1078: 
                   1079:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1080:   | --program-pre | --program-pr | --program-p)
                   1081:     ac_prev=program_prefix ;;
                   1082:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1083:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1084:     program_prefix=$ac_optarg ;;
                   1085: 
                   1086:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1087:   | --program-suf | --program-su | --program-s)
                   1088:     ac_prev=program_suffix ;;
                   1089:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1090:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1091:     program_suffix=$ac_optarg ;;
                   1092: 
                   1093:   -program-transform-name | --program-transform-name \
                   1094:   | --program-transform-nam | --program-transform-na \
                   1095:   | --program-transform-n | --program-transform- \
                   1096:   | --program-transform | --program-transfor \
                   1097:   | --program-transfo | --program-transf \
                   1098:   | --program-trans | --program-tran \
                   1099:   | --progr-tra | --program-tr | --program-t)
                   1100:     ac_prev=program_transform_name ;;
                   1101:   -program-transform-name=* | --program-transform-name=* \
                   1102:   | --program-transform-nam=* | --program-transform-na=* \
                   1103:   | --program-transform-n=* | --program-transform-=* \
                   1104:   | --program-transform=* | --program-transfor=* \
                   1105:   | --program-transfo=* | --program-transf=* \
                   1106:   | --program-trans=* | --program-tran=* \
                   1107:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1108:     program_transform_name=$ac_optarg ;;
                   1109: 
                   1110:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1111:     ac_prev=pdfdir ;;
                   1112:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1113:     pdfdir=$ac_optarg ;;
                   1114: 
                   1115:   -psdir | --psdir | --psdi | --psd | --ps)
                   1116:     ac_prev=psdir ;;
                   1117:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1118:     psdir=$ac_optarg ;;
                   1119: 
                   1120:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1121:   | -silent | --silent | --silen | --sile | --sil)
                   1122:     silent=yes ;;
                   1123: 
                   1124:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1125:     ac_prev=sbindir ;;
                   1126:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1127:   | --sbi=* | --sb=*)
                   1128:     sbindir=$ac_optarg ;;
                   1129: 
                   1130:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1131:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1132:   | --sharedst | --shareds | --shared | --share | --shar \
                   1133:   | --sha | --sh)
                   1134:     ac_prev=sharedstatedir ;;
                   1135:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1136:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1137:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1138:   | --sha=* | --sh=*)
                   1139:     sharedstatedir=$ac_optarg ;;
                   1140: 
                   1141:   -site | --site | --sit)
                   1142:     ac_prev=site ;;
                   1143:   -site=* | --site=* | --sit=*)
                   1144:     site=$ac_optarg ;;
                   1145: 
                   1146:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1147:     ac_prev=srcdir ;;
                   1148:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1149:     srcdir=$ac_optarg ;;
                   1150: 
                   1151:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1152:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1153:     ac_prev=sysconfdir ;;
                   1154:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1155:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1156:     sysconfdir=$ac_optarg ;;
                   1157: 
                   1158:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1159:     ac_prev=target_alias ;;
                   1160:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1161:     target_alias=$ac_optarg ;;
                   1162: 
                   1163:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1164:     verbose=yes ;;
                   1165: 
                   1166:   -version | --version | --versio | --versi | --vers | -V)
                   1167:     ac_init_version=: ;;
                   1168: 
                   1169:   -with-* | --with-*)
1.15      bertrand 1170:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1171:     # Reject names that are not valid shell variable names.
1.15      bertrand 1172:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1173:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1174:     ac_useropt_orig=$ac_useropt
                   1175:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1176:     case $ac_user_opts in
                   1177:       *"
                   1178: "with_$ac_useropt"
                   1179: "*) ;;
                   1180:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1181:     ac_unrecognized_sep=', ';;
                   1182:     esac
                   1183:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1184: 
                   1185:   -without-* | --without-*)
1.15      bertrand 1186:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1187:     # Reject names that are not valid shell variable names.
1.15      bertrand 1188:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1189:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1190:     ac_useropt_orig=$ac_useropt
                   1191:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1192:     case $ac_user_opts in
                   1193:       *"
                   1194: "with_$ac_useropt"
                   1195: "*) ;;
                   1196:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1197:     ac_unrecognized_sep=', ';;
                   1198:     esac
                   1199:     eval with_$ac_useropt=no ;;
1.1       bertrand 1200: 
                   1201:   --x)
                   1202:     # Obsolete; use --with-x.
                   1203:     with_x=yes ;;
                   1204: 
                   1205:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1206:   | --x-incl | --x-inc | --x-in | --x-i)
                   1207:     ac_prev=x_includes ;;
                   1208:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1209:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1210:     x_includes=$ac_optarg ;;
                   1211: 
                   1212:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1213:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1214:     ac_prev=x_libraries ;;
                   1215:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1216:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1217:     x_libraries=$ac_optarg ;;
                   1218: 
1.36      bertrand 1219:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1220: Try \`$0 --help' for more information"
1.1       bertrand 1221:     ;;
                   1222: 
                   1223:   *=*)
                   1224:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1225:     # Reject names that are not valid shell variable names.
1.15      bertrand 1226:     case $ac_envvar in #(
                   1227:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1228:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1229:     esac
1.1       bertrand 1230:     eval $ac_envvar=\$ac_optarg
                   1231:     export $ac_envvar ;;
                   1232: 
                   1233:   *)
                   1234:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1235:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1236:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1237:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1238:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1239:     ;;
                   1240: 
                   1241:   esac
                   1242: done
                   1243: 
                   1244: if test -n "$ac_prev"; then
                   1245:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1246:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1247: fi
                   1248: 
                   1249: if test -n "$ac_unrecognized_opts"; then
                   1250:   case $enable_option_checking in
                   1251:     no) ;;
1.36      bertrand 1252:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1253:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1254:   esac
1.1       bertrand 1255: fi
                   1256: 
1.15      bertrand 1257: # Check all directory arguments for consistency.
1.1       bertrand 1258: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1259:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1260:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1261:        libdir localedir mandir
                   1262: do
                   1263:   eval ac_val=\$$ac_var
1.15      bertrand 1264:   # Remove trailing slashes.
                   1265:   case $ac_val in
                   1266:     */ )
                   1267:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1268:       eval $ac_var=\$ac_val;;
                   1269:   esac
                   1270:   # Be sure to have absolute directory names.
1.1       bertrand 1271:   case $ac_val in
                   1272:     [\\/$]* | ?:[\\/]* )  continue;;
                   1273:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1274:   esac
1.36      bertrand 1275:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1276: done
                   1277: 
                   1278: # There might be people who depend on the old broken behavior: `$host'
                   1279: # used to hold the argument of --host etc.
                   1280: # FIXME: To remove some day.
                   1281: build=$build_alias
                   1282: host=$host_alias
                   1283: target=$target_alias
                   1284: 
                   1285: # FIXME: To remove some day.
                   1286: if test "x$host_alias" != x; then
                   1287:   if test "x$build_alias" = x; then
                   1288:     cross_compiling=maybe
1.36      bertrand 1289:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1290:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1291:   elif test "x$build_alias" != "x$host_alias"; then
                   1292:     cross_compiling=yes
                   1293:   fi
                   1294: fi
                   1295: 
                   1296: ac_tool_prefix=
                   1297: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1298: 
                   1299: test "$silent" = yes && exec 6>/dev/null
                   1300: 
                   1301: 
                   1302: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1303: ac_ls_di=`ls -di .` &&
                   1304: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1305:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1306: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1307:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1308: 
                   1309: 
                   1310: # Find the source files, if location was not specified.
                   1311: if test -z "$srcdir"; then
                   1312:   ac_srcdir_defaulted=yes
                   1313:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1314:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1315: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1316:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1317:     X"$as_myself" : 'X\(//\)$' \| \
                   1318:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1319: $as_echo X"$as_myself" |
1.1       bertrand 1320:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1321:        s//\1/
                   1322:        q
                   1323:      }
                   1324:      /^X\(\/\/\)[^/].*/{
                   1325:        s//\1/
                   1326:        q
                   1327:      }
                   1328:      /^X\(\/\/\)$/{
                   1329:        s//\1/
                   1330:        q
                   1331:      }
                   1332:      /^X\(\/\).*/{
                   1333:        s//\1/
                   1334:        q
                   1335:      }
                   1336:      s/.*/./; q'`
                   1337:   srcdir=$ac_confdir
                   1338:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1339:     srcdir=..
                   1340:   fi
                   1341: else
                   1342:   ac_srcdir_defaulted=no
                   1343: fi
                   1344: if test ! -r "$srcdir/$ac_unique_file"; then
                   1345:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1346:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1347: fi
                   1348: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1349: ac_abs_confdir=`(
1.36      bertrand 1350:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1351:    pwd)`
                   1352: # When building in place, set srcdir=.
                   1353: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1354:   srcdir=.
                   1355: fi
                   1356: # Remove unnecessary trailing slashes from srcdir.
                   1357: # Double slashes in file names in object file debugging info
                   1358: # mess up M-x gdb in Emacs.
                   1359: case $srcdir in
                   1360: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1361: esac
                   1362: for ac_var in $ac_precious_vars; do
                   1363:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1364:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1365:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1366:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1367: done
                   1368: 
                   1369: #
                   1370: # Report the --help message.
                   1371: #
                   1372: if test "$ac_init_help" = "long"; then
                   1373:   # Omit some internal or obsolete options to make the list less imposing.
                   1374:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1375:   cat <<_ACEOF
1.73      bertrand 1376: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1.1       bertrand 1377: 
                   1378: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1379: 
                   1380: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1381: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1382: 
                   1383: Defaults for the options are specified in brackets.
                   1384: 
                   1385: Configuration:
                   1386:   -h, --help              display this help and exit
                   1387:       --help=short        display options specific to this package
                   1388:       --help=recursive    display the short help of all the included packages
                   1389:   -V, --version           display version information and exit
1.36      bertrand 1390:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1391:       --cache-file=FILE   cache test results in FILE [disabled]
                   1392:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1393:   -n, --no-create         do not create output files
                   1394:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1395: 
                   1396: Installation directories:
                   1397:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1398:                           [$ac_default_prefix]
1.1       bertrand 1399:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1400:                           [PREFIX]
1.1       bertrand 1401: 
                   1402: By default, \`make install' will install all the files in
                   1403: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1404: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1405: for instance \`--prefix=\$HOME'.
                   1406: 
                   1407: For better control, use the options below.
                   1408: 
                   1409: Fine tuning of the installation directories:
1.15      bertrand 1410:   --bindir=DIR            user executables [EPREFIX/bin]
                   1411:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1412:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1413:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1414:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1415:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1416:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1417:   --includedir=DIR        C header files [PREFIX/include]
                   1418:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1419:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1420:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1421:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1422:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1423:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1424:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1425:   --htmldir=DIR           html documentation [DOCDIR]
                   1426:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1427:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1428:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1429: _ACEOF
                   1430: 
                   1431:   cat <<\_ACEOF
                   1432: 
                   1433: Program names:
                   1434:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1435:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1436:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1437: 
                   1438: X features:
                   1439:   --x-includes=DIR    X include files are in DIR
                   1440:   --x-libraries=DIR   X library files are in DIR
                   1441: 
                   1442: System types:
                   1443:   --build=BUILD     configure for building on BUILD [guessed]
                   1444:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1445:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1446: _ACEOF
                   1447: fi
                   1448: 
                   1449: if test -n "$ac_init_help"; then
                   1450:   case $ac_init_help in
1.73      bertrand 1451:      short | recursive ) echo "Configuration of rpl 4.1.3:";;
1.1       bertrand 1452:    esac
                   1453:   cat <<\_ACEOF
                   1454: 
                   1455: Optional Features:
1.15      bertrand 1456:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1457:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1458:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1459:   --disable-dependency-tracking  speeds up one-time build
                   1460:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1461:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1462:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1463:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1464:   --enable-final-encoding force final encoding [default=guessed]
                   1465:   --enable-tex            provide the TeX support [default=guessed]
                   1466:   --enable-vim            provide the vim support [default=guessed]
                   1467:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1468:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1469:   --enable-motif          provide the Motif support [default=guessed]
                   1470:   --enable-experimental   enable experimental code [default=no]
                   1471:   --enable-debug          enable debug code [default=no]
                   1472:   --enable-profile        enable profile code [default=no]
                   1473:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1474: 
                   1475: Optional Packages:
                   1476:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1477:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1478:   --with-x                use the X Window System
1.64      bertrand 1479:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1480:   --with-64bits-abi       force 64bits ABI (multilib)
                   1481:   --with-rplcas           compile rplcas (default=no)
1.1       bertrand 1482:   --with-mysql=PATH         specify directory for installed mysql
                   1483:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1484:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1485:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1486: 
                   1487: Some influential environment variables:
                   1488:   CC          C compiler command
                   1489:   CFLAGS      C compiler flags
                   1490:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1491:               nonstandard directory <lib dir>
                   1492:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1493:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1494:               you have headers in a nonstandard directory <include dir>
                   1495:   CXX         C++ compiler command
                   1496:   CXXFLAGS    C++ compiler flags
                   1497:   F77         Fortran 77 compiler command
                   1498:   FFLAGS      Fortran 77 compiler flags
                   1499:   FC          Fortran compiler command
                   1500:   FCFLAGS     Fortran compiler flags
                   1501:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1502:   CPP         C preprocessor
                   1503: 
                   1504: Use these variables to override the choices made by `configure' or to help
                   1505: it to find libraries and programs with nonstandard names/locations.
                   1506: 
1.15      bertrand 1507: Report bugs to the package provider.
1.1       bertrand 1508: _ACEOF
                   1509: ac_status=$?
                   1510: fi
                   1511: 
                   1512: if test "$ac_init_help" = "recursive"; then
                   1513:   # If there are subdirs, report their specific --help.
                   1514:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1515:     test -d "$ac_dir" ||
                   1516:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1517:       continue
1.1       bertrand 1518:     ac_builddir=.
                   1519: 
                   1520: case "$ac_dir" in
                   1521: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1522: *)
1.15      bertrand 1523:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1524:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1525:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1526:   case $ac_top_builddir_sub in
                   1527:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1528:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1529:   esac ;;
                   1530: esac
                   1531: ac_abs_top_builddir=$ac_pwd
                   1532: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1533: # for backward compatibility:
                   1534: ac_top_builddir=$ac_top_build_prefix
                   1535: 
                   1536: case $srcdir in
                   1537:   .)  # We are building in place.
                   1538:     ac_srcdir=.
                   1539:     ac_top_srcdir=$ac_top_builddir_sub
                   1540:     ac_abs_top_srcdir=$ac_pwd ;;
                   1541:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1542:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1543:     ac_top_srcdir=$srcdir
                   1544:     ac_abs_top_srcdir=$srcdir ;;
                   1545:   *) # Relative name.
                   1546:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1547:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1548:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1549: esac
                   1550: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1551: 
                   1552:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1553:     # Check for guested configure.
                   1554:     if test -f "$ac_srcdir/configure.gnu"; then
                   1555:       echo &&
                   1556:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1557:     elif test -f "$ac_srcdir/configure"; then
                   1558:       echo &&
                   1559:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1560:     else
1.15      bertrand 1561:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1562:     fi || ac_status=$?
                   1563:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1564:   done
                   1565: fi
                   1566: 
                   1567: test -n "$ac_init_help" && exit $ac_status
                   1568: if $ac_init_version; then
                   1569:   cat <<\_ACEOF
1.73      bertrand 1570: rpl configure 4.1.3
1.57      bertrand 1571: generated by GNU Autoconf 2.68
1.1       bertrand 1572: 
1.36      bertrand 1573: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1574: This configure script is free software; the Free Software Foundation
                   1575: gives unlimited permission to copy, distribute and modify it.
                   1576: _ACEOF
                   1577:   exit
                   1578: fi
                   1579: 
1.15      bertrand 1580: ## ------------------------ ##
                   1581: ## Autoconf initialization. ##
                   1582: ## ------------------------ ##
                   1583: 
                   1584: # ac_fn_c_try_compile LINENO
                   1585: # --------------------------
                   1586: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1587: ac_fn_c_try_compile ()
                   1588: {
                   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_c_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
1.57      bertrand 1617:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1618:   as_fn_set_status $ac_retval
1.1       bertrand 1619: 
1.15      bertrand 1620: } # ac_fn_c_try_compile
1.1       bertrand 1621: 
1.15      bertrand 1622: # ac_fn_cxx_try_compile LINENO
                   1623: # ----------------------------
                   1624: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1625: ac_fn_cxx_try_compile ()
1.1       bertrand 1626: {
1.15      bertrand 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_cxx_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
                   1652: 
                   1653:    ac_retval=1
                   1654: fi
1.57      bertrand 1655:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1656:   as_fn_set_status $ac_retval
1.1       bertrand 1657: 
1.15      bertrand 1658: } # ac_fn_cxx_try_compile
1.1       bertrand 1659: 
1.15      bertrand 1660: # ac_fn_f77_try_compile LINENO
                   1661: # ----------------------------
                   1662: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1663: ac_fn_f77_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_f77_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
1.57      bertrand 1693:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1694:   as_fn_set_status $ac_retval
1.1       bertrand 1695: 
1.15      bertrand 1696: } # ac_fn_f77_try_compile
1.1       bertrand 1697: 
1.15      bertrand 1698: # ac_fn_fc_try_compile LINENO
                   1699: # ---------------------------
                   1700: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1701: ac_fn_fc_try_compile ()
                   1702: {
                   1703:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1704:   rm -f conftest.$ac_objext
                   1705:   if { { ac_try="$ac_compile"
                   1706: case "(($ac_try" in
                   1707:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1708:   *) ac_try_echo=$ac_try;;
                   1709: esac
                   1710: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1711: $as_echo "$ac_try_echo"; } >&5
                   1712:   (eval "$ac_compile") 2>conftest.err
                   1713:   ac_status=$?
                   1714:   if test -s conftest.err; then
                   1715:     grep -v '^ *+' conftest.err >conftest.er1
                   1716:     cat conftest.er1 >&5
                   1717:     mv -f conftest.er1 conftest.err
                   1718:   fi
                   1719:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1720:   test $ac_status = 0; } && {
                   1721:     test -z "$ac_fc_werror_flag" ||
                   1722:     test ! -s conftest.err
                   1723:        } && test -s conftest.$ac_objext; then :
                   1724:   ac_retval=0
                   1725: else
                   1726:   $as_echo "$as_me: failed program was:" >&5
                   1727: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1728: 
1.15      bertrand 1729:    ac_retval=1
                   1730: fi
1.57      bertrand 1731:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1732:   as_fn_set_status $ac_retval
1.1       bertrand 1733: 
1.15      bertrand 1734: } # ac_fn_fc_try_compile
1.1       bertrand 1735: 
1.15      bertrand 1736: # ac_fn_c_try_cpp LINENO
                   1737: # ----------------------
                   1738: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1739: ac_fn_c_try_cpp ()
                   1740: {
                   1741:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1742:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   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_cpp conftest.$ac_ext") 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
1.36      bertrand 1757:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1758:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1759:     test ! -s conftest.err
                   1760:        }; then :
                   1761:   ac_retval=0
                   1762: else
                   1763:   $as_echo "$as_me: failed program was:" >&5
                   1764: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1765: 
1.15      bertrand 1766:     ac_retval=1
                   1767: fi
1.57      bertrand 1768:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1769:   as_fn_set_status $ac_retval
1.1       bertrand 1770: 
1.15      bertrand 1771: } # ac_fn_c_try_cpp
1.1       bertrand 1772: 
1.15      bertrand 1773: # ac_fn_c_try_link LINENO
                   1774: # -----------------------
                   1775: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1776: ac_fn_c_try_link ()
                   1777: {
                   1778:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1779:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1780:   if { { ac_try="$ac_link"
                   1781: case "(($ac_try" in
                   1782:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1783:   *) ac_try_echo=$ac_try;;
                   1784: esac
                   1785: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1786: $as_echo "$ac_try_echo"; } >&5
                   1787:   (eval "$ac_link") 2>conftest.err
                   1788:   ac_status=$?
                   1789:   if test -s conftest.err; then
                   1790:     grep -v '^ *+' conftest.err >conftest.er1
                   1791:     cat conftest.er1 >&5
                   1792:     mv -f conftest.er1 conftest.err
                   1793:   fi
                   1794:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1795:   test $ac_status = 0; } && {
                   1796:     test -z "$ac_c_werror_flag" ||
                   1797:     test ! -s conftest.err
                   1798:        } && test -s conftest$ac_exeext && {
                   1799:     test "$cross_compiling" = yes ||
                   1800:     $as_test_x conftest$ac_exeext
                   1801:        }; then :
                   1802:   ac_retval=0
                   1803: else
                   1804:   $as_echo "$as_me: failed program was:" >&5
                   1805: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1806: 
1.15      bertrand 1807:    ac_retval=1
                   1808: fi
                   1809:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1810:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1811:   # interfere with the next link command; also delete a directory that is
                   1812:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1813:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1814:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1815:   as_fn_set_status $ac_retval
1.1       bertrand 1816: 
1.15      bertrand 1817: } # ac_fn_c_try_link
1.1       bertrand 1818: 
1.15      bertrand 1819: # ac_fn_c_check_func LINENO FUNC VAR
                   1820: # ----------------------------------
                   1821: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1822: ac_fn_c_check_func ()
                   1823: {
                   1824:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1825:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1826: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1827: if eval \${$3+:} false; then :
1.15      bertrand 1828:   $as_echo_n "(cached) " >&6
                   1829: else
                   1830:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1831: /* end confdefs.h.  */
                   1832: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1833:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1834: #define $2 innocuous_$2
1.1       bertrand 1835: 
1.15      bertrand 1836: /* System header to define __stub macros and hopefully few prototypes,
                   1837:     which can conflict with char $2 (); below.
                   1838:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1839:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1840: 
1.15      bertrand 1841: #ifdef __STDC__
                   1842: # include <limits.h>
                   1843: #else
                   1844: # include <assert.h>
                   1845: #endif
1.1       bertrand 1846: 
1.15      bertrand 1847: #undef $2
1.1       bertrand 1848: 
1.15      bertrand 1849: /* Override any GCC internal prototype to avoid an error.
                   1850:    Use char because int might match the return type of a GCC
                   1851:    builtin and then its argument prototype would still apply.  */
                   1852: #ifdef __cplusplus
                   1853: extern "C"
                   1854: #endif
                   1855: char $2 ();
                   1856: /* The GNU C library defines this for functions which it implements
                   1857:     to always fail with ENOSYS.  Some functions are actually named
                   1858:     something starting with __ and the normal name is an alias.  */
                   1859: #if defined __stub_$2 || defined __stub___$2
                   1860: choke me
                   1861: #endif
1.1       bertrand 1862: 
1.15      bertrand 1863: int
                   1864: main ()
                   1865: {
                   1866: return $2 ();
                   1867:   ;
                   1868:   return 0;
                   1869: }
1.1       bertrand 1870: _ACEOF
1.15      bertrand 1871: if ac_fn_c_try_link "$LINENO"; then :
                   1872:   eval "$3=yes"
                   1873: else
                   1874:   eval "$3=no"
                   1875: fi
                   1876: rm -f core conftest.err conftest.$ac_objext \
                   1877:     conftest$ac_exeext conftest.$ac_ext
                   1878: fi
                   1879: eval ac_res=\$$3
                   1880:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1881: $as_echo "$ac_res" >&6; }
1.57      bertrand 1882:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1883: 
1.15      bertrand 1884: } # ac_fn_c_check_func
1.1       bertrand 1885: 
1.33      bertrand 1886: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1887: # -------------------------------------------
                   1888: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1889: # variable VAR accordingly.
                   1890: ac_fn_c_check_type ()
                   1891: {
                   1892:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1893:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1894: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1895: if eval \${$3+:} false; then :
1.33      bertrand 1896:   $as_echo_n "(cached) " >&6
                   1897: else
                   1898:   eval "$3=no"
                   1899:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1900: /* end confdefs.h.  */
                   1901: $4
                   1902: int
                   1903: main ()
                   1904: {
                   1905: if (sizeof ($2))
                   1906:     return 0;
                   1907:   ;
                   1908:   return 0;
                   1909: }
                   1910: _ACEOF
                   1911: if ac_fn_c_try_compile "$LINENO"; then :
                   1912:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1913: /* end confdefs.h.  */
                   1914: $4
                   1915: int
                   1916: main ()
                   1917: {
                   1918: if (sizeof (($2)))
                   1919:        return 0;
                   1920:   ;
                   1921:   return 0;
                   1922: }
                   1923: _ACEOF
                   1924: if ac_fn_c_try_compile "$LINENO"; then :
                   1925: 
                   1926: else
                   1927:   eval "$3=yes"
                   1928: fi
                   1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1930: fi
                   1931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1932: fi
                   1933: eval ac_res=\$$3
                   1934:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1935: $as_echo "$ac_res" >&6; }
1.57      bertrand 1936:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1937: 
                   1938: } # ac_fn_c_check_type
                   1939: 
1.15      bertrand 1940: # ac_fn_c_try_run LINENO
                   1941: # ----------------------
                   1942: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1943: # that executables *can* be run.
                   1944: ac_fn_c_try_run ()
                   1945: {
                   1946:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1947:   if { { ac_try="$ac_link"
                   1948: case "(($ac_try" in
                   1949:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1950:   *) ac_try_echo=$ac_try;;
                   1951: esac
                   1952: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1953: $as_echo "$ac_try_echo"; } >&5
                   1954:   (eval "$ac_link") 2>&5
                   1955:   ac_status=$?
                   1956:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1957:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1958:   { { case "(($ac_try" in
                   1959:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1960:   *) ac_try_echo=$ac_try;;
                   1961: esac
                   1962: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1963: $as_echo "$ac_try_echo"; } >&5
                   1964:   (eval "$ac_try") 2>&5
                   1965:   ac_status=$?
                   1966:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1967:   test $ac_status = 0; }; }; then :
                   1968:   ac_retval=0
                   1969: else
                   1970:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1971:        $as_echo "$as_me: failed program was:" >&5
                   1972: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1973: 
1.15      bertrand 1974:        ac_retval=$ac_status
                   1975: fi
                   1976:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1977:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1978:   as_fn_set_status $ac_retval
1.1       bertrand 1979: 
1.15      bertrand 1980: } # ac_fn_c_try_run
1.1       bertrand 1981: 
1.15      bertrand 1982: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1983: # --------------------------------------------
                   1984: # Tries to find the compile-time value of EXPR in a program that includes
                   1985: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1986: # computed
                   1987: ac_fn_c_compute_int ()
                   1988: {
                   1989:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1990:   if test "$cross_compiling" = yes; then
                   1991:     # Depending upon the size, compute the lo and hi bounds.
                   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) >= 0)];
                   1999: test_array [0] = 0
1.1       bertrand 2000: 
1.15      bertrand 2001:   ;
                   2002:   return 0;
                   2003: }
1.1       bertrand 2004: _ACEOF
1.15      bertrand 2005: if ac_fn_c_try_compile "$LINENO"; then :
                   2006:   ac_lo=0 ac_mid=0
                   2007:   while :; do
                   2008:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2009: /* end confdefs.h.  */
                   2010: $4
                   2011: int
                   2012: main ()
                   2013: {
                   2014: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2015: test_array [0] = 0
1.1       bertrand 2016: 
1.15      bertrand 2017:   ;
                   2018:   return 0;
                   2019: }
                   2020: _ACEOF
                   2021: if ac_fn_c_try_compile "$LINENO"; then :
                   2022:   ac_hi=$ac_mid; break
                   2023: else
                   2024:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2025:            if test $ac_lo -le $ac_mid; then
                   2026:              ac_lo= ac_hi=
                   2027:              break
                   2028:            fi
                   2029:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2030: fi
                   2031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2032:   done
                   2033: else
                   2034:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2035: /* end confdefs.h.  */
                   2036: $4
                   2037: int
                   2038: main ()
                   2039: {
                   2040: static int test_array [1 - 2 * !(($2) < 0)];
                   2041: test_array [0] = 0
1.1       bertrand 2042: 
1.15      bertrand 2043:   ;
                   2044:   return 0;
                   2045: }
1.1       bertrand 2046: _ACEOF
1.15      bertrand 2047: if ac_fn_c_try_compile "$LINENO"; then :
                   2048:   ac_hi=-1 ac_mid=-1
                   2049:   while :; do
                   2050:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2051: /* end confdefs.h.  */
                   2052: $4
                   2053: int
                   2054: main ()
                   2055: {
                   2056: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2057: test_array [0] = 0
1.1       bertrand 2058: 
1.15      bertrand 2059:   ;
                   2060:   return 0;
                   2061: }
                   2062: _ACEOF
                   2063: if ac_fn_c_try_compile "$LINENO"; then :
                   2064:   ac_lo=$ac_mid; break
                   2065: else
                   2066:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2067:            if test $ac_mid -le $ac_hi; then
                   2068:              ac_lo= ac_hi=
                   2069:              break
                   2070:            fi
                   2071:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2072: fi
                   2073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2074:   done
1.1       bertrand 2075: else
1.15      bertrand 2076:   ac_lo= ac_hi=
                   2077: fi
                   2078: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2079: fi
1.15      bertrand 2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2081: # Binary search between lo and hi bounds.
                   2082: while test "x$ac_lo" != "x$ac_hi"; do
                   2083:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2084:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2085: /* end confdefs.h.  */
                   2086: $4
                   2087: int
                   2088: main ()
                   2089: {
                   2090: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2091: test_array [0] = 0
1.1       bertrand 2092: 
1.15      bertrand 2093:   ;
                   2094:   return 0;
                   2095: }
                   2096: _ACEOF
                   2097: if ac_fn_c_try_compile "$LINENO"; then :
                   2098:   ac_hi=$ac_mid
1.1       bertrand 2099: else
1.15      bertrand 2100:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2101: fi
1.15      bertrand 2102: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2103: done
                   2104: case $ac_lo in #((
                   2105: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2106: '') ac_retval=1 ;;
                   2107: esac
                   2108:   else
                   2109:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2110: /* end confdefs.h.  */
                   2111: $4
                   2112: static long int longval () { return $2; }
                   2113: static unsigned long int ulongval () { return $2; }
                   2114: #include <stdio.h>
                   2115: #include <stdlib.h>
                   2116: int
                   2117: main ()
                   2118: {
1.1       bertrand 2119: 
1.15      bertrand 2120:   FILE *f = fopen ("conftest.val", "w");
                   2121:   if (! f)
                   2122:     return 1;
                   2123:   if (($2) < 0)
                   2124:     {
                   2125:       long int i = longval ();
                   2126:       if (i != ($2))
                   2127:    return 1;
                   2128:       fprintf (f, "%ld", i);
                   2129:     }
                   2130:   else
                   2131:     {
                   2132:       unsigned long int i = ulongval ();
                   2133:       if (i != ($2))
                   2134:    return 1;
                   2135:       fprintf (f, "%lu", i);
                   2136:     }
                   2137:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2138:      on some platforms.  */
                   2139:   return ferror (f) || fclose (f) != 0;
                   2140: 
                   2141:   ;
                   2142:   return 0;
                   2143: }
                   2144: _ACEOF
                   2145: if ac_fn_c_try_run "$LINENO"; then :
                   2146:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2147: else
                   2148:   ac_retval=1
1.14      bertrand 2149: fi
1.15      bertrand 2150: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2151:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2152: rm -f conftest.val
1.14      bertrand 2153: 
1.15      bertrand 2154:   fi
1.57      bertrand 2155:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2156:   as_fn_set_status $ac_retval
1.14      bertrand 2157: 
1.15      bertrand 2158: } # ac_fn_c_compute_int
1.1       bertrand 2159: 
1.15      bertrand 2160: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2161: # -------------------------------------------------------
                   2162: # Tests whether HEADER exists and can be compiled using the include files in
                   2163: # INCLUDES, setting the cache variable VAR accordingly.
                   2164: ac_fn_c_check_header_compile ()
                   2165: {
                   2166:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2167:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2168: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2169: if eval \${$3+:} false; then :
1.15      bertrand 2170:   $as_echo_n "(cached) " >&6
                   2171: else
                   2172:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2173: /* end confdefs.h.  */
                   2174: $4
                   2175: #include <$2>
                   2176: _ACEOF
                   2177: if ac_fn_c_try_compile "$LINENO"; then :
                   2178:   eval "$3=yes"
                   2179: else
                   2180:   eval "$3=no"
                   2181: fi
                   2182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2183: fi
                   2184: eval ac_res=\$$3
                   2185:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2186: $as_echo "$ac_res" >&6; }
1.57      bertrand 2187:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2188: 
1.15      bertrand 2189: } # ac_fn_c_check_header_compile
1.1       bertrand 2190: 
1.15      bertrand 2191: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2192: # -------------------------------------------------------
                   2193: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2194: # the include files in INCLUDES and setting the cache variable VAR
                   2195: # accordingly.
                   2196: ac_fn_c_check_header_mongrel ()
                   2197: {
                   2198:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2199:   if eval \${$3+:} false; then :
1.15      bertrand 2200:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2201: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2202: if eval \${$3+:} false; then :
1.15      bertrand 2203:   $as_echo_n "(cached) " >&6
                   2204: fi
                   2205: eval ac_res=\$$3
                   2206:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2207: $as_echo "$ac_res" >&6; }
                   2208: else
                   2209:   # Is the header compilable?
                   2210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2211: $as_echo_n "checking $2 usability... " >&6; }
                   2212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2213: /* end confdefs.h.  */
                   2214: $4
                   2215: #include <$2>
                   2216: _ACEOF
                   2217: if ac_fn_c_try_compile "$LINENO"; then :
                   2218:   ac_header_compiler=yes
                   2219: else
                   2220:   ac_header_compiler=no
                   2221: fi
                   2222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2224: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2225: 
1.15      bertrand 2226: # Is the header present?
                   2227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2228: $as_echo_n "checking $2 presence... " >&6; }
                   2229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2230: /* end confdefs.h.  */
                   2231: #include <$2>
                   2232: _ACEOF
                   2233: if ac_fn_c_try_cpp "$LINENO"; then :
                   2234:   ac_header_preproc=yes
                   2235: else
                   2236:   ac_header_preproc=no
                   2237: fi
1.36      bertrand 2238: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2240: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2241: 
1.15      bertrand 2242: # So?  What about this header?
                   2243: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2244:   yes:no: )
                   2245:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2246: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2247:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2248: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2249:     ;;
                   2250:   no:yes:* )
                   2251:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2252: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2253:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2254: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2255:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2256: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2257:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2258: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2259:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2260: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2261:     ;;
                   2262: esac
                   2263:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2264: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2265: if eval \${$3+:} false; then :
1.15      bertrand 2266:   $as_echo_n "(cached) " >&6
                   2267: else
                   2268:   eval "$3=\$ac_header_compiler"
                   2269: fi
                   2270: eval ac_res=\$$3
                   2271:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2272: $as_echo "$ac_res" >&6; }
                   2273: fi
1.57      bertrand 2274:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2275: 
1.15      bertrand 2276: } # ac_fn_c_check_header_mongrel
                   2277: cat >config.log <<_ACEOF
                   2278: This file contains any messages produced by compilers while
                   2279: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2280: 
1.73      bertrand 2281: It was created by rpl $as_me 4.1.3, which was
1.57      bertrand 2282: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2283: 
1.15      bertrand 2284:   $ $0 $@
1.1       bertrand 2285: 
1.15      bertrand 2286: _ACEOF
                   2287: exec 5>>config.log
                   2288: {
                   2289: cat <<_ASUNAME
                   2290: ## --------- ##
                   2291: ## Platform. ##
                   2292: ## --------- ##
1.1       bertrand 2293: 
1.15      bertrand 2294: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2295: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2296: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2297: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2298: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2299: 
1.15      bertrand 2300: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2301: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2302: 
1.15      bertrand 2303: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2304: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2305: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2306: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2307: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2308: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2309: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2310: 
1.15      bertrand 2311: _ASUNAME
1.1       bertrand 2312: 
1.15      bertrand 2313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2314: for as_dir in $PATH
                   2315: do
                   2316:   IFS=$as_save_IFS
                   2317:   test -z "$as_dir" && as_dir=.
                   2318:     $as_echo "PATH: $as_dir"
                   2319:   done
                   2320: IFS=$as_save_IFS
1.1       bertrand 2321: 
1.15      bertrand 2322: } >&5
1.1       bertrand 2323: 
1.15      bertrand 2324: cat >&5 <<_ACEOF
1.1       bertrand 2325: 
                   2326: 
1.15      bertrand 2327: ## ----------- ##
                   2328: ## Core tests. ##
                   2329: ## ----------- ##
1.1       bertrand 2330: 
1.15      bertrand 2331: _ACEOF
1.1       bertrand 2332: 
                   2333: 
1.15      bertrand 2334: # Keep a trace of the command line.
                   2335: # Strip out --no-create and --no-recursion so they do not pile up.
                   2336: # Strip out --silent because we don't want to record it for future runs.
                   2337: # Also quote any args containing shell meta-characters.
                   2338: # Make two passes to allow for proper duplicate-argument suppression.
                   2339: ac_configure_args=
                   2340: ac_configure_args0=
                   2341: ac_configure_args1=
                   2342: ac_must_keep_next=false
                   2343: for ac_pass in 1 2
                   2344: do
                   2345:   for ac_arg
                   2346:   do
                   2347:     case $ac_arg in
                   2348:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2349:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2350:     | -silent | --silent | --silen | --sile | --sil)
                   2351:       continue ;;
                   2352:     *\'*)
                   2353:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2354:     esac
                   2355:     case $ac_pass in
                   2356:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2357:     2)
                   2358:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2359:       if test $ac_must_keep_next = true; then
                   2360:    ac_must_keep_next=false # Got value, back to normal.
                   2361:       else
                   2362:    case $ac_arg in
                   2363:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2364:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2365:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2366:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2367:        case "$ac_configure_args0 " in
                   2368:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2369:        esac
                   2370:        ;;
                   2371:      -* ) ac_must_keep_next=true ;;
                   2372:    esac
                   2373:       fi
                   2374:       as_fn_append ac_configure_args " '$ac_arg'"
                   2375:       ;;
                   2376:     esac
                   2377:   done
                   2378: done
                   2379: { ac_configure_args0=; unset ac_configure_args0;}
                   2380: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2381: 
1.15      bertrand 2382: # When interrupted or exit'd, cleanup temporary files, and complete
                   2383: # config.log.  We remove comments because anyway the quotes in there
                   2384: # would cause problems or look ugly.
                   2385: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2386: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2387: trap 'exit_status=$?
                   2388:   # Save into config.log some information that might help in debugging.
                   2389:   {
                   2390:     echo
1.1       bertrand 2391: 
1.36      bertrand 2392:     $as_echo "## ---------------- ##
1.15      bertrand 2393: ## Cache variables. ##
1.36      bertrand 2394: ## ---------------- ##"
1.15      bertrand 2395:     echo
                   2396:     # The following way of writing the cache mishandles newlines in values,
                   2397: (
                   2398:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2399:     eval ac_val=\$$ac_var
                   2400:     case $ac_val in #(
                   2401:     *${as_nl}*)
                   2402:       case $ac_var in #(
                   2403:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2404: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2405:       esac
                   2406:       case $ac_var in #(
                   2407:       _ | IFS | as_nl) ;; #(
                   2408:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2409:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2410:       esac ;;
                   2411:     esac
                   2412:   done
                   2413:   (set) 2>&1 |
                   2414:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2415:     *${as_nl}ac_space=\ *)
                   2416:       sed -n \
                   2417:    "s/'\''/'\''\\\\'\'''\''/g;
                   2418:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2419:       ;; #(
                   2420:     *)
                   2421:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2422:       ;;
                   2423:     esac |
                   2424:     sort
                   2425: )
                   2426:     echo
1.1       bertrand 2427: 
1.36      bertrand 2428:     $as_echo "## ----------------- ##
1.15      bertrand 2429: ## Output variables. ##
1.36      bertrand 2430: ## ----------------- ##"
1.15      bertrand 2431:     echo
                   2432:     for ac_var in $ac_subst_vars
                   2433:     do
                   2434:       eval ac_val=\$$ac_var
                   2435:       case $ac_val in
                   2436:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2437:       esac
                   2438:       $as_echo "$ac_var='\''$ac_val'\''"
                   2439:     done | sort
                   2440:     echo
1.1       bertrand 2441: 
1.15      bertrand 2442:     if test -n "$ac_subst_files"; then
1.36      bertrand 2443:       $as_echo "## ------------------- ##
1.15      bertrand 2444: ## File substitutions. ##
1.36      bertrand 2445: ## ------------------- ##"
1.15      bertrand 2446:       echo
                   2447:       for ac_var in $ac_subst_files
                   2448:       do
                   2449:    eval ac_val=\$$ac_var
                   2450:    case $ac_val in
                   2451:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2452:    esac
                   2453:    $as_echo "$ac_var='\''$ac_val'\''"
                   2454:       done | sort
                   2455:       echo
1.14      bertrand 2456:     fi
                   2457: 
1.15      bertrand 2458:     if test -s confdefs.h; then
1.36      bertrand 2459:       $as_echo "## ----------- ##
1.15      bertrand 2460: ## confdefs.h. ##
1.36      bertrand 2461: ## ----------- ##"
1.15      bertrand 2462:       echo
                   2463:       cat confdefs.h
                   2464:       echo
                   2465:     fi
                   2466:     test "$ac_signal" != 0 &&
                   2467:       $as_echo "$as_me: caught signal $ac_signal"
                   2468:     $as_echo "$as_me: exit $exit_status"
                   2469:   } >&5
                   2470:   rm -f core *.core core.conftest.* &&
                   2471:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2472:     exit $exit_status
                   2473: ' 0
                   2474: for ac_signal in 1 2 13 15; do
                   2475:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2476: done
                   2477: ac_signal=0
1.14      bertrand 2478: 
1.15      bertrand 2479: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2480: rm -f -r conftest* confdefs.h
1.14      bertrand 2481: 
1.15      bertrand 2482: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2483: 
1.15      bertrand 2484: # Predefined preprocessor variables.
1.14      bertrand 2485: 
1.15      bertrand 2486: cat >>confdefs.h <<_ACEOF
                   2487: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2488: _ACEOF
1.14      bertrand 2489: 
1.15      bertrand 2490: cat >>confdefs.h <<_ACEOF
                   2491: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2492: _ACEOF
                   2493: 
1.15      bertrand 2494: cat >>confdefs.h <<_ACEOF
                   2495: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2496: _ACEOF
1.14      bertrand 2497: 
1.15      bertrand 2498: cat >>confdefs.h <<_ACEOF
                   2499: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2500: _ACEOF
                   2501: 
1.15      bertrand 2502: cat >>confdefs.h <<_ACEOF
                   2503: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2504: _ACEOF
1.14      bertrand 2505: 
1.15      bertrand 2506: cat >>confdefs.h <<_ACEOF
                   2507: #define PACKAGE_URL "$PACKAGE_URL"
                   2508: _ACEOF
1.14      bertrand 2509: 
                   2510: 
1.15      bertrand 2511: # Let the site file select an alternate cache file if it wants to.
                   2512: # Prefer an explicitly selected file to automatically selected ones.
                   2513: ac_site_file1=NONE
                   2514: ac_site_file2=NONE
                   2515: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2516:   # We do not want a PATH search for config.site.
                   2517:   case $CONFIG_SITE in #((
                   2518:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2519:     */*) ac_site_file1=$CONFIG_SITE;;
                   2520:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2521:   esac
1.15      bertrand 2522: elif test "x$prefix" != xNONE; then
                   2523:   ac_site_file1=$prefix/share/config.site
                   2524:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2525: else
1.15      bertrand 2526:   ac_site_file1=$ac_default_prefix/share/config.site
                   2527:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2528: fi
1.15      bertrand 2529: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2530: do
                   2531:   test "x$ac_site_file" = xNONE && continue
                   2532:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2533:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2534: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2535:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2536:     . "$ac_site_file" \
                   2537:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2538: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2539: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2540: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2541:   fi
                   2542: done
1.14      bertrand 2543: 
1.15      bertrand 2544: if test -r "$cache_file"; then
                   2545:   # Some versions of bash will fail to source /dev/null (special files
                   2546:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2547:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2548:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2549: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2550:     case $cache_file in
                   2551:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2552:       *)                      . "./$cache_file";;
                   2553:     esac
                   2554:   fi
1.14      bertrand 2555: else
1.15      bertrand 2556:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2557: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2558:   >$cache_file
1.14      bertrand 2559: fi
                   2560: 
1.15      bertrand 2561: # Check that the precious variables saved in the cache have kept the same
                   2562: # value.
                   2563: ac_cache_corrupted=false
                   2564: for ac_var in $ac_precious_vars; do
                   2565:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2566:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2567:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2568:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2569:   case $ac_old_set,$ac_new_set in
                   2570:     set,)
                   2571:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2572: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2573:       ac_cache_corrupted=: ;;
                   2574:     ,set)
                   2575:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2576: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2577:       ac_cache_corrupted=: ;;
                   2578:     ,);;
                   2579:     *)
                   2580:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2581:    # differences in whitespace do not lead to failure.
                   2582:    ac_old_val_w=`echo x $ac_old_val`
                   2583:    ac_new_val_w=`echo x $ac_new_val`
                   2584:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2585:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2586: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2587:      ac_cache_corrupted=:
                   2588:    else
                   2589:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2590: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2591:      eval $ac_var=\$ac_old_val
                   2592:    fi
                   2593:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2594: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2595:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2596: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2597:       fi;;
                   2598:   esac
                   2599:   # Pass precious variables to config.status.
                   2600:   if test "$ac_new_set" = set; then
                   2601:     case $ac_new_val in
                   2602:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2603:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2604:     esac
                   2605:     case " $ac_configure_args " in
                   2606:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2607:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2608:     esac
1.14      bertrand 2609:   fi
                   2610: done
1.15      bertrand 2611: if $ac_cache_corrupted; then
                   2612:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2613: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2614:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2615: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2616:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2617: fi
                   2618: ## -------------------- ##
                   2619: ## Main body of script. ##
                   2620: ## -------------------- ##
1.14      bertrand 2621: 
1.15      bertrand 2622: ac_ext=c
                   2623: ac_cpp='$CPP $CPPFLAGS'
                   2624: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2625: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2626: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2627: 
                   2628: 
1.15      bertrand 2629: ac_aux_dir=
                   2630: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2631:   if test -f "$ac_dir/install-sh"; then
                   2632:     ac_aux_dir=$ac_dir
                   2633:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2634:     break
                   2635:   elif test -f "$ac_dir/install.sh"; then
                   2636:     ac_aux_dir=$ac_dir
                   2637:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2638:     break
                   2639:   elif test -f "$ac_dir/shtool"; then
                   2640:     ac_aux_dir=$ac_dir
                   2641:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2642:     break
                   2643:   fi
1.14      bertrand 2644: done
1.15      bertrand 2645: if test -z "$ac_aux_dir"; then
1.36      bertrand 2646:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2647: fi
1.14      bertrand 2648: 
1.15      bertrand 2649: # These three variables are undocumented and unsupported,
                   2650: # and are intended to be withdrawn in a future Autoconf release.
                   2651: # They can cause serious problems if a builder's source tree is in a directory
                   2652: # whose full name contains unusual characters.
                   2653: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2654: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2655: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2656: 
                   2657: 
1.15      bertrand 2658: # Make sure we can run config.sub.
                   2659: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2660:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2661: 
1.15      bertrand 2662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2663: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2664: if ${ac_cv_build+:} false; then :
1.15      bertrand 2665:   $as_echo_n "(cached) " >&6
1.14      bertrand 2666: else
1.15      bertrand 2667:   ac_build_alias=$build_alias
                   2668: test "x$ac_build_alias" = x &&
                   2669:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2670: test "x$ac_build_alias" = x &&
1.36      bertrand 2671:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2672: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2673:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2674: 
                   2675: fi
1.15      bertrand 2676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2677: $as_echo "$ac_cv_build" >&6; }
                   2678: case $ac_cv_build in
                   2679: *-*-*) ;;
1.57      bertrand 2680: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2681: esac
                   2682: build=$ac_cv_build
                   2683: ac_save_IFS=$IFS; IFS='-'
                   2684: set x $ac_cv_build
                   2685: shift
                   2686: build_cpu=$1
                   2687: build_vendor=$2
                   2688: shift; shift
                   2689: # Remember, the first character of IFS is used to create $*,
                   2690: # except with old shells:
                   2691: build_os=$*
                   2692: IFS=$ac_save_IFS
                   2693: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2694: 
                   2695: 
1.15      bertrand 2696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2697: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2698: if ${ac_cv_host+:} false; then :
1.15      bertrand 2699:   $as_echo_n "(cached) " >&6
1.14      bertrand 2700: else
1.15      bertrand 2701:   if test "x$host_alias" = x; then
                   2702:   ac_cv_host=$ac_cv_build
1.14      bertrand 2703: else
1.15      bertrand 2704:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2705:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2706: fi
                   2707: 
                   2708: fi
1.15      bertrand 2709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2710: $as_echo "$ac_cv_host" >&6; }
                   2711: case $ac_cv_host in
                   2712: *-*-*) ;;
1.57      bertrand 2713: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2714: esac
                   2715: host=$ac_cv_host
                   2716: ac_save_IFS=$IFS; IFS='-'
                   2717: set x $ac_cv_host
                   2718: shift
                   2719: host_cpu=$1
                   2720: host_vendor=$2
                   2721: shift; shift
                   2722: # Remember, the first character of IFS is used to create $*,
                   2723: # except with old shells:
                   2724: host_os=$*
                   2725: IFS=$ac_save_IFS
                   2726: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2727: 
                   2728: 
1.15      bertrand 2729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2730: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2731: if ${ac_cv_target+:} false; then :
1.15      bertrand 2732:   $as_echo_n "(cached) " >&6
                   2733: else
                   2734:   if test "x$target_alias" = x; then
                   2735:   ac_cv_target=$ac_cv_host
1.14      bertrand 2736: else
1.15      bertrand 2737:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2738:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2739: fi
1.14      bertrand 2740: 
                   2741: fi
1.15      bertrand 2742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2743: $as_echo "$ac_cv_target" >&6; }
                   2744: case $ac_cv_target in
                   2745: *-*-*) ;;
1.57      bertrand 2746: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2747: esac
                   2748: target=$ac_cv_target
                   2749: ac_save_IFS=$IFS; IFS='-'
                   2750: set x $ac_cv_target
                   2751: shift
                   2752: target_cpu=$1
                   2753: target_vendor=$2
                   2754: shift; shift
                   2755: # Remember, the first character of IFS is used to create $*,
                   2756: # except with old shells:
                   2757: target_os=$*
                   2758: IFS=$ac_save_IFS
                   2759: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2760: 
1.14      bertrand 2761: 
1.15      bertrand 2762: # The aliases save the names the user supplied, while $host etc.
                   2763: # will get canonicalized.
                   2764: test -n "$target_alias" &&
                   2765:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2766:     NONENONEs,x,x, &&
                   2767:   program_prefix=${target_alias}-
1.1       bertrand 2768: 
1.15      bertrand 2769: am__api_version='1.11'
1.1       bertrand 2770: 
1.14      bertrand 2771: # Find a good install program.  We prefer a C program (faster),
                   2772: # so one script is as good as another.  But avoid the broken or
                   2773: # incompatible versions:
                   2774: # SysV /etc/install, /usr/sbin/install
                   2775: # SunOS /usr/etc/install
                   2776: # IRIX /sbin/install
                   2777: # AIX /bin/install
                   2778: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2779: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2780: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2781: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2782: # OS/2's system install, which has a completely different semantic
                   2783: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2784: # Reject install programs that cannot install multiple files.
                   2785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2786: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2787: if test -z "$INSTALL"; then
1.57      bertrand 2788: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2789:   $as_echo_n "(cached) " >&6
1.14      bertrand 2790: else
                   2791:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2792: for as_dir in $PATH
                   2793: do
                   2794:   IFS=$as_save_IFS
                   2795:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2796:     # Account for people who put trailing slashes in PATH elements.
                   2797: case $as_dir/ in #((
                   2798:   ./ | .// | /[cC]/* | \
1.14      bertrand 2799:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2800:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2801:   /usr/ucb/* ) ;;
                   2802:   *)
                   2803:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2804:     # Don't use installbsd from OSF since it installs stuff as root
                   2805:     # by default.
                   2806:     for ac_prog in ginstall scoinst install; do
                   2807:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2808:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2809:      if test $ac_prog = install &&
                   2810:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2811:        # AIX install.  It has an incompatible calling convention.
                   2812:        :
                   2813:      elif test $ac_prog = install &&
                   2814:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2815:        # program-specific install script used by HP pwplus--don't use.
                   2816:        :
                   2817:      else
1.15      bertrand 2818:        rm -rf conftest.one conftest.two conftest.dir
                   2819:        echo one > conftest.one
                   2820:        echo two > conftest.two
                   2821:        mkdir conftest.dir
                   2822:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2823:          test -s conftest.one && test -s conftest.two &&
                   2824:          test -s conftest.dir/conftest.one &&
                   2825:          test -s conftest.dir/conftest.two
                   2826:        then
                   2827:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2828:          break 3
                   2829:        fi
1.14      bertrand 2830:      fi
                   2831:    fi
                   2832:       done
                   2833:     done
                   2834:     ;;
                   2835: esac
1.15      bertrand 2836: 
                   2837:   done
1.14      bertrand 2838: IFS=$as_save_IFS
1.1       bertrand 2839: 
1.15      bertrand 2840: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2841: 
1.14      bertrand 2842: fi
                   2843:   if test "${ac_cv_path_install+set}" = set; then
                   2844:     INSTALL=$ac_cv_path_install
                   2845:   else
                   2846:     # As a last resort, use the slow shell script.  Don't cache a
                   2847:     # value for INSTALL within a source directory, because that will
                   2848:     # break other packages using the cache if that directory is
                   2849:     # removed, or if the value is a relative name.
                   2850:     INSTALL=$ac_install_sh
                   2851:   fi
                   2852: fi
1.15      bertrand 2853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2854: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2855: 
1.14      bertrand 2856: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2857: # It thinks the first close brace ends the variable substitution.
                   2858: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2859: 
1.14      bertrand 2860: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2861: 
1.14      bertrand 2862: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2863: 
1.15      bertrand 2864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2865: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2866: # Just in case
                   2867: sleep 1
                   2868: echo timestamp > conftest.file
                   2869: # Reject unsafe characters in $srcdir or the absolute working directory
                   2870: # name.  Accept space and tab only in the latter.
                   2871: am_lf='
                   2872: '
                   2873: case `pwd` in
                   2874:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2875:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2876: esac
                   2877: case $srcdir in
                   2878:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2879:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2880: esac
                   2881: 
                   2882: # Do `set' in a subshell so we don't clobber the current shell's
                   2883: # arguments.  Must try -L first in case configure is actually a
                   2884: # symlink; some systems play weird games with the mod time of symlinks
                   2885: # (eg FreeBSD returns the mod time of the symlink's containing
                   2886: # directory).
                   2887: if (
                   2888:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2889:    if test "$*" = "X"; then
                   2890:       # -L didn't work.
                   2891:       set X `ls -t "$srcdir/configure" conftest.file`
                   2892:    fi
                   2893:    rm -f conftest.file
                   2894:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2895:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2896: 
                   2897:       # If neither matched, then we have a broken ls.  This can happen
                   2898:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2899:       # broken ls alias from the environment.  This has actually
                   2900:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2901:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2902: alias in your environment" "$LINENO" 5
                   2903:    fi
                   2904: 
                   2905:    test "$2" = conftest.file
                   2906:    )
                   2907: then
                   2908:    # Ok.
                   2909:    :
1.14      bertrand 2910: else
1.36      bertrand 2911:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2912: Check your system clock" "$LINENO" 5
1.14      bertrand 2913: fi
1.15      bertrand 2914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2915: $as_echo "yes" >&6; }
                   2916: test "$program_prefix" != NONE &&
                   2917:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2918: # Use a double $ so make ignores it.
                   2919: test "$program_suffix" != NONE &&
                   2920:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2921: # Double any \ or $.
                   2922: # By default was `s,x,x', remove it if useless.
                   2923: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2924: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2925: 
                   2926: # expand $ac_aux_dir to an absolute path
                   2927: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2928: 
1.15      bertrand 2929: if test x"${MISSING+set}" != xset; then
                   2930:   case $am_aux_dir in
                   2931:   *\ * | *\    *)
                   2932:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2933:   *)
1.15      bertrand 2934:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2935:   esac
1.14      bertrand 2936: fi
1.15      bertrand 2937: # Use eval to expand $SHELL
                   2938: if eval "$MISSING --run true"; then
                   2939:   am_missing_run="$MISSING --run "
1.14      bertrand 2940: else
1.15      bertrand 2941:   am_missing_run=
                   2942:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2943: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2944: fi
                   2945: 
                   2946: if test x"${install_sh}" != xset; then
                   2947:   case $am_aux_dir in
                   2948:   *\ * | *\    *)
                   2949:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2950:   *)
                   2951:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2952:   esac
1.14      bertrand 2953: fi
1.15      bertrand 2954: 
                   2955: # Installed binaries are usually stripped using `strip' when the user
                   2956: # run `make install-strip'.  However `strip' might not be the right
                   2957: # tool to use in cross-compilation environments, therefore Automake
                   2958: # will honor the `STRIP' environment variable to overrule this program.
                   2959: if test "$cross_compiling" != no; then
                   2960:   if test -n "$ac_tool_prefix"; then
                   2961:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2962: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2964: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2965: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2966:   $as_echo_n "(cached) " >&6
1.14      bertrand 2967: else
1.15      bertrand 2968:   if test -n "$STRIP"; then
                   2969:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2970: else
                   2971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2972: for as_dir in $PATH
                   2973: do
                   2974:   IFS=$as_save_IFS
                   2975:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2976:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2977:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2978:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2979:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2980:     break 2
                   2981:   fi
                   2982: done
1.15      bertrand 2983:   done
1.14      bertrand 2984: IFS=$as_save_IFS
1.1       bertrand 2985: 
1.14      bertrand 2986: fi
                   2987: fi
1.15      bertrand 2988: STRIP=$ac_cv_prog_STRIP
                   2989: if test -n "$STRIP"; then
                   2990:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2991: $as_echo "$STRIP" >&6; }
1.14      bertrand 2992: else
1.15      bertrand 2993:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2994: $as_echo "no" >&6; }
1.14      bertrand 2995: fi
1.1       bertrand 2996: 
                   2997: 
1.14      bertrand 2998: fi
1.15      bertrand 2999: if test -z "$ac_cv_prog_STRIP"; then
                   3000:   ac_ct_STRIP=$STRIP
                   3001:   # Extract the first word of "strip", so it can be a program name with args.
                   3002: set dummy strip; ac_word=$2
                   3003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3004: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3005: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3006:   $as_echo_n "(cached) " >&6
1.14      bertrand 3007: else
1.15      bertrand 3008:   if test -n "$ac_ct_STRIP"; then
                   3009:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3010: else
1.14      bertrand 3011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3012: for as_dir in $PATH
1.1       bertrand 3013: do
1.14      bertrand 3014:   IFS=$as_save_IFS
                   3015:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3016:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3017:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3018:     ac_cv_prog_ac_ct_STRIP="strip"
                   3019:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3020:     break 2
1.1       bertrand 3021:   fi
                   3022: done
1.15      bertrand 3023:   done
1.14      bertrand 3024: IFS=$as_save_IFS
1.1       bertrand 3025: 
1.14      bertrand 3026: fi
                   3027: fi
1.15      bertrand 3028: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3029: if test -n "$ac_ct_STRIP"; then
                   3030:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3031: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3032: else
1.15      bertrand 3033:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3034: $as_echo "no" >&6; }
1.1       bertrand 3035: fi
                   3036: 
1.15      bertrand 3037:   if test "x$ac_ct_STRIP" = x; then
                   3038:     STRIP=":"
1.14      bertrand 3039:   else
                   3040:     case $cross_compiling:$ac_tool_warned in
                   3041: yes:)
1.15      bertrand 3042: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3043: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3044: ac_tool_warned=yes ;;
                   3045: esac
1.15      bertrand 3046:     STRIP=$ac_ct_STRIP
1.1       bertrand 3047:   fi
1.14      bertrand 3048: else
1.15      bertrand 3049:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3050: fi
                   3051: 
1.15      bertrand 3052: fi
                   3053: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3054: 
1.15      bertrand 3055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3056: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3057: if test -z "$MKDIR_P"; then
1.57      bertrand 3058:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3059:   $as_echo_n "(cached) " >&6
1.14      bertrand 3060: else
1.15      bertrand 3061:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3062: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3063: do
                   3064:   IFS=$as_save_IFS
                   3065:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3066:     for ac_prog in mkdir gmkdir; do
                   3067:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3068:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3069:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3070:         'mkdir (GNU coreutils) '* | \
                   3071:         'mkdir (coreutils) '* | \
                   3072:         'mkdir (fileutils) '4.1*)
                   3073:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3074:           break 3;;
                   3075:       esac
                   3076:     done
                   3077:        done
                   3078:   done
1.14      bertrand 3079: IFS=$as_save_IFS
1.1       bertrand 3080: 
                   3081: fi
1.15      bertrand 3082: 
                   3083:   test -d ./--version && rmdir ./--version
                   3084:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3085:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3086:   else
                   3087:     # As a last resort, use the slow shell script.  Don't cache a
                   3088:     # value for MKDIR_P within a source directory, because that will
                   3089:     # break other packages using the cache if that directory is
                   3090:     # removed, or if the value is a relative name.
                   3091:     MKDIR_P="$ac_install_sh -d"
                   3092:   fi
1.14      bertrand 3093: fi
1.15      bertrand 3094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3095: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3096: 
1.15      bertrand 3097: mkdir_p="$MKDIR_P"
                   3098: case $mkdir_p in
                   3099:   [\\/$]* | ?:[\\/]*) ;;
                   3100:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3101: esac
1.1       bertrand 3102: 
1.15      bertrand 3103: for ac_prog in gawk mawk nawk awk
                   3104: do
                   3105:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3106: set dummy $ac_prog; ac_word=$2
                   3107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3108: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3109: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3110:   $as_echo_n "(cached) " >&6
1.1       bertrand 3111: else
1.15      bertrand 3112:   if test -n "$AWK"; then
                   3113:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3114: else
1.14      bertrand 3115: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3116: for as_dir in $PATH
                   3117: do
                   3118:   IFS=$as_save_IFS
                   3119:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3120:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3121:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3122:     ac_cv_prog_AWK="$ac_prog"
                   3123:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3124:     break 2
                   3125:   fi
                   3126: done
1.15      bertrand 3127:   done
1.14      bertrand 3128: IFS=$as_save_IFS
                   3129: 
                   3130: fi
1.1       bertrand 3131: fi
1.15      bertrand 3132: AWK=$ac_cv_prog_AWK
                   3133: if test -n "$AWK"; then
                   3134:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3135: $as_echo "$AWK" >&6; }
1.14      bertrand 3136: else
1.15      bertrand 3137:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3138: $as_echo "no" >&6; }
1.1       bertrand 3139: fi
                   3140: 
                   3141: 
1.15      bertrand 3142:   test -n "$AWK" && break
                   3143: done
1.1       bertrand 3144: 
1.15      bertrand 3145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3146: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3147: set x ${MAKE-make}
                   3148: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3149: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3150:   $as_echo_n "(cached) " >&6
1.14      bertrand 3151: else
1.15      bertrand 3152:   cat >conftest.make <<\_ACEOF
                   3153: SHELL = /bin/sh
                   3154: all:
                   3155:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3156: _ACEOF
1.36      bertrand 3157: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3158: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3159:   *@@@%%%=?*=@@@%%%*)
                   3160:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3161:   *)
                   3162:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3163: esac
                   3164: rm -f conftest.make
                   3165: fi
                   3166: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3167:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3168: $as_echo "yes" >&6; }
                   3169:   SET_MAKE=
1.1       bertrand 3170: else
1.15      bertrand 3171:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3172: $as_echo "no" >&6; }
                   3173:   SET_MAKE="MAKE=${MAKE-make}"
                   3174: fi
1.1       bertrand 3175: 
1.15      bertrand 3176: rm -rf .tst 2>/dev/null
                   3177: mkdir .tst 2>/dev/null
                   3178: if test -d .tst; then
                   3179:   am__leading_dot=.
                   3180: else
                   3181:   am__leading_dot=_
1.14      bertrand 3182: fi
1.15      bertrand 3183: rmdir .tst 2>/dev/null
                   3184: 
                   3185: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3186:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3187:   # is not polluted with repeated "-I."
                   3188:   am__isrc=' -I$(srcdir)'
                   3189:   # test to see if srcdir already configured
                   3190:   if test -f $srcdir/config.status; then
1.36      bertrand 3191:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3192:   fi
1.1       bertrand 3193: fi
1.15      bertrand 3194: 
                   3195: # test whether we have cygpath
                   3196: if test -z "$CYGPATH_W"; then
                   3197:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3198:     CYGPATH_W='cygpath -w'
                   3199:   else
                   3200:     CYGPATH_W=echo
                   3201:   fi
1.1       bertrand 3202: fi
                   3203: 
                   3204: 
1.15      bertrand 3205: # Define the identity of the package.
                   3206:  PACKAGE='rpl'
1.73      bertrand 3207:  VERSION='4.1.3'
1.15      bertrand 3208: 
                   3209: 
                   3210: cat >>confdefs.h <<_ACEOF
                   3211: #define PACKAGE "$PACKAGE"
                   3212: _ACEOF
                   3213: 
                   3214: 
                   3215: cat >>confdefs.h <<_ACEOF
                   3216: #define VERSION "$VERSION"
                   3217: _ACEOF
                   3218: 
                   3219: # Some tools Automake needs.
                   3220: 
                   3221: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3222: 
                   3223: 
                   3224: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3225: 
                   3226: 
                   3227: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3228: 
                   3229: 
                   3230: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3231: 
                   3232: 
                   3233: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3234: 
                   3235: # We need awk for the "check" target.  The system "awk" is bad on
                   3236: # some platforms.
                   3237: # Always define AMTAR for backward compatibility.
                   3238: 
                   3239: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3240: 
                   3241: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3242: 
                   3243: 
                   3244: 
                   3245: 
1.1       bertrand 3246: 
                   3247: 
1.15      bertrand 3248: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3249: 
                   3250: 
1.54      bertrand 3251: NCURSES=ncurses-5.9
1.50      bertrand 3252: READLINE=readline-6.2
1.30      bertrand 3253: UNITS=units-1.88
1.57      bertrand 3254: GSL=gsl-1.15
1.72      bertrand 3255: GPP=gpp-3.0
1.52      bertrand 3256: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3257: FILE=file-5.03
                   3258: ICONV=libiconv-1.13.1
1.69      bertrand 3259: SQLITE=sqlite-3.7.7.1
1.74      bertrand 3260: OPENSSL=openssl-1.0.0e
1.76    ! bertrand 3261: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3262: 
1.75      bertrand 3263: GMP=gmp-5.0.2
1.55      bertrand 3264: MPFR=mpfr-3.0.1
1.56      bertrand 3265: NTL=ntl-5.5.2
                   3266: COCOA=CoCoALib-0.9943
1.76    ! bertrand 3267: PARI=pari-2.5.0
1.67      bertrand 3268: GIAC=giac-0.9.3
1.55      bertrand 3269: 
1.15      bertrand 3270: ac_ext=c
                   3271: ac_cpp='$CPP $CPPFLAGS'
                   3272: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3273: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3274: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3275: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3276:   for ac_prog in gcc
1.15      bertrand 3277:   do
                   3278:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3279: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3281: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3282: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3283:   $as_echo_n "(cached) " >&6
1.1       bertrand 3284: else
1.15      bertrand 3285:   if test -n "$CC"; then
                   3286:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3287: else
                   3288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3289: for as_dir in $PATH
                   3290: do
                   3291:   IFS=$as_save_IFS
                   3292:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3293:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3294:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3295:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3296:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3297:     break 2
                   3298:   fi
                   3299: done
1.15      bertrand 3300:   done
1.1       bertrand 3301: IFS=$as_save_IFS
                   3302: 
                   3303: fi
                   3304: fi
1.15      bertrand 3305: CC=$ac_cv_prog_CC
                   3306: if test -n "$CC"; then
                   3307:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3308: $as_echo "$CC" >&6; }
1.1       bertrand 3309: else
1.15      bertrand 3310:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3311: $as_echo "no" >&6; }
1.1       bertrand 3312: fi
                   3313: 
                   3314: 
1.15      bertrand 3315:     test -n "$CC" && break
                   3316:   done
                   3317: fi
                   3318: if test -z "$CC"; then
                   3319:   ac_ct_CC=$CC
1.23      bertrand 3320:   for ac_prog in gcc
1.15      bertrand 3321: do
                   3322:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3323: set dummy $ac_prog; ac_word=$2
                   3324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3325: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3326: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3327:   $as_echo_n "(cached) " >&6
1.1       bertrand 3328: else
1.15      bertrand 3329:   if test -n "$ac_ct_CC"; then
                   3330:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3331: else
                   3332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3333: for as_dir in $PATH
                   3334: do
                   3335:   IFS=$as_save_IFS
                   3336:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3337:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3338:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3339:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3340:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3341:     break 2
                   3342:   fi
                   3343: done
1.15      bertrand 3344:   done
1.1       bertrand 3345: IFS=$as_save_IFS
                   3346: 
                   3347: fi
                   3348: fi
1.15      bertrand 3349: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3350: if test -n "$ac_ct_CC"; then
                   3351:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3352: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3353: else
1.15      bertrand 3354:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3355: $as_echo "no" >&6; }
1.1       bertrand 3356: fi
                   3357: 
                   3358: 
1.15      bertrand 3359:   test -n "$ac_ct_CC" && break
                   3360: done
1.1       bertrand 3361: 
1.15      bertrand 3362:   if test "x$ac_ct_CC" = x; then
                   3363:     CC=""
                   3364:   else
                   3365:     case $cross_compiling:$ac_tool_warned in
                   3366: yes:)
                   3367: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3368: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3369: ac_tool_warned=yes ;;
                   3370: esac
                   3371:     CC=$ac_ct_CC
1.1       bertrand 3372:   fi
                   3373: fi
                   3374: 
                   3375: 
1.15      bertrand 3376: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3377: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3378: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3379: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3380: 
1.15      bertrand 3381: # Provide some information about the compiler.
                   3382: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3383: set X $ac_compile
                   3384: ac_compiler=$2
                   3385: for ac_option in --version -v -V -qversion; do
                   3386:   { { ac_try="$ac_compiler $ac_option >&5"
                   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_compiler $ac_option >&5") 2>conftest.err
                   3394:   ac_status=$?
                   3395:   if test -s conftest.err; then
                   3396:     sed '10a\
                   3397: ... rest of stderr output deleted ...
                   3398:          10q' conftest.err >conftest.er1
                   3399:     cat conftest.er1 >&5
1.1       bertrand 3400:   fi
1.15      bertrand 3401:   rm -f conftest.er1 conftest.err
                   3402:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3403:   test $ac_status = 0; }
1.1       bertrand 3404: done
                   3405: 
1.15      bertrand 3406: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3407: /* end confdefs.h.  */
                   3408: 
                   3409: int
                   3410: main ()
                   3411: {
1.14      bertrand 3412: 
1.15      bertrand 3413:   ;
                   3414:   return 0;
                   3415: }
                   3416: _ACEOF
                   3417: ac_clean_files_save=$ac_clean_files
                   3418: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3419: # Try to create an executable without -o first, disregard a.out.
                   3420: # It will help us diagnose broken compilers, and finding out an intuition
                   3421: # of exeext.
                   3422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3423: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3424: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3425: 
1.15      bertrand 3426: # The possible output files:
                   3427: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3428: 
1.15      bertrand 3429: ac_rmfiles=
                   3430: for ac_file in $ac_files
1.1       bertrand 3431: do
1.15      bertrand 3432:   case $ac_file in
                   3433:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3434:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3435:   esac
1.1       bertrand 3436: done
1.15      bertrand 3437: rm -f $ac_rmfiles
                   3438: 
                   3439: if { { ac_try="$ac_link_default"
                   3440: case "(($ac_try" in
                   3441:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3442:   *) ac_try_echo=$ac_try;;
                   3443: esac
                   3444: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3445: $as_echo "$ac_try_echo"; } >&5
                   3446:   (eval "$ac_link_default") 2>&5
                   3447:   ac_status=$?
                   3448:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3449:   test $ac_status = 0; }; then :
                   3450:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3451: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3452: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3453: # so that the user can short-circuit this test for compilers unknown to
                   3454: # Autoconf.
                   3455: for ac_file in $ac_files ''
                   3456: do
                   3457:   test -f "$ac_file" || continue
                   3458:   case $ac_file in
                   3459:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3460:    ;;
                   3461:     [ab].out )
                   3462:    # We found the default executable, but exeext='' is most
                   3463:    # certainly right.
                   3464:    break;;
                   3465:     *.* )
                   3466:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3467:    then :; else
                   3468:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3469:    fi
                   3470:    # We set ac_cv_exeext here because the later test for it is not
                   3471:    # safe: cross compilers may not add the suffix if given an `-o'
                   3472:    # argument, so we may need to know it at that point already.
                   3473:    # Even if this section looks crufty: it has the advantage of
                   3474:    # actually working.
                   3475:    break;;
                   3476:     * )
                   3477:    break;;
                   3478:   esac
1.14      bertrand 3479: done
1.15      bertrand 3480: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3481: 
1.14      bertrand 3482: else
1.15      bertrand 3483:   ac_file=''
1.1       bertrand 3484: fi
1.15      bertrand 3485: if test -z "$ac_file"; then :
                   3486:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3487: $as_echo "no" >&6; }
                   3488: $as_echo "$as_me: failed program was:" >&5
                   3489: sed 's/^/| /' conftest.$ac_ext >&5
                   3490: 
                   3491: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3492: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3493: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3494: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3495: else
                   3496:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3497: $as_echo "yes" >&6; }
                   3498: fi
                   3499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3500: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3502: $as_echo "$ac_file" >&6; }
                   3503: ac_exeext=$ac_cv_exeext
1.1       bertrand 3504: 
1.15      bertrand 3505: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3506: ac_clean_files=$ac_clean_files_save
                   3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3508: $as_echo_n "checking for suffix of executables... " >&6; }
                   3509: if { { ac_try="$ac_link"
                   3510: case "(($ac_try" in
                   3511:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3512:   *) ac_try_echo=$ac_try;;
                   3513: esac
                   3514: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3515: $as_echo "$ac_try_echo"; } >&5
                   3516:   (eval "$ac_link") 2>&5
                   3517:   ac_status=$?
                   3518:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3519:   test $ac_status = 0; }; then :
                   3520:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3521: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3522: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3523: # `rm'.
                   3524: for ac_file in conftest.exe conftest conftest.*; do
                   3525:   test -f "$ac_file" || continue
                   3526:   case $ac_file in
                   3527:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3528:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3529:      break;;
                   3530:     * ) break;;
                   3531:   esac
                   3532: done
1.14      bertrand 3533: else
1.15      bertrand 3534:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3535: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3536: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3537: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3538: fi
                   3539: rm -f conftest conftest$ac_cv_exeext
                   3540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3541: $as_echo "$ac_cv_exeext" >&6; }
                   3542: 
                   3543: rm -f conftest.$ac_ext
                   3544: EXEEXT=$ac_cv_exeext
                   3545: ac_exeext=$EXEEXT
                   3546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3547: /* end confdefs.h.  */
1.15      bertrand 3548: #include <stdio.h>
1.14      bertrand 3549: int
                   3550: main ()
                   3551: {
1.15      bertrand 3552: FILE *f = fopen ("conftest.out", "w");
                   3553:  return ferror (f) || fclose (f) != 0;
                   3554: 
1.14      bertrand 3555:   ;
                   3556:   return 0;
                   3557: }
                   3558: _ACEOF
1.15      bertrand 3559: ac_clean_files="$ac_clean_files conftest.out"
                   3560: # Check that the compiler produces executables we can run.  If not, either
                   3561: # the compiler is broken, or we cross compile.
                   3562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3563: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3564: if test "$cross_compiling" != yes; then
                   3565:   { { ac_try="$ac_link"
1.1       bertrand 3566: case "(($ac_try" in
                   3567:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3568:   *) ac_try_echo=$ac_try;;
                   3569: esac
1.15      bertrand 3570: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3571: $as_echo "$ac_try_echo"; } >&5
                   3572:   (eval "$ac_link") 2>&5
                   3573:   ac_status=$?
                   3574:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3575:   test $ac_status = 0; }
                   3576:   if { ac_try='./conftest$ac_cv_exeext'
                   3577:   { { case "(($ac_try" in
                   3578:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3579:   *) ac_try_echo=$ac_try;;
                   3580: esac
                   3581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3582: $as_echo "$ac_try_echo"; } >&5
                   3583:   (eval "$ac_try") 2>&5
1.1       bertrand 3584:   ac_status=$?
1.15      bertrand 3585:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3586:   test $ac_status = 0; }; }; then
                   3587:     cross_compiling=no
                   3588:   else
                   3589:     if test "$cross_compiling" = maybe; then
                   3590:    cross_compiling=yes
                   3591:     else
                   3592:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3593: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3594: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3595: If you meant to cross compile, use \`--host'.
1.57      bertrand 3596: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3597:     fi
                   3598:   fi
1.14      bertrand 3599: fi
1.15      bertrand 3600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3601: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3602: 
1.15      bertrand 3603: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3604: ac_clean_files=$ac_clean_files_save
                   3605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3606: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3607: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3608:   $as_echo_n "(cached) " >&6
1.14      bertrand 3609: else
1.15      bertrand 3610:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3611: /* end confdefs.h.  */
                   3612: 
                   3613: int
                   3614: main ()
                   3615: {
1.15      bertrand 3616: 
1.1       bertrand 3617:   ;
                   3618:   return 0;
                   3619: }
                   3620: _ACEOF
1.15      bertrand 3621: rm -f conftest.o conftest.obj
                   3622: if { { ac_try="$ac_compile"
1.1       bertrand 3623: case "(($ac_try" in
                   3624:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3625:   *) ac_try_echo=$ac_try;;
                   3626: esac
1.15      bertrand 3627: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3628: $as_echo "$ac_try_echo"; } >&5
                   3629:   (eval "$ac_compile") 2>&5
1.1       bertrand 3630:   ac_status=$?
1.15      bertrand 3631:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3632:   test $ac_status = 0; }; then :
                   3633:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3634:   test -f "$ac_file" || continue;
                   3635:   case $ac_file in
                   3636:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3637:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3638:        break;;
                   3639:   esac
                   3640: done
1.14      bertrand 3641: else
1.15      bertrand 3642:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3643: sed 's/^/| /' conftest.$ac_ext >&5
                   3644: 
1.15      bertrand 3645: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3646: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3647: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3648: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3649: fi
1.15      bertrand 3650: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3651: fi
                   3652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3653: $as_echo "$ac_cv_objext" >&6; }
                   3654: OBJEXT=$ac_cv_objext
                   3655: ac_objext=$OBJEXT
                   3656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3657: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3658: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3659:   $as_echo_n "(cached) " >&6
                   3660: else
                   3661:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3662: /* end confdefs.h.  */
                   3663: 
                   3664: int
                   3665: main ()
                   3666: {
                   3667: #ifndef __GNUC__
                   3668:        choke me
                   3669: #endif
1.14      bertrand 3670: 
1.15      bertrand 3671:   ;
                   3672:   return 0;
                   3673: }
                   3674: _ACEOF
                   3675: if ac_fn_c_try_compile "$LINENO"; then :
                   3676:   ac_compiler_gnu=yes
1.14      bertrand 3677: else
1.15      bertrand 3678:   ac_compiler_gnu=no
1.14      bertrand 3679: fi
1.15      bertrand 3680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3681: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3682: 
1.15      bertrand 3683: fi
                   3684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3685: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3686: if test $ac_compiler_gnu = yes; then
                   3687:   GCC=yes
1.14      bertrand 3688: else
1.15      bertrand 3689:   GCC=
1.14      bertrand 3690: fi
1.15      bertrand 3691: ac_test_CFLAGS=${CFLAGS+set}
                   3692: ac_save_CFLAGS=$CFLAGS
                   3693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3694: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3695: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3696:   $as_echo_n "(cached) " >&6
                   3697: else
                   3698:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3699:    ac_c_werror_flag=yes
                   3700:    ac_cv_prog_cc_g=no
                   3701:    CFLAGS="-g"
                   3702:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3703: /* end confdefs.h.  */
1.14      bertrand 3704: 
1.15      bertrand 3705: int
                   3706: main ()
                   3707: {
1.14      bertrand 3708: 
1.15      bertrand 3709:   ;
                   3710:   return 0;
                   3711: }
                   3712: _ACEOF
                   3713: if ac_fn_c_try_compile "$LINENO"; then :
                   3714:   ac_cv_prog_cc_g=yes
                   3715: else
                   3716:   CFLAGS=""
                   3717:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3718: /* end confdefs.h.  */
1.14      bertrand 3719: 
1.15      bertrand 3720: int
                   3721: main ()
                   3722: {
1.14      bertrand 3723: 
1.15      bertrand 3724:   ;
                   3725:   return 0;
                   3726: }
                   3727: _ACEOF
                   3728: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3729: 
1.15      bertrand 3730: else
                   3731:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3732:     CFLAGS="-g"
                   3733:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3734: /* end confdefs.h.  */
1.14      bertrand 3735: 
1.15      bertrand 3736: int
                   3737: main ()
                   3738: {
1.14      bertrand 3739: 
1.15      bertrand 3740:   ;
                   3741:   return 0;
                   3742: }
                   3743: _ACEOF
                   3744: if ac_fn_c_try_compile "$LINENO"; then :
                   3745:   ac_cv_prog_cc_g=yes
                   3746: fi
                   3747: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3748: fi
                   3749: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3750: fi
                   3751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3752:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3753: fi
                   3754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3755: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3756: if test "$ac_test_CFLAGS" = set; then
                   3757:   CFLAGS=$ac_save_CFLAGS
                   3758: elif test $ac_cv_prog_cc_g = yes; then
                   3759:   if test "$GCC" = yes; then
                   3760:     CFLAGS="-g -O2"
                   3761:   else
                   3762:     CFLAGS="-g"
                   3763:   fi
                   3764: else
                   3765:   if test "$GCC" = yes; then
                   3766:     CFLAGS="-O2"
                   3767:   else
                   3768:     CFLAGS=
                   3769:   fi
                   3770: fi
                   3771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3772: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3773: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3774:   $as_echo_n "(cached) " >&6
1.1       bertrand 3775: else
1.15      bertrand 3776:   ac_cv_prog_cc_c89=no
                   3777: ac_save_CC=$CC
                   3778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3779: /* end confdefs.h.  */
1.15      bertrand 3780: #include <stdarg.h>
                   3781: #include <stdio.h>
                   3782: #include <sys/types.h>
                   3783: #include <sys/stat.h>
                   3784: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3785: struct buf { int x; };
                   3786: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3787: static char *e (p, i)
                   3788:      char **p;
                   3789:      int i;
                   3790: {
                   3791:   return p[i];
                   3792: }
                   3793: static char *f (char * (*g) (char **, int), char **p, ...)
                   3794: {
                   3795:   char *s;
                   3796:   va_list v;
                   3797:   va_start (v,p);
                   3798:   s = g (p, va_arg (v,int));
                   3799:   va_end (v);
                   3800:   return s;
                   3801: }
                   3802: 
                   3803: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3804:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3805:    These don't provoke an error unfortunately, instead are silently treated
                   3806:    as 'x'.  The following induces an error, until -std is added to get
                   3807:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3808:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3809:    that's true only with -std.  */
                   3810: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3811: 
1.15      bertrand 3812: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3813:    inside strings and character constants.  */
                   3814: #define FOO(x) 'x'
                   3815: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3816: 
1.15      bertrand 3817: int test (int i, double x);
                   3818: struct s1 {int (*f) (int a);};
                   3819: struct s2 {int (*f) (double a);};
                   3820: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3821: int argc;
                   3822: char **argv;
1.14      bertrand 3823: int
                   3824: main ()
                   3825: {
1.15      bertrand 3826: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3827:   ;
                   3828:   return 0;
                   3829: }
                   3830: _ACEOF
1.15      bertrand 3831: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3832:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3833: do
                   3834:   CC="$ac_save_CC $ac_arg"
                   3835:   if ac_fn_c_try_compile "$LINENO"; then :
                   3836:   ac_cv_prog_cc_c89=$ac_arg
                   3837: fi
                   3838: rm -f core conftest.err conftest.$ac_objext
                   3839:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3840: done
                   3841: rm -f conftest.$ac_ext
                   3842: CC=$ac_save_CC
                   3843: 
                   3844: fi
                   3845: # AC_CACHE_VAL
                   3846: case "x$ac_cv_prog_cc_c89" in
                   3847:   x)
                   3848:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3849: $as_echo "none needed" >&6; } ;;
                   3850:   xno)
                   3851:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3852: $as_echo "unsupported" >&6; } ;;
                   3853:   *)
                   3854:     CC="$CC $ac_cv_prog_cc_c89"
                   3855:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3856: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3857: esac
1.15      bertrand 3858: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3859: 
                   3860: fi
                   3861: 
1.15      bertrand 3862: ac_ext=c
                   3863: ac_cpp='$CPP $CPPFLAGS'
                   3864: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3865: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3866: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3867: DEPDIR="${am__leading_dot}deps"
                   3868: 
                   3869: ac_config_commands="$ac_config_commands depfiles"
                   3870: 
                   3871: 
                   3872: am_make=${MAKE-make}
                   3873: cat > confinc << 'END'
                   3874: am__doit:
                   3875:    @echo this is the am__doit target
                   3876: .PHONY: am__doit
                   3877: END
                   3878: # If we don't find an include directive, just comment out the code.
                   3879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3880: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3881: am__include="#"
                   3882: am__quote=
                   3883: _am_result=none
                   3884: # First try GNU make style include.
                   3885: echo "include confinc" > confmf
                   3886: # Ignore all kinds of additional output from `make'.
                   3887: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3888: *the\ am__doit\ target*)
                   3889:   am__include=include
                   3890:   am__quote=
                   3891:   _am_result=GNU
                   3892:   ;;
                   3893: esac
                   3894: # Now try BSD make style include.
                   3895: if test "$am__include" = "#"; then
                   3896:    echo '.include "confinc"' > confmf
                   3897:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3898:    *the\ am__doit\ target*)
                   3899:      am__include=.include
                   3900:      am__quote="\""
                   3901:      _am_result=BSD
                   3902:      ;;
                   3903:    esac
1.14      bertrand 3904: fi
                   3905: 
                   3906: 
1.15      bertrand 3907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3908: $as_echo "$_am_result" >&6; }
                   3909: rm -f confinc confmf
                   3910: 
                   3911: # Check whether --enable-dependency-tracking was given.
                   3912: if test "${enable_dependency_tracking+set}" = set; then :
                   3913:   enableval=$enable_dependency_tracking;
                   3914: fi
                   3915: 
                   3916: if test "x$enable_dependency_tracking" != xno; then
                   3917:   am_depcomp="$ac_aux_dir/depcomp"
                   3918:   AMDEPBACKSLASH='\'
                   3919: fi
                   3920:  if test "x$enable_dependency_tracking" != xno; then
                   3921:   AMDEP_TRUE=
                   3922:   AMDEP_FALSE='#'
1.1       bertrand 3923: else
1.15      bertrand 3924:   AMDEP_TRUE='#'
                   3925:   AMDEP_FALSE=
1.14      bertrand 3926: fi
1.1       bertrand 3927: 
1.14      bertrand 3928: 
                   3929: 
1.15      bertrand 3930: depcc="$CC"   am_compiler_list=
1.14      bertrand 3931: 
1.15      bertrand 3932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3933: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3934: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3935:   $as_echo_n "(cached) " >&6
1.14      bertrand 3936: else
1.15      bertrand 3937:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3938:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3939:   # making bogus files that we don't know about and never remove.  For
                   3940:   # instance it was reported that on HP-UX the gcc test will end up
                   3941:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3942:   # in D'.
                   3943:   mkdir conftest.dir
                   3944:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3945:   # using a relative directory.
                   3946:   cp "$am_depcomp" conftest.dir
                   3947:   cd conftest.dir
                   3948:   # We will build objects and dependencies in a subdirectory because
                   3949:   # it helps to detect inapplicable dependency modes.  For instance
                   3950:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3951:   # side effect of compilation, but ICC will put the dependencies in
                   3952:   # the current directory while Tru64 will put them in the object
                   3953:   # directory.
                   3954:   mkdir sub
1.14      bertrand 3955: 
1.15      bertrand 3956:   am_cv_CC_dependencies_compiler_type=none
                   3957:   if test "$am_compiler_list" = ""; then
                   3958:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3959:   fi
                   3960:   am__universal=false
                   3961:   case " $depcc " in #(
                   3962:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3963:      esac
1.14      bertrand 3964: 
1.15      bertrand 3965:   for depmode in $am_compiler_list; do
                   3966:     # Setup a source with many dependencies, because some compilers
                   3967:     # like to wrap large dependency lists on column 80 (with \), and
                   3968:     # we should not choose a depcomp mode which is confused by this.
                   3969:     #
                   3970:     # We need to recreate these files for each test, as the compiler may
                   3971:     # overwrite some of them when testing with obscure command lines.
                   3972:     # This happens at least with the AIX C compiler.
                   3973:     : > sub/conftest.c
                   3974:     for i in 1 2 3 4 5 6; do
                   3975:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3976:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3977:       # Solaris 8's {/usr,}/bin/sh.
                   3978:       touch sub/conftst$i.h
                   3979:     done
                   3980:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3981: 
1.15      bertrand 3982:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3983:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3984:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3985:     # versions had trouble with output in subdirs
                   3986:     am__obj=sub/conftest.${OBJEXT-o}
                   3987:     am__minus_obj="-o $am__obj"
                   3988:     case $depmode in
                   3989:     gcc)
                   3990:       # This depmode causes a compiler race in universal mode.
                   3991:       test "$am__universal" = false || continue
                   3992:       ;;
                   3993:     nosideeffect)
                   3994:       # after this tag, mechanisms are not by side-effect, so they'll
                   3995:       # only be used when explicitly requested
                   3996:       if test "x$enable_dependency_tracking" = xyes; then
                   3997:    continue
                   3998:       else
                   3999:    break
                   4000:       fi
                   4001:       ;;
                   4002:     msvisualcpp | msvcmsys)
                   4003:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4004:       # not run yet.  These depmodes are late enough in the game, and
                   4005:       # so weak that their functioning should not be impacted.
                   4006:       am__obj=conftest.${OBJEXT-o}
                   4007:       am__minus_obj=
                   4008:       ;;
                   4009:     none) break ;;
                   4010:     esac
                   4011:     if depmode=$depmode \
                   4012:        source=sub/conftest.c object=$am__obj \
                   4013:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4014:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4015:          >/dev/null 2>conftest.err &&
                   4016:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4017:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4018:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4019:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4020:       # icc doesn't choke on unknown options, it will just issue warnings
                   4021:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4022:       # that says an option was ignored or not supported.
                   4023:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4024:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4025:       # The diagnosis changed in icc 8.0:
                   4026:       #   icc: Command line remark: option '-MP' not supported
                   4027:       if (grep 'ignoring option' conftest.err ||
                   4028:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4029:         am_cv_CC_dependencies_compiler_type=$depmode
                   4030:         break
                   4031:       fi
                   4032:     fi
                   4033:   done
1.14      bertrand 4034: 
1.15      bertrand 4035:   cd ..
                   4036:   rm -rf conftest.dir
1.14      bertrand 4037: else
1.15      bertrand 4038:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4039: fi
                   4040: 
1.15      bertrand 4041: fi
                   4042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4043: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4044: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4045: 
1.15      bertrand 4046:  if
                   4047:   test "x$enable_dependency_tracking" != xno \
                   4048:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4049:   am__fastdepCC_TRUE=
                   4050:   am__fastdepCC_FALSE='#'
1.1       bertrand 4051: else
1.15      bertrand 4052:   am__fastdepCC_TRUE='#'
                   4053:   am__fastdepCC_FALSE=
                   4054: fi
                   4055: 
1.1       bertrand 4056: 
                   4057: 
1.30      bertrand 4058: EXT_SQL=
                   4059: 
1.15      bertrand 4060: if test x"$CC" != x""; then
                   4061:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4062:            awk -F. '{ printf("%s", $1);}'`
                   4063:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4064:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4065:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4066:        OPTIMISATION_C=-O3
                   4067:    else
1.23      bertrand 4068:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4069:                then
1.15      bertrand 4070:            OPTIMISATION_C=-O3
                   4071:        else
1.23      bertrand 4072:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4073:                OPTIMISATION_C=-O2
                   4074:            else
1.36      bertrand 4075:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4076:            fi
1.15      bertrand 4077:        fi
                   4078:    fi
1.14      bertrand 4079: fi
                   4080: 
1.15      bertrand 4081: if test "x$CC" != xcc; then
                   4082:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4083: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4084: else
1.15      bertrand 4085:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4086: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4087: fi
1.15      bertrand 4088: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4089:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4090: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4091:   $as_echo_n "(cached) " >&6
1.1       bertrand 4092: else
1.15      bertrand 4093:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4094: /* end confdefs.h.  */
                   4095: 
                   4096: int
                   4097: main ()
                   4098: {
1.15      bertrand 4099: 
1.1       bertrand 4100:   ;
                   4101:   return 0;
                   4102: }
                   4103: _ACEOF
1.15      bertrand 4104: # Make sure it works both with $CC and with simple cc.
                   4105: # We do the test twice because some compilers refuse to overwrite an
                   4106: # existing .o file with -o, though they will create one.
                   4107: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4108: rm -f conftest2.*
                   4109: if { { case "(($ac_try" in
                   4110:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4111:   *) ac_try_echo=$ac_try;;
                   4112: esac
                   4113: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4114: $as_echo "$ac_try_echo"; } >&5
                   4115:   (eval "$ac_try") 2>&5
                   4116:   ac_status=$?
                   4117:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4118:   test $ac_status = 0; } &&
                   4119:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4120:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4121:   *) ac_try_echo=$ac_try;;
                   4122: esac
                   4123: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4124: $as_echo "$ac_try_echo"; } >&5
                   4125:   (eval "$ac_try") 2>&5
                   4126:   ac_status=$?
                   4127:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4128:   test $ac_status = 0; };
                   4129: then
                   4130:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4131:   if test "x$CC" != xcc; then
                   4132:     # Test first that cc exists at all.
                   4133:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4134:   { { case "(($ac_try" in
                   4135:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4136:   *) ac_try_echo=$ac_try;;
                   4137: esac
                   4138: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4139: $as_echo "$ac_try_echo"; } >&5
                   4140:   (eval "$ac_try") 2>&5
                   4141:   ac_status=$?
                   4142:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4143:   test $ac_status = 0; }; }; then
                   4144:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4145:       rm -f conftest2.*
                   4146:       if { { case "(($ac_try" in
                   4147:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4148:   *) ac_try_echo=$ac_try;;
                   4149: esac
                   4150: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4151: $as_echo "$ac_try_echo"; } >&5
                   4152:   (eval "$ac_try") 2>&5
                   4153:   ac_status=$?
                   4154:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4155:   test $ac_status = 0; } &&
                   4156:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4157:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4158:   *) ac_try_echo=$ac_try;;
                   4159: esac
1.15      bertrand 4160: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4161: $as_echo "$ac_try_echo"; } >&5
                   4162:   (eval "$ac_try") 2>&5
1.14      bertrand 4163:   ac_status=$?
1.15      bertrand 4164:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4165:   test $ac_status = 0; };
                   4166:       then
                   4167:    # cc works too.
                   4168:    :
                   4169:       else
                   4170:    # cc exists but doesn't like -o.
                   4171:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4172:       fi
                   4173:     fi
                   4174:   fi
1.1       bertrand 4175: else
1.15      bertrand 4176:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4177: fi
                   4178: rm -f core conftest*
1.14      bertrand 4179: 
1.1       bertrand 4180: fi
1.15      bertrand 4181: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4182:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4183: $as_echo "yes" >&6; }
                   4184: else
                   4185:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4186: $as_echo "no" >&6; }
                   4187: 
                   4188: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4189: 
                   4190: fi
1.15      bertrand 4191: 
                   4192: # FIXME: we rely on the cache variable name because
                   4193: # there is no other way.
                   4194: set dummy $CC
                   4195: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4196: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4197: if test "$am_t" != yes; then
                   4198:    # Losing compiler, so override with the script.
                   4199:    # FIXME: It is wrong to rewrite CC.
                   4200:    # But if we don't then we get into trouble of one sort or another.
                   4201:    # A longer-term fix would be to have automake use am__CC in this case,
                   4202:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4203:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4204: fi
1.14      bertrand 4205: 
                   4206: 
1.15      bertrand 4207: 
                   4208: if test "$GCC" != yes; then
1.36      bertrand 4209:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4210: fi
                   4211: 
                   4212: ac_ext=cpp
                   4213: ac_cpp='$CXXCPP $CPPFLAGS'
                   4214: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4215: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4216: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4217: if test -z "$CXX"; then
                   4218:   if test -n "$CCC"; then
                   4219:     CXX=$CCC
                   4220:   else
                   4221:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4222:   for ac_prog in g++
1.15      bertrand 4223:   do
                   4224:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4225: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4227: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4228: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4229:   $as_echo_n "(cached) " >&6
1.1       bertrand 4230: else
1.15      bertrand 4231:   if test -n "$CXX"; then
                   4232:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4233: else
1.15      bertrand 4234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4235: for as_dir in $PATH
                   4236: do
                   4237:   IFS=$as_save_IFS
                   4238:   test -z "$as_dir" && as_dir=.
                   4239:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4240:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4241:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4242:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4243:     break 2
                   4244:   fi
                   4245: done
                   4246:   done
                   4247: IFS=$as_save_IFS
1.14      bertrand 4248: 
                   4249: fi
                   4250: fi
1.15      bertrand 4251: CXX=$ac_cv_prog_CXX
                   4252: if test -n "$CXX"; then
                   4253:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4254: $as_echo "$CXX" >&6; }
1.14      bertrand 4255: else
1.15      bertrand 4256:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4257: $as_echo "no" >&6; }
1.14      bertrand 4258: fi
                   4259: 
                   4260: 
1.15      bertrand 4261:     test -n "$CXX" && break
                   4262:   done
                   4263: fi
                   4264: if test -z "$CXX"; then
                   4265:   ac_ct_CXX=$CXX
1.23      bertrand 4266:   for ac_prog in g++
1.15      bertrand 4267: do
                   4268:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4269: set dummy $ac_prog; ac_word=$2
                   4270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4271: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4272: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4273:   $as_echo_n "(cached) " >&6
                   4274: else
                   4275:   if test -n "$ac_ct_CXX"; then
                   4276:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4277: else
                   4278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4279: for as_dir in $PATH
                   4280: do
                   4281:   IFS=$as_save_IFS
                   4282:   test -z "$as_dir" && as_dir=.
                   4283:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4284:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4285:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4286:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4287:     break 2
                   4288:   fi
                   4289: done
                   4290:   done
                   4291: IFS=$as_save_IFS
1.14      bertrand 4292: 
1.15      bertrand 4293: fi
                   4294: fi
                   4295: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4296: if test -n "$ac_ct_CXX"; then
                   4297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4298: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4299: else
1.15      bertrand 4300:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4301: $as_echo "no" >&6; }
1.14      bertrand 4302: fi
                   4303: 
                   4304: 
1.15      bertrand 4305:   test -n "$ac_ct_CXX" && break
                   4306: done
1.14      bertrand 4307: 
1.15      bertrand 4308:   if test "x$ac_ct_CXX" = x; then
                   4309:     CXX="g++"
                   4310:   else
                   4311:     case $cross_compiling:$ac_tool_warned in
                   4312: yes:)
                   4313: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4314: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4315: ac_tool_warned=yes ;;
                   4316: esac
                   4317:     CXX=$ac_ct_CXX
                   4318:   fi
                   4319: fi
1.1       bertrand 4320: 
1.15      bertrand 4321:   fi
                   4322: fi
                   4323: # Provide some information about the compiler.
                   4324: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4325: set X $ac_compile
                   4326: ac_compiler=$2
                   4327: for ac_option in --version -v -V -qversion; do
                   4328:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4329: case "(($ac_try" in
                   4330:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4331:   *) ac_try_echo=$ac_try;;
                   4332: esac
1.15      bertrand 4333: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4334: $as_echo "$ac_try_echo"; } >&5
                   4335:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4336:   ac_status=$?
1.15      bertrand 4337:   if test -s conftest.err; then
                   4338:     sed '10a\
                   4339: ... rest of stderr output deleted ...
                   4340:          10q' conftest.err >conftest.er1
                   4341:     cat conftest.er1 >&5
                   4342:   fi
                   4343:   rm -f conftest.er1 conftest.err
                   4344:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4345:   test $ac_status = 0; }
                   4346: done
                   4347: 
                   4348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4349: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4350: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4351:   $as_echo_n "(cached) " >&6
1.14      bertrand 4352: else
1.15      bertrand 4353:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4354: /* end confdefs.h.  */
1.1       bertrand 4355: 
                   4356: int
                   4357: main ()
                   4358: {
1.15      bertrand 4359: #ifndef __GNUC__
                   4360:        choke me
                   4361: #endif
1.1       bertrand 4362: 
                   4363:   ;
                   4364:   return 0;
                   4365: }
                   4366: _ACEOF
1.15      bertrand 4367: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4368:   ac_compiler_gnu=yes
1.1       bertrand 4369: else
1.15      bertrand 4370:   ac_compiler_gnu=no
1.1       bertrand 4371: fi
1.14      bertrand 4372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4373: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4374: 
1.15      bertrand 4375: fi
                   4376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4377: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4378: if test $ac_compiler_gnu = yes; then
                   4379:   GXX=yes
                   4380: else
                   4381:   GXX=
                   4382: fi
                   4383: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4384: ac_save_CXXFLAGS=$CXXFLAGS
                   4385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4386: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4387: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4388:   $as_echo_n "(cached) " >&6
                   4389: else
                   4390:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4391:    ac_cxx_werror_flag=yes
                   4392:    ac_cv_prog_cxx_g=no
                   4393:    CXXFLAGS="-g"
                   4394:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4395: /* end confdefs.h.  */
1.15      bertrand 4396: 
1.1       bertrand 4397: int
                   4398: main ()
                   4399: {
1.14      bertrand 4400: 
1.1       bertrand 4401:   ;
                   4402:   return 0;
                   4403: }
                   4404: _ACEOF
1.15      bertrand 4405: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4406:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4407: else
1.15      bertrand 4408:   CXXFLAGS=""
                   4409:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4410: /* end confdefs.h.  */
1.1       bertrand 4411: 
1.14      bertrand 4412: int
                   4413: main ()
                   4414: {
1.1       bertrand 4415: 
1.14      bertrand 4416:   ;
                   4417:   return 0;
                   4418: }
                   4419: _ACEOF
1.15      bertrand 4420: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4421: 
                   4422: else
1.15      bertrand 4423:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4424:     CXXFLAGS="-g"
                   4425:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4426: /* end confdefs.h.  */
1.1       bertrand 4427: 
1.14      bertrand 4428: int
                   4429: main ()
                   4430: {
1.1       bertrand 4431: 
1.14      bertrand 4432:   ;
                   4433:   return 0;
                   4434: }
                   4435: _ACEOF
1.15      bertrand 4436: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4437:   ac_cv_prog_cxx_g=yes
                   4438: fi
                   4439: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4440: fi
                   4441: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4442: fi
                   4443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4444:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4445: fi
                   4446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4447: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4448: if test "$ac_test_CXXFLAGS" = set; then
                   4449:   CXXFLAGS=$ac_save_CXXFLAGS
                   4450: elif test $ac_cv_prog_cxx_g = yes; then
                   4451:   if test "$GXX" = yes; then
                   4452:     CXXFLAGS="-g -O2"
                   4453:   else
                   4454:     CXXFLAGS="-g"
                   4455:   fi
                   4456: else
                   4457:   if test "$GXX" = yes; then
                   4458:     CXXFLAGS="-O2"
                   4459:   else
                   4460:     CXXFLAGS=
                   4461:   fi
                   4462: fi
                   4463: ac_ext=c
                   4464: ac_cpp='$CPP $CPPFLAGS'
                   4465: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4466: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4467: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4468: 
                   4469: depcc="$CXX"  am_compiler_list=
                   4470: 
                   4471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4472: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4473: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4474:   $as_echo_n "(cached) " >&6
                   4475: else
                   4476:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4477:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4478:   # making bogus files that we don't know about and never remove.  For
                   4479:   # instance it was reported that on HP-UX the gcc test will end up
                   4480:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4481:   # in D'.
                   4482:   mkdir conftest.dir
                   4483:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4484:   # using a relative directory.
                   4485:   cp "$am_depcomp" conftest.dir
                   4486:   cd conftest.dir
                   4487:   # We will build objects and dependencies in a subdirectory because
                   4488:   # it helps to detect inapplicable dependency modes.  For instance
                   4489:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4490:   # side effect of compilation, but ICC will put the dependencies in
                   4491:   # the current directory while Tru64 will put them in the object
                   4492:   # directory.
                   4493:   mkdir sub
                   4494: 
                   4495:   am_cv_CXX_dependencies_compiler_type=none
                   4496:   if test "$am_compiler_list" = ""; then
                   4497:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4498:   fi
                   4499:   am__universal=false
                   4500:   case " $depcc " in #(
                   4501:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4502:      esac
                   4503: 
                   4504:   for depmode in $am_compiler_list; do
                   4505:     # Setup a source with many dependencies, because some compilers
                   4506:     # like to wrap large dependency lists on column 80 (with \), and
                   4507:     # we should not choose a depcomp mode which is confused by this.
                   4508:     #
                   4509:     # We need to recreate these files for each test, as the compiler may
                   4510:     # overwrite some of them when testing with obscure command lines.
                   4511:     # This happens at least with the AIX C compiler.
                   4512:     : > sub/conftest.c
                   4513:     for i in 1 2 3 4 5 6; do
                   4514:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4515:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4516:       # Solaris 8's {/usr,}/bin/sh.
                   4517:       touch sub/conftst$i.h
                   4518:     done
                   4519:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4520: 
                   4521:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4522:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4523:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4524:     # versions had trouble with output in subdirs
                   4525:     am__obj=sub/conftest.${OBJEXT-o}
                   4526:     am__minus_obj="-o $am__obj"
                   4527:     case $depmode in
                   4528:     gcc)
                   4529:       # This depmode causes a compiler race in universal mode.
                   4530:       test "$am__universal" = false || continue
                   4531:       ;;
                   4532:     nosideeffect)
                   4533:       # after this tag, mechanisms are not by side-effect, so they'll
                   4534:       # only be used when explicitly requested
                   4535:       if test "x$enable_dependency_tracking" = xyes; then
                   4536:    continue
                   4537:       else
                   4538:    break
                   4539:       fi
                   4540:       ;;
                   4541:     msvisualcpp | msvcmsys)
                   4542:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4543:       # not run yet.  These depmodes are late enough in the game, and
                   4544:       # so weak that their functioning should not be impacted.
                   4545:       am__obj=conftest.${OBJEXT-o}
                   4546:       am__minus_obj=
                   4547:       ;;
                   4548:     none) break ;;
                   4549:     esac
                   4550:     if depmode=$depmode \
                   4551:        source=sub/conftest.c object=$am__obj \
                   4552:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4553:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4554:          >/dev/null 2>conftest.err &&
                   4555:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4556:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4557:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4558:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4559:       # icc doesn't choke on unknown options, it will just issue warnings
                   4560:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4561:       # that says an option was ignored or not supported.
                   4562:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4563:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4564:       # The diagnosis changed in icc 8.0:
                   4565:       #   icc: Command line remark: option '-MP' not supported
                   4566:       if (grep 'ignoring option' conftest.err ||
                   4567:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4568:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4569:         break
                   4570:       fi
                   4571:     fi
                   4572:   done
                   4573: 
                   4574:   cd ..
                   4575:   rm -rf conftest.dir
                   4576: else
                   4577:   am_cv_CXX_dependencies_compiler_type=none
                   4578: fi
                   4579: 
                   4580: fi
                   4581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4582: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4583: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4584: 
                   4585:  if
                   4586:   test "x$enable_dependency_tracking" != xno \
                   4587:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4588:   am__fastdepCXX_TRUE=
                   4589:   am__fastdepCXX_FALSE='#'
                   4590: else
                   4591:   am__fastdepCXX_TRUE='#'
                   4592:   am__fastdepCXX_FALSE=
                   4593: fi
                   4594: 
                   4595: 
                   4596: 
1.69      bertrand 4597: if test "$CXX" != "g++"; then
1.36      bertrand 4598:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4599: fi
                   4600: 
1.69      bertrand 4601: if test x"$CXX" != x""; then
                   4602:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4603:            awk -F. '{ printf("%s", $1);}'`
                   4604:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4605:            awk -F. '{ printf("%s", $2);}'`
                   4606:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4607:        OPTIMISATION_GXX=-O3
                   4608:    else
                   4609:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4610:            OPTIMISATION_GXX=-O3
                   4611:        else
                   4612:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4613:                OPTIMISATION_GXX=-O2
                   4614:            else
                   4615:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4616:            fi
                   4617:        fi
                   4618:    fi
                   4619: fi
                   4620: 
1.15      bertrand 4621: ac_ext=f
                   4622: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4623: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4624: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4625: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4626:   for ac_prog in gfortran
1.15      bertrand 4627:   do
                   4628:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4629: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4631: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4632: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4633:   $as_echo_n "(cached) " >&6
                   4634: else
                   4635:   if test -n "$F77"; then
                   4636:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4637: else
                   4638: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4639: for as_dir in $PATH
                   4640: do
                   4641:   IFS=$as_save_IFS
                   4642:   test -z "$as_dir" && as_dir=.
                   4643:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4644:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4645:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4646:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4647:     break 2
                   4648:   fi
                   4649: done
                   4650:   done
                   4651: IFS=$as_save_IFS
                   4652: 
                   4653: fi
                   4654: fi
                   4655: F77=$ac_cv_prog_F77
                   4656: if test -n "$F77"; then
                   4657:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4658: $as_echo "$F77" >&6; }
                   4659: else
                   4660:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4661: $as_echo "no" >&6; }
                   4662: fi
                   4663: 
                   4664: 
                   4665:     test -n "$F77" && break
                   4666:   done
                   4667: fi
                   4668: if test -z "$F77"; then
                   4669:   ac_ct_F77=$F77
1.23      bertrand 4670:   for ac_prog in gfortran
1.15      bertrand 4671: do
                   4672:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4673: set dummy $ac_prog; ac_word=$2
                   4674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4675: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4676: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4677:   $as_echo_n "(cached) " >&6
                   4678: else
                   4679:   if test -n "$ac_ct_F77"; then
                   4680:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4681: else
                   4682: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4683: for as_dir in $PATH
                   4684: do
                   4685:   IFS=$as_save_IFS
                   4686:   test -z "$as_dir" && as_dir=.
                   4687:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4688:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4689:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4690:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4691:     break 2
                   4692:   fi
                   4693: done
                   4694:   done
                   4695: IFS=$as_save_IFS
                   4696: 
                   4697: fi
                   4698: fi
                   4699: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4700: if test -n "$ac_ct_F77"; then
                   4701:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4702: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4703: else
1.15      bertrand 4704:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4705: $as_echo "no" >&6; }
                   4706: fi
                   4707: 
                   4708: 
                   4709:   test -n "$ac_ct_F77" && break
                   4710: done
1.1       bertrand 4711: 
1.15      bertrand 4712:   if test "x$ac_ct_F77" = x; then
                   4713:     F77=""
                   4714:   else
                   4715:     case $cross_compiling:$ac_tool_warned in
                   4716: yes:)
                   4717: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4718: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4719: ac_tool_warned=yes ;;
                   4720: esac
                   4721:     F77=$ac_ct_F77
                   4722:   fi
1.14      bertrand 4723: fi
1.1       bertrand 4724: 
                   4725: 
1.15      bertrand 4726: # Provide some information about the compiler.
                   4727: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4728: set X $ac_compile
                   4729: ac_compiler=$2
                   4730: for ac_option in --version -v -V -qversion; do
                   4731:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4732: case "(($ac_try" in
                   4733:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4734:   *) ac_try_echo=$ac_try;;
                   4735: esac
1.15      bertrand 4736: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4737: $as_echo "$ac_try_echo"; } >&5
                   4738:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4739:   ac_status=$?
1.15      bertrand 4740:   if test -s conftest.err; then
                   4741:     sed '10a\
                   4742: ... rest of stderr output deleted ...
                   4743:          10q' conftest.err >conftest.er1
                   4744:     cat conftest.er1 >&5
                   4745:   fi
                   4746:   rm -f conftest.er1 conftest.err
                   4747:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4748:   test $ac_status = 0; }
                   4749: done
                   4750: rm -f a.out
                   4751: 
                   4752: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4753: # input file.  (Note that this only needs to work for GNU compilers.)
                   4754: ac_save_ext=$ac_ext
                   4755: ac_ext=F
                   4756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4757: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4758: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4759:   $as_echo_n "(cached) " >&6
1.1       bertrand 4760: else
1.15      bertrand 4761:   cat > conftest.$ac_ext <<_ACEOF
                   4762:       program main
                   4763: #ifndef __GNUC__
                   4764:        choke me
                   4765: #endif
1.14      bertrand 4766: 
1.15      bertrand 4767:       end
                   4768: _ACEOF
                   4769: if ac_fn_f77_try_compile "$LINENO"; then :
                   4770:   ac_compiler_gnu=yes
                   4771: else
                   4772:   ac_compiler_gnu=no
1.1       bertrand 4773: fi
1.15      bertrand 4774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4775: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4776: 
                   4777: fi
1.15      bertrand 4778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4779: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4780: ac_ext=$ac_save_ext
                   4781: ac_test_FFLAGS=${FFLAGS+set}
                   4782: ac_save_FFLAGS=$FFLAGS
                   4783: FFLAGS=
                   4784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4785: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4786: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4787:   $as_echo_n "(cached) " >&6
                   4788: else
                   4789:   FFLAGS=-g
                   4790: cat > conftest.$ac_ext <<_ACEOF
                   4791:       program main
1.1       bertrand 4792: 
1.15      bertrand 4793:       end
1.14      bertrand 4794: _ACEOF
1.15      bertrand 4795: if ac_fn_f77_try_compile "$LINENO"; then :
                   4796:   ac_cv_prog_f77_g=yes
1.1       bertrand 4797: else
1.15      bertrand 4798:   ac_cv_prog_f77_g=no
1.1       bertrand 4799: fi
1.15      bertrand 4800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4801: 
                   4802: fi
1.15      bertrand 4803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4804: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4805: if test "$ac_test_FFLAGS" = set; then
                   4806:   FFLAGS=$ac_save_FFLAGS
                   4807: elif test $ac_cv_prog_f77_g = yes; then
                   4808:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4809:     FFLAGS="-g -O2"
                   4810:   else
                   4811:     FFLAGS="-g"
                   4812:   fi
                   4813: else
                   4814:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4815:     FFLAGS="-O2"
                   4816:   else
                   4817:     FFLAGS=
                   4818:   fi
1.1       bertrand 4819: fi
                   4820: 
1.15      bertrand 4821: if test $ac_compiler_gnu = yes; then
                   4822:   G77=yes
1.1       bertrand 4823: else
1.15      bertrand 4824:   G77=
1.1       bertrand 4825: fi
1.15      bertrand 4826: ac_ext=c
                   4827: ac_cpp='$CPP $CPPFLAGS'
                   4828: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4829: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4830: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4831: 
                   4832: 
1.15      bertrand 4833: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4834:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4835: fi
1.14      bertrand 4836: 
1.15      bertrand 4837: ac_ext=${ac_fc_srcext-f}
                   4838: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4839: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4840: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4841: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4842:   for ac_prog in gfortran
1.15      bertrand 4843:   do
                   4844:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4845: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4847: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4848: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4849:   $as_echo_n "(cached) " >&6
                   4850: else
                   4851:   if test -n "$FC"; then
                   4852:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4853: else
1.15      bertrand 4854: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4855: for as_dir in $PATH
                   4856: do
                   4857:   IFS=$as_save_IFS
                   4858:   test -z "$as_dir" && as_dir=.
                   4859:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4860:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4861:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4862:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4863:     break 2
                   4864:   fi
                   4865: done
                   4866:   done
                   4867: IFS=$as_save_IFS
1.1       bertrand 4868: 
                   4869: fi
1.15      bertrand 4870: fi
                   4871: FC=$ac_cv_prog_FC
                   4872: if test -n "$FC"; then
                   4873:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4874: $as_echo "$FC" >&6; }
1.14      bertrand 4875: else
1.15      bertrand 4876:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4877: $as_echo "no" >&6; }
1.14      bertrand 4878: fi
                   4879: 
1.1       bertrand 4880: 
1.15      bertrand 4881:     test -n "$FC" && break
                   4882:   done
                   4883: fi
                   4884: if test -z "$FC"; then
                   4885:   ac_ct_FC=$FC
1.23      bertrand 4886:   for ac_prog in gfortran
1.15      bertrand 4887: do
                   4888:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4889: set dummy $ac_prog; ac_word=$2
                   4890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4891: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4892: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4893:   $as_echo_n "(cached) " >&6
                   4894: else
                   4895:   if test -n "$ac_ct_FC"; then
                   4896:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4897: else
                   4898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4899: for as_dir in $PATH
                   4900: do
                   4901:   IFS=$as_save_IFS
                   4902:   test -z "$as_dir" && as_dir=.
                   4903:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4904:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4905:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4906:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4907:     break 2
                   4908:   fi
                   4909: done
                   4910:   done
                   4911: IFS=$as_save_IFS
1.1       bertrand 4912: 
1.15      bertrand 4913: fi
                   4914: fi
                   4915: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4916: if test -n "$ac_ct_FC"; then
                   4917:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4918: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4919: else
1.15      bertrand 4920:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4921: $as_echo "no" >&6; }
1.1       bertrand 4922: fi
1.14      bertrand 4923: 
1.1       bertrand 4924: 
1.15      bertrand 4925:   test -n "$ac_ct_FC" && break
                   4926: done
1.1       bertrand 4927: 
1.15      bertrand 4928:   if test "x$ac_ct_FC" = x; then
                   4929:     FC=""
                   4930:   else
                   4931:     case $cross_compiling:$ac_tool_warned in
                   4932: yes:)
                   4933: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4934: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4935: ac_tool_warned=yes ;;
1.14      bertrand 4936: esac
1.15      bertrand 4937:     FC=$ac_ct_FC
                   4938:   fi
1.14      bertrand 4939: fi
                   4940: 
                   4941: 
1.15      bertrand 4942: # Provide some information about the compiler.
                   4943: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4944: set X $ac_compile
                   4945: ac_compiler=$2
                   4946: for ac_option in --version -v -V -qversion; do
                   4947:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4948: case "(($ac_try" in
                   4949:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4950:   *) ac_try_echo=$ac_try;;
                   4951: esac
1.15      bertrand 4952: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4953: $as_echo "$ac_try_echo"; } >&5
                   4954:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4955:   ac_status=$?
1.15      bertrand 4956:   if test -s conftest.err; then
                   4957:     sed '10a\
                   4958: ... rest of stderr output deleted ...
                   4959:          10q' conftest.err >conftest.er1
                   4960:     cat conftest.er1 >&5
                   4961:   fi
                   4962:   rm -f conftest.er1 conftest.err
                   4963:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4964:   test $ac_status = 0; }
                   4965: done
                   4966: rm -f a.out
                   4967: 
                   4968: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4969: # input file.  (Note that this only needs to work for GNU compilers.)
                   4970: ac_save_ext=$ac_ext
                   4971: ac_ext=F
                   4972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4973: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4974: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4975:   $as_echo_n "(cached) " >&6
1.14      bertrand 4976: else
1.15      bertrand 4977:   cat > conftest.$ac_ext <<_ACEOF
                   4978:       program main
                   4979: #ifndef __GNUC__
                   4980:        choke me
                   4981: #endif
1.14      bertrand 4982: 
1.15      bertrand 4983:       end
                   4984: _ACEOF
                   4985: if ac_fn_fc_try_compile "$LINENO"; then :
                   4986:   ac_compiler_gnu=yes
                   4987: else
                   4988:   ac_compiler_gnu=no
1.14      bertrand 4989: fi
                   4990: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4991: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4992: 
1.15      bertrand 4993: fi
                   4994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4995: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4996: ac_ext=$ac_save_ext
                   4997: ac_test_FCFLAGS=${FCFLAGS+set}
                   4998: ac_save_FCFLAGS=$FCFLAGS
                   4999: FCFLAGS=
                   5000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5001: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5002: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5003:   $as_echo_n "(cached) " >&6
                   5004: else
                   5005:   FCFLAGS=-g
                   5006: cat > conftest.$ac_ext <<_ACEOF
                   5007:       program main
1.1       bertrand 5008: 
1.15      bertrand 5009:       end
1.1       bertrand 5010: _ACEOF
1.15      bertrand 5011: if ac_fn_fc_try_compile "$LINENO"; then :
                   5012:   ac_cv_prog_fc_g=yes
1.1       bertrand 5013: else
1.15      bertrand 5014:   ac_cv_prog_fc_g=no
1.1       bertrand 5015: fi
1.14      bertrand 5016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5017: 
1.15      bertrand 5018: fi
                   5019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5020: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5021: if test "$ac_test_FCFLAGS" = set; then
                   5022:   FCFLAGS=$ac_save_FCFLAGS
                   5023: elif test $ac_cv_prog_fc_g = yes; then
                   5024:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5025:     FCFLAGS="-g -O2"
                   5026:   else
                   5027:     FCFLAGS="-g"
                   5028:   fi
1.1       bertrand 5029: else
1.15      bertrand 5030:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5031:     FCFLAGS="-O2"
                   5032:   else
                   5033:     FCFLAGS=
                   5034:   fi
1.1       bertrand 5035: fi
                   5036: 
1.15      bertrand 5037: ac_ext=c
                   5038: ac_cpp='$CPP $CPPFLAGS'
                   5039: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5040: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5041: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5042: 
                   5043: 
1.15      bertrand 5044: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 5045:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5046: fi
                   5047: 
1.15      bertrand 5048: if test x"$FC" != x""; then
                   5049:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5050:            awk -F. '{ printf("%s", $1);}'`
                   5051:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5052:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5053:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5054:        OPTIMISATION_F=-O3
                   5055:    else
1.23      bertrand 5056:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5057:            OPTIMISATION_F=-O3
                   5058:        else
1.23      bertrand 5059:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5060:                OPTIMISATION_F=-O2
                   5061:            else
1.36      bertrand 5062:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5063:            fi
1.14      bertrand 5064:        fi
                   5065:    fi
                   5066: fi
1.1       bertrand 5067: 
                   5068: 
1.15      bertrand 5069: ac_ext=c
                   5070: ac_cpp='$CPP $CPPFLAGS'
                   5071: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5072: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5073: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5075: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5076: # On Suns, sometimes $CPP names a directory.
                   5077: if test -n "$CPP" && test -d "$CPP"; then
                   5078:   CPP=
                   5079: fi
                   5080: if test -z "$CPP"; then
1.57      bertrand 5081:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5082:   $as_echo_n "(cached) " >&6
                   5083: else
                   5084:       # Double quotes because CPP needs to be expanded
                   5085:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5086:     do
                   5087:       ac_preproc_ok=false
                   5088: for ac_c_preproc_warn_flag in '' yes
                   5089: do
                   5090:   # Use a header file that comes with gcc, so configuring glibc
                   5091:   # with a fresh cross-compiler works.
                   5092:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5093:   # <limits.h> exists even on freestanding compilers.
                   5094:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5095:   # not just through cpp. "Syntax error" is here to catch this case.
                   5096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5097: /* end confdefs.h.  */
1.15      bertrand 5098: #ifdef __STDC__
                   5099: # include <limits.h>
                   5100: #else
                   5101: # include <assert.h>
                   5102: #endif
                   5103:             Syntax error
1.1       bertrand 5104: _ACEOF
1.15      bertrand 5105: if ac_fn_c_try_cpp "$LINENO"; then :
                   5106: 
1.1       bertrand 5107: else
1.15      bertrand 5108:   # Broken: fails on valid input.
                   5109: continue
1.1       bertrand 5110: fi
1.36      bertrand 5111: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5112: 
1.15      bertrand 5113:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5114:   # can be detected and how.
                   5115:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5116: /* end confdefs.h.  */
                   5117: #include <ac_nonexistent.h>
                   5118: _ACEOF
                   5119: if ac_fn_c_try_cpp "$LINENO"; then :
                   5120:   # Broken: success on invalid input.
                   5121: continue
                   5122: else
                   5123:   # Passes both tests.
                   5124: ac_preproc_ok=:
                   5125: break
1.1       bertrand 5126: fi
1.36      bertrand 5127: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5128: 
1.15      bertrand 5129: done
                   5130: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5131: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5132: if $ac_preproc_ok; then :
                   5133:   break
1.1       bertrand 5134: fi
                   5135: 
1.15      bertrand 5136:     done
                   5137:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5138: 
1.15      bertrand 5139: fi
                   5140:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5141: else
1.15      bertrand 5142:   ac_cv_prog_CPP=$CPP
                   5143: fi
                   5144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5145: $as_echo "$CPP" >&6; }
                   5146: ac_preproc_ok=false
                   5147: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5148: do
1.15      bertrand 5149:   # Use a header file that comes with gcc, so configuring glibc
                   5150:   # with a fresh cross-compiler works.
                   5151:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5152:   # <limits.h> exists even on freestanding compilers.
                   5153:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5154:   # not just through cpp. "Syntax error" is here to catch this case.
                   5155:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5156: /* end confdefs.h.  */
                   5157: #ifdef __STDC__
                   5158: # include <limits.h>
                   5159: #else
                   5160: # include <assert.h>
                   5161: #endif
                   5162:             Syntax error
                   5163: _ACEOF
                   5164: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5165: 
1.15      bertrand 5166: else
                   5167:   # Broken: fails on valid input.
                   5168: continue
                   5169: fi
1.36      bertrand 5170: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5171: 
1.15      bertrand 5172:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5173:   # can be detected and how.
                   5174:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5175: /* end confdefs.h.  */
                   5176: #include <ac_nonexistent.h>
                   5177: _ACEOF
                   5178: if ac_fn_c_try_cpp "$LINENO"; then :
                   5179:   # Broken: success on invalid input.
                   5180: continue
                   5181: else
                   5182:   # Passes both tests.
                   5183: ac_preproc_ok=:
                   5184: break
                   5185: fi
1.36      bertrand 5186: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5187: 
                   5188: done
1.15      bertrand 5189: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5190: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5191: if $ac_preproc_ok; then :
1.1       bertrand 5192: 
1.15      bertrand 5193: else
                   5194:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5195: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5196: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5197: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5198: fi
1.14      bertrand 5199: 
1.15      bertrand 5200: ac_ext=c
                   5201: ac_cpp='$CPP $CPPFLAGS'
                   5202: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5203: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5204: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5205: 
                   5206: 
1.15      bertrand 5207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5208: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5209: 
                   5210: 
1.15      bertrand 5211: # Check whether --with-x was given.
                   5212: if test "${with_x+set}" = set; then :
                   5213:   withval=$with_x;
1.1       bertrand 5214: fi
1.14      bertrand 5215: 
1.15      bertrand 5216: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5217: if test "x$with_x" = xno; then
                   5218:   # The user explicitly disabled X.
                   5219:   have_x=disabled
1.1       bertrand 5220: else
1.15      bertrand 5221:   case $x_includes,$x_libraries in #(
1.57      bertrand 5222:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5223:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5224:   $as_echo_n "(cached) " >&6
1.1       bertrand 5225: else
1.15      bertrand 5226:   # One or both of the vars are not set, and there is no cached value.
                   5227: ac_x_includes=no ac_x_libraries=no
                   5228: rm -f -r conftest.dir
                   5229: if mkdir conftest.dir; then
                   5230:   cd conftest.dir
                   5231:   cat >Imakefile <<'_ACEOF'
                   5232: incroot:
                   5233:    @echo incroot='${INCROOT}'
                   5234: usrlibdir:
                   5235:    @echo usrlibdir='${USRLIBDIR}'
                   5236: libdir:
                   5237:    @echo libdir='${LIBDIR}'
                   5238: _ACEOF
                   5239:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5240:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5241:     for ac_var in incroot usrlibdir libdir; do
                   5242:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5243:     done
                   5244:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5245:     for ac_extension in a so sl dylib la dll; do
                   5246:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5247:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5248:    ac_im_usrlibdir=$ac_im_libdir; break
                   5249:       fi
                   5250:     done
                   5251:     # Screen out bogus values from the imake configuration.  They are
                   5252:     # bogus both because they are the default anyway, and because
                   5253:     # using them would break gcc on systems where it needs fixed includes.
                   5254:     case $ac_im_incroot in
                   5255:    /usr/include) ac_x_includes= ;;
                   5256:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5257:     esac
                   5258:     case $ac_im_usrlibdir in
                   5259:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5260:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5261:     esac
                   5262:   fi
                   5263:   cd ..
                   5264:   rm -f -r conftest.dir
                   5265: fi
                   5266: 
                   5267: # Standard set of common directories for X headers.
                   5268: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5269: ac_x_header_dirs='
                   5270: /usr/X11/include
                   5271: /usr/X11R7/include
                   5272: /usr/X11R6/include
                   5273: /usr/X11R5/include
                   5274: /usr/X11R4/include
1.1       bertrand 5275: 
1.15      bertrand 5276: /usr/include/X11
                   5277: /usr/include/X11R7
                   5278: /usr/include/X11R6
                   5279: /usr/include/X11R5
                   5280: /usr/include/X11R4
1.1       bertrand 5281: 
1.15      bertrand 5282: /usr/local/X11/include
                   5283: /usr/local/X11R7/include
                   5284: /usr/local/X11R6/include
                   5285: /usr/local/X11R5/include
                   5286: /usr/local/X11R4/include
1.1       bertrand 5287: 
1.15      bertrand 5288: /usr/local/include/X11
                   5289: /usr/local/include/X11R7
                   5290: /usr/local/include/X11R6
                   5291: /usr/local/include/X11R5
                   5292: /usr/local/include/X11R4
1.1       bertrand 5293: 
1.15      bertrand 5294: /usr/X386/include
                   5295: /usr/x386/include
                   5296: /usr/XFree86/include/X11
1.1       bertrand 5297: 
1.15      bertrand 5298: /usr/include
                   5299: /usr/local/include
                   5300: /usr/unsupported/include
                   5301: /usr/athena/include
                   5302: /usr/local/x11r5/include
                   5303: /usr/lpp/Xamples/include
1.1       bertrand 5304: 
1.15      bertrand 5305: /usr/openwin/include
                   5306: /usr/openwin/share/include'
1.1       bertrand 5307: 
1.15      bertrand 5308: if test "$ac_x_includes" = no; then
                   5309:   # Guess where to find include files, by looking for Xlib.h.
                   5310:   # First, try using that file with no special directory specified.
                   5311:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5312: /* end confdefs.h.  */
                   5313: #include <X11/Xlib.h>
                   5314: _ACEOF
                   5315: if ac_fn_c_try_cpp "$LINENO"; then :
                   5316:   # We can compile using X headers with no special include directory.
                   5317: ac_x_includes=
1.1       bertrand 5318: else
1.15      bertrand 5319:   for ac_dir in $ac_x_header_dirs; do
                   5320:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5321:     ac_x_includes=$ac_dir
                   5322:     break
                   5323:   fi
                   5324: done
1.1       bertrand 5325: fi
1.36      bertrand 5326: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5327: fi # $ac_x_includes = no
1.1       bertrand 5328: 
1.15      bertrand 5329: if test "$ac_x_libraries" = no; then
                   5330:   # Check for the libraries.
                   5331:   # See if we find them without any special options.
                   5332:   # Don't add to $LIBS permanently.
                   5333:   ac_save_LIBS=$LIBS
                   5334:   LIBS="-lX11 $LIBS"
                   5335:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5336: /* end confdefs.h.  */
1.15      bertrand 5337: #include <X11/Xlib.h>
1.14      bertrand 5338: int
                   5339: main ()
                   5340: {
1.15      bertrand 5341: XrmInitialize ()
1.14      bertrand 5342:   ;
                   5343:   return 0;
                   5344: }
1.1       bertrand 5345: _ACEOF
1.15      bertrand 5346: if ac_fn_c_try_link "$LINENO"; then :
                   5347:   LIBS=$ac_save_LIBS
                   5348: # We can link X programs with no special library path.
                   5349: ac_x_libraries=
1.1       bertrand 5350: else
1.15      bertrand 5351:   LIBS=$ac_save_LIBS
                   5352: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5353: do
                   5354:   # Don't even attempt the hair of trying to link an X program!
                   5355:   for ac_extension in a so sl dylib la dll; do
                   5356:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5357:       ac_x_libraries=$ac_dir
                   5358:       break 2
                   5359:     fi
                   5360:   done
                   5361: done
                   5362: fi
                   5363: rm -f core conftest.err conftest.$ac_objext \
                   5364:     conftest$ac_exeext conftest.$ac_ext
                   5365: fi # $ac_x_libraries = no
1.1       bertrand 5366: 
1.15      bertrand 5367: case $ac_x_includes,$ac_x_libraries in #(
                   5368:   no,* | *,no | *\'*)
                   5369:     # Didn't find X, or a directory has "'" in its name.
                   5370:     ac_cv_have_x="have_x=no";; #(
                   5371:   *)
                   5372:     # Record where we found X for the cache.
                   5373:     ac_cv_have_x="have_x=yes\
                   5374:    ac_x_includes='$ac_x_includes'\
                   5375:    ac_x_libraries='$ac_x_libraries'"
                   5376: esac
1.1       bertrand 5377: fi
1.15      bertrand 5378: ;; #(
                   5379:     *) have_x=yes;;
                   5380:   esac
                   5381:   eval "$ac_cv_have_x"
                   5382: fi # $with_x != no
1.1       bertrand 5383: 
1.15      bertrand 5384: if test "$have_x" != yes; then
                   5385:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5386: $as_echo "$have_x" >&6; }
                   5387:   no_x=yes
1.14      bertrand 5388: else
1.15      bertrand 5389:   # If each of the values was on the command line, it overrides each guess.
                   5390:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5391:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5392:   # Update the cache value to reflect the command line values.
                   5393:   ac_cv_have_x="have_x=yes\
                   5394:    ac_x_includes='$x_includes'\
                   5395:    ac_x_libraries='$x_libraries'"
                   5396:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5397: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5398: fi
1.1       bertrand 5399: 
1.15      bertrand 5400: if test "$no_x" = yes; then
                   5401:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5402: 
1.15      bertrand 5403: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5404: 
1.15      bertrand 5405:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5406: else
1.15      bertrand 5407:   if test -n "$x_includes"; then
                   5408:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5409:   fi
                   5410: 
                   5411:   # It would also be nice to do this for all -L options, not just this one.
                   5412:   if test -n "$x_libraries"; then
                   5413:     X_LIBS="$X_LIBS -L$x_libraries"
                   5414:     # For Solaris; some versions of Sun CC require a space after -R and
                   5415:     # others require no space.  Words are not sufficient . . . .
                   5416:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5417: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5418:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5419:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5420:     ac_c_werror_flag=yes
                   5421:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5422: /* end confdefs.h.  */
1.1       bertrand 5423: 
1.15      bertrand 5424: int
                   5425: main ()
                   5426: {
1.1       bertrand 5427: 
1.15      bertrand 5428:   ;
                   5429:   return 0;
                   5430: }
                   5431: _ACEOF
                   5432: if ac_fn_c_try_link "$LINENO"; then :
                   5433:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5434: $as_echo "no" >&6; }
                   5435:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5436: else
1.15      bertrand 5437:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5438:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5439: /* end confdefs.h.  */
1.1       bertrand 5440: 
1.14      bertrand 5441: int
                   5442: main ()
                   5443: {
1.15      bertrand 5444: 
                   5445:   ;
1.14      bertrand 5446:   return 0;
                   5447: }
                   5448: _ACEOF
1.15      bertrand 5449: if ac_fn_c_try_link "$LINENO"; then :
                   5450:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5451: $as_echo "yes" >&6; }
                   5452:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5453: else
1.15      bertrand 5454:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5455: $as_echo "neither works" >&6; }
1.14      bertrand 5456: fi
1.15      bertrand 5457: rm -f core conftest.err conftest.$ac_objext \
                   5458:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5459: fi
1.15      bertrand 5460: rm -f core conftest.err conftest.$ac_objext \
                   5461:     conftest$ac_exeext conftest.$ac_ext
                   5462:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5463:     LIBS=$ac_xsave_LIBS
                   5464:   fi
1.1       bertrand 5465: 
1.15      bertrand 5466:   # Check for system-dependent libraries X programs must link with.
                   5467:   # Do this before checking for the system-independent R6 libraries
                   5468:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5469: 
1.15      bertrand 5470:   if test "$ISC" = yes; then
                   5471:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5472:   else
                   5473:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5474:     # libraries were built with DECnet support.  And Karl Berry says
                   5475:     # the Alpha needs dnet_stub (dnet does not exist).
                   5476:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5477:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5478: /* end confdefs.h.  */
1.1       bertrand 5479: 
1.15      bertrand 5480: /* Override any GCC internal prototype to avoid an error.
                   5481:    Use char because int might match the return type of a GCC
                   5482:    builtin and then its argument prototype would still apply.  */
                   5483: #ifdef __cplusplus
                   5484: extern "C"
                   5485: #endif
                   5486: char XOpenDisplay ();
                   5487: int
                   5488: main ()
                   5489: {
                   5490: return XOpenDisplay ();
                   5491:   ;
                   5492:   return 0;
                   5493: }
1.1       bertrand 5494: _ACEOF
1.15      bertrand 5495: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5496: 
                   5497: else
1.15      bertrand 5498:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5499: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5500: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5501:   $as_echo_n "(cached) " >&6
                   5502: else
                   5503:   ac_check_lib_save_LIBS=$LIBS
                   5504: LIBS="-ldnet  $LIBS"
                   5505: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5506: /* end confdefs.h.  */
1.14      bertrand 5507: 
1.15      bertrand 5508: /* Override any GCC internal prototype to avoid an error.
                   5509:    Use char because int might match the return type of a GCC
                   5510:    builtin and then its argument prototype would still apply.  */
                   5511: #ifdef __cplusplus
                   5512: extern "C"
                   5513: #endif
                   5514: char dnet_ntoa ();
                   5515: int
                   5516: main ()
                   5517: {
                   5518: return dnet_ntoa ();
                   5519:   ;
                   5520:   return 0;
                   5521: }
1.1       bertrand 5522: _ACEOF
1.15      bertrand 5523: if ac_fn_c_try_link "$LINENO"; then :
                   5524:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5525: else
1.15      bertrand 5526:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5527: fi
1.15      bertrand 5528: rm -f core conftest.err conftest.$ac_objext \
                   5529:     conftest$ac_exeext conftest.$ac_ext
                   5530: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5531: fi
1.15      bertrand 5532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5533: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5534: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5535:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5536: fi
                   5537: 
1.15      bertrand 5538:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5539:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5540: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5541: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5542:   $as_echo_n "(cached) " >&6
1.14      bertrand 5543: else
1.15      bertrand 5544:   ac_check_lib_save_LIBS=$LIBS
                   5545: LIBS="-ldnet_stub  $LIBS"
                   5546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5547: /* end confdefs.h.  */
1.15      bertrand 5548: 
                   5549: /* Override any GCC internal prototype to avoid an error.
                   5550:    Use char because int might match the return type of a GCC
                   5551:    builtin and then its argument prototype would still apply.  */
                   5552: #ifdef __cplusplus
                   5553: extern "C"
                   5554: #endif
                   5555: char dnet_ntoa ();
1.1       bertrand 5556: int
                   5557: main ()
                   5558: {
1.15      bertrand 5559: return dnet_ntoa ();
1.1       bertrand 5560:   ;
                   5561:   return 0;
                   5562: }
                   5563: _ACEOF
1.15      bertrand 5564: if ac_fn_c_try_link "$LINENO"; then :
                   5565:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5566: else
1.15      bertrand 5567:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5568: fi
                   5569: rm -f core conftest.err conftest.$ac_objext \
                   5570:     conftest$ac_exeext conftest.$ac_ext
                   5571: LIBS=$ac_check_lib_save_LIBS
                   5572: fi
                   5573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5574: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5575: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5576:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5577: fi
1.14      bertrand 5578: 
1.15      bertrand 5579:     fi
1.1       bertrand 5580: fi
1.15      bertrand 5581: rm -f core conftest.err conftest.$ac_objext \
                   5582:     conftest$ac_exeext conftest.$ac_ext
                   5583:     LIBS="$ac_xsave_LIBS"
                   5584: 
                   5585:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5586:     # to get the SysV transport functions.
                   5587:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5588:     # needs -lnsl.
                   5589:     # The nsl library prevents programs from opening the X display
                   5590:     # on Irix 5.2, according to T.E. Dickey.
                   5591:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5592:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5593:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5594: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5595: 
                   5596: fi
                   5597: 
1.15      bertrand 5598:     if test $ac_cv_func_gethostbyname = no; then
                   5599:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5600: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5601: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5602:   $as_echo_n "(cached) " >&6
1.1       bertrand 5603: else
1.15      bertrand 5604:   ac_check_lib_save_LIBS=$LIBS
                   5605: LIBS="-lnsl  $LIBS"
                   5606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5607: /* end confdefs.h.  */
1.15      bertrand 5608: 
                   5609: /* Override any GCC internal prototype to avoid an error.
                   5610:    Use char because int might match the return type of a GCC
                   5611:    builtin and then its argument prototype would still apply.  */
                   5612: #ifdef __cplusplus
                   5613: extern "C"
                   5614: #endif
                   5615: char gethostbyname ();
1.1       bertrand 5616: int
                   5617: main ()
                   5618: {
1.15      bertrand 5619: return gethostbyname ();
1.1       bertrand 5620:   ;
                   5621:   return 0;
                   5622: }
                   5623: _ACEOF
1.15      bertrand 5624: if ac_fn_c_try_link "$LINENO"; then :
                   5625:   ac_cv_lib_nsl_gethostbyname=yes
                   5626: else
                   5627:   ac_cv_lib_nsl_gethostbyname=no
                   5628: fi
                   5629: rm -f core conftest.err conftest.$ac_objext \
                   5630:     conftest$ac_exeext conftest.$ac_ext
                   5631: LIBS=$ac_check_lib_save_LIBS
                   5632: fi
                   5633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5634: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5635: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5636:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5637: fi
                   5638: 
                   5639:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5640:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5641: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5642: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5643:   $as_echo_n "(cached) " >&6
                   5644: else
                   5645:   ac_check_lib_save_LIBS=$LIBS
                   5646: LIBS="-lbsd  $LIBS"
                   5647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5648: /* end confdefs.h.  */
1.15      bertrand 5649: 
                   5650: /* Override any GCC internal prototype to avoid an error.
                   5651:    Use char because int might match the return type of a GCC
                   5652:    builtin and then its argument prototype would still apply.  */
                   5653: #ifdef __cplusplus
                   5654: extern "C"
                   5655: #endif
                   5656: char gethostbyname ();
1.1       bertrand 5657: int
                   5658: main ()
                   5659: {
1.15      bertrand 5660: return gethostbyname ();
1.1       bertrand 5661:   ;
                   5662:   return 0;
                   5663: }
                   5664: _ACEOF
1.15      bertrand 5665: if ac_fn_c_try_link "$LINENO"; then :
                   5666:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5667: else
1.15      bertrand 5668:   ac_cv_lib_bsd_gethostbyname=no
                   5669: fi
                   5670: rm -f core conftest.err conftest.$ac_objext \
                   5671:     conftest$ac_exeext conftest.$ac_ext
                   5672: LIBS=$ac_check_lib_save_LIBS
                   5673: fi
                   5674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5675: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5676: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5677:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5678: fi
                   5679: 
                   5680:       fi
                   5681:     fi
                   5682: 
                   5683:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5684:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5685:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5686:     # on later versions), says Simon Leinen: it contains gethostby*
                   5687:     # variants that don't use the name server (or something).  -lsocket
                   5688:     # must be given before -lnsl if both are needed.  We assume that
                   5689:     # if connect needs -lnsl, so does gethostbyname.
                   5690:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5691: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5692: 
1.1       bertrand 5693: fi
                   5694: 
1.15      bertrand 5695:     if test $ac_cv_func_connect = no; then
                   5696:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5697: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5698: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5699:   $as_echo_n "(cached) " >&6
1.14      bertrand 5700: else
1.15      bertrand 5701:   ac_check_lib_save_LIBS=$LIBS
                   5702: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5704: /* end confdefs.h.  */
1.1       bertrand 5705: 
1.15      bertrand 5706: /* Override any GCC internal prototype to avoid an error.
                   5707:    Use char because int might match the return type of a GCC
                   5708:    builtin and then its argument prototype would still apply.  */
                   5709: #ifdef __cplusplus
                   5710: extern "C"
                   5711: #endif
                   5712: char connect ();
1.14      bertrand 5713: int
                   5714: main ()
                   5715: {
1.15      bertrand 5716: return connect ();
1.14      bertrand 5717:   ;
                   5718:   return 0;
                   5719: }
                   5720: _ACEOF
1.15      bertrand 5721: if ac_fn_c_try_link "$LINENO"; then :
                   5722:   ac_cv_lib_socket_connect=yes
                   5723: else
                   5724:   ac_cv_lib_socket_connect=no
                   5725: fi
                   5726: rm -f core conftest.err conftest.$ac_objext \
                   5727:     conftest$ac_exeext conftest.$ac_ext
                   5728: LIBS=$ac_check_lib_save_LIBS
                   5729: fi
                   5730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5731: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5732: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5733:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5734: fi
                   5735: 
                   5736:     fi
                   5737: 
                   5738:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5739:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5740: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5741: 
                   5742: fi
                   5743: 
                   5744:     if test $ac_cv_func_remove = no; then
                   5745:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5746: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5747: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5748:   $as_echo_n "(cached) " >&6
                   5749: else
                   5750:   ac_check_lib_save_LIBS=$LIBS
                   5751: LIBS="-lposix  $LIBS"
                   5752: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5753: /* end confdefs.h.  */
1.15      bertrand 5754: 
                   5755: /* Override any GCC internal prototype to avoid an error.
                   5756:    Use char because int might match the return type of a GCC
                   5757:    builtin and then its argument prototype would still apply.  */
                   5758: #ifdef __cplusplus
                   5759: extern "C"
                   5760: #endif
                   5761: char remove ();
1.1       bertrand 5762: int
                   5763: main ()
                   5764: {
1.15      bertrand 5765: return remove ();
1.1       bertrand 5766:   ;
                   5767:   return 0;
                   5768: }
                   5769: _ACEOF
1.15      bertrand 5770: if ac_fn_c_try_link "$LINENO"; then :
                   5771:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5772: else
1.15      bertrand 5773:   ac_cv_lib_posix_remove=no
                   5774: fi
                   5775: rm -f core conftest.err conftest.$ac_objext \
                   5776:     conftest$ac_exeext conftest.$ac_ext
                   5777: LIBS=$ac_check_lib_save_LIBS
                   5778: fi
                   5779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5780: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5781: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5782:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5783: fi
1.1       bertrand 5784: 
1.15      bertrand 5785:     fi
1.14      bertrand 5786: 
1.15      bertrand 5787:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5788:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5789: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5790: 
                   5791: fi
                   5792: 
1.15      bertrand 5793:     if test $ac_cv_func_shmat = no; then
                   5794:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5795: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5796: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5797:   $as_echo_n "(cached) " >&6
                   5798: else
                   5799:   ac_check_lib_save_LIBS=$LIBS
                   5800: LIBS="-lipc  $LIBS"
                   5801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5802: /* end confdefs.h.  */
1.15      bertrand 5803: 
                   5804: /* Override any GCC internal prototype to avoid an error.
                   5805:    Use char because int might match the return type of a GCC
                   5806:    builtin and then its argument prototype would still apply.  */
                   5807: #ifdef __cplusplus
                   5808: extern "C"
                   5809: #endif
                   5810: char shmat ();
1.1       bertrand 5811: int
                   5812: main ()
                   5813: {
1.15      bertrand 5814: return shmat ();
1.1       bertrand 5815:   ;
                   5816:   return 0;
                   5817: }
                   5818: _ACEOF
1.15      bertrand 5819: if ac_fn_c_try_link "$LINENO"; then :
                   5820:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5821: else
1.15      bertrand 5822:   ac_cv_lib_ipc_shmat=no
                   5823: fi
                   5824: rm -f core conftest.err conftest.$ac_objext \
                   5825:     conftest$ac_exeext conftest.$ac_ext
                   5826: LIBS=$ac_check_lib_save_LIBS
                   5827: fi
                   5828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5829: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5830: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5831:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5832: fi
1.14      bertrand 5833: 
1.15      bertrand 5834:     fi
                   5835:   fi
1.1       bertrand 5836: 
1.15      bertrand 5837:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5838:   ac_save_LDFLAGS=$LDFLAGS
                   5839:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5840:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5841:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5842:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5843:   # These have to be linked with before -lX11, unlike the other
                   5844:   # libraries we check for below, so use a different variable.
                   5845:   # John Interrante, Karl Berry
                   5846:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5847: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5848: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5849:   $as_echo_n "(cached) " >&6
1.1       bertrand 5850: else
1.15      bertrand 5851:   ac_check_lib_save_LIBS=$LIBS
                   5852: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5854: /* end confdefs.h.  */
1.15      bertrand 5855: 
                   5856: /* Override any GCC internal prototype to avoid an error.
                   5857:    Use char because int might match the return type of a GCC
                   5858:    builtin and then its argument prototype would still apply.  */
                   5859: #ifdef __cplusplus
                   5860: extern "C"
                   5861: #endif
                   5862: char IceConnectionNumber ();
1.1       bertrand 5863: int
                   5864: main ()
                   5865: {
1.15      bertrand 5866: return IceConnectionNumber ();
1.1       bertrand 5867:   ;
                   5868:   return 0;
                   5869: }
                   5870: _ACEOF
1.15      bertrand 5871: if ac_fn_c_try_link "$LINENO"; then :
                   5872:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5873: else
1.15      bertrand 5874:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5875: fi
                   5876: rm -f core conftest.err conftest.$ac_objext \
                   5877:     conftest$ac_exeext conftest.$ac_ext
                   5878: LIBS=$ac_check_lib_save_LIBS
                   5879: fi
                   5880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5881: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5882: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5883:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5884: fi
                   5885: 
                   5886:   LDFLAGS=$ac_save_LDFLAGS
                   5887: 
                   5888: fi
                   5889: 
1.14      bertrand 5890: 
1.15      bertrand 5891: if test "$ac_x_includes" != "no"; then
                   5892:    if test x"$ac_x_includes" != x; then
                   5893:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5894:        includeX="-I$ac_x_includes"
                   5895:    fi
1.1       bertrand 5896: fi
1.15      bertrand 5897: if test "$ac_x_libraries" != "no"; then
                   5898:    if test x"$ac_x_libraries" != x; then
                   5899:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5900:    fi
1.1       bertrand 5901: fi
1.15      bertrand 5902: 
1.64      bertrand 5903: 
1.69      bertrand 5904: # Check whether --with-32bits-abi was given.
                   5905: if test "${with_32bits_abi+set}" = set; then :
                   5906:   withval=$with_32bits_abi;
1.64      bertrand 5907: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5908:    ABI=
1.64      bertrand 5909: else
1.65      bertrand 5910:    ABI=-m32
                   5911: fi
1.64      bertrand 5912: else
                   5913: 
1.68      bertrand 5914:    ABI=
1.64      bertrand 5915: 
                   5916: 
                   5917: fi
                   5918: 
                   5919: 
1.68      bertrand 5920: if test x$ABI = x; then
1.66      bertrand 5921: 
1.69      bertrand 5922: # Check whether --with-64bits-abi was given.
                   5923: if test "${with_64bits_abi+set}" = set; then :
                   5924:   withval=$with_64bits_abi;
1.67      bertrand 5925: if test "$with-64bits-abi" = "no"; then
                   5926:    ABI=
                   5927: else
                   5928:    ABI=-m64
                   5929: fi
                   5930: else
                   5931: 
1.68      bertrand 5932:    ABI=
1.67      bertrand 5933: 
                   5934: 
                   5935: fi
                   5936: 
1.68      bertrand 5937: fi
1.67      bertrand 5938: 
1.69      bertrand 5939: LDFLAGS="$LDFLAGS $ABI"
                   5940: 
1.67      bertrand 5941: 
                   5942: # Check whether --with-rplcas was given.
                   5943: if test "${with_rplcas+set}" = set; then :
                   5944:   withval=$with_rplcas;
                   5945: if test "$with-rplcas" = "no"; then
                   5946:    RPLCAS=-URPLCAS
                   5947:    LIBRPLCAS=
                   5948: else
                   5949:    RPLCAS=-DRPLCAS
                   5950:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5951: fi
                   5952: else
                   5953: 
                   5954:    RPLCAS=-URPLCAS
                   5955:    LIBRPLCAS=
                   5956: 
                   5957: 
                   5958: fi
                   5959: 
                   5960: 
                   5961: 
                   5962: 
                   5963: 
1.65      bertrand 5964: 
1.15      bertrand 5965: # Check whether --enable-optimization was given.
                   5966: if test "${enable_optimization+set}" = set; then :
                   5967:   enableval=$enable_optimization;
                   5968: if test "$enableval" = "no"; then
1.69      bertrand 5969:    CFLAGS=$ABI
                   5970:    FFLAGS=$ABI
                   5971:    CXXFLAGS=$ABI
                   5972:    FCFLAGS=$ABI
                   5973: else
                   5974:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   5975:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   5976:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   5977:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 5978: fi
1.15      bertrand 5979: else
1.14      bertrand 5980: 
1.69      bertrand 5981:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   5982:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   5983:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   5984:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 5985: 
                   5986: 
1.15      bertrand 5987: fi
1.1       bertrand 5988: 
                   5989: 
1.36      bertrand 5990: # Check whether --enable-sysv-semaphores was given.
                   5991: if test "${enable_sysv_semaphores+set}" = set; then :
                   5992:   enableval=$enable_sysv_semaphores;
                   5993: if test "$enableval" = "no"; then
                   5994:    IPCS_SYSV=no
                   5995: else
                   5996:    IPCS_SYSV=yes
                   5997: fi
                   5998: else
                   5999:   IPCS_SYSV=no
                   6000: fi
                   6001: 
                   6002: 
1.30      bertrand 6003: # Check whether --enable-full-static was given.
                   6004: if test "${enable_full_static+set}" = set; then :
                   6005:   enableval=$enable_full_static;
                   6006: if test "$enableval" = "no"; then
                   6007:    STATIC=no
                   6008: else
                   6009:    STATIC=yes
                   6010: fi
                   6011: else
                   6012:   STATIC=no
                   6013: fi
                   6014: 
                   6015: 
1.15      bertrand 6016: # Check whether --enable-final-encoding was given.
                   6017: if test "${enable_final_encoding+set}" = set; then :
                   6018:   enableval=$enable_final_encoding;
                   6019: if test "$enableval" = "no"; then
                   6020:    FINAL_ENCODING="\$(shell locale charmap | \
                   6021:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6022:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6023: else
1.15      bertrand 6024:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6025:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6026: fi
1.1       bertrand 6027: else
1.35      bertrand 6028: 
                   6029: FORCED_FINAL_ENCODING=0
                   6030: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6031:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6032: fi
                   6033: 
1.14      bertrand 6034: 
1.15      bertrand 6035: # Check whether --enable-tex was given.
                   6036: if test "${enable_tex+set}" = set; then :
                   6037:   enableval=$enable_tex;
                   6038: if test "$enableval" = "no"; then
                   6039:    TEX_SUPPORT=no
                   6040: else
                   6041:    TEX_SUPPORT=yes
1.1       bertrand 6042: fi
1.15      bertrand 6043: else
                   6044:   TEX_SUPPORT=guessed
                   6045: fi
                   6046: 
1.14      bertrand 6047: 
1.15      bertrand 6048: # Check whether --enable-vim was given.
                   6049: if test "${enable_vim+set}" = set; then :
                   6050:   enableval=$enable_vim;
                   6051: if test "$enableval" = "no"; then
                   6052:    VIM_SUPPORT=no
                   6053: else
                   6054:    VIM_SUPPORT=yes
                   6055: fi
                   6056: else
                   6057:   VIM_SUPPORT=guessed
1.1       bertrand 6058: fi
                   6059: 
1.15      bertrand 6060: 
                   6061: # Check whether --enable-embedded-gnuplot was given.
                   6062: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6063:   enableval=$enable_embedded_gnuplot;
                   6064: if test "$enableval" = "no"; then
                   6065:    MYGNUPLOT=no
                   6066: else
                   6067:    MYGNUPLOT=yes
                   6068: fi
1.1       bertrand 6069: else
                   6070: 
1.15      bertrand 6071: MYGNUPLOT=yes
                   6072: fi
                   6073: 
1.14      bertrand 6074: 
1.15      bertrand 6075: # Check whether --enable-gnuplot was given.
                   6076: if test "${enable_gnuplot+set}" = set; then :
                   6077:   enableval=$enable_gnuplot;
                   6078: if test "$enableval" = "no"; then
                   6079:    GNUPLOT_SUPPORT=no
                   6080:    MYGNUPLOT=no
                   6081:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6082: else
                   6083:    GNUPLOT_SUPPORT=yes
                   6084:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6085: fi
1.1       bertrand 6086: else
                   6087: 
1.15      bertrand 6088: if test "$MYGNUPLOT" = "yes"; then
                   6089:    GNUPLOT_SUPPORT=yes
                   6090:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6091: else
                   6092:    GNUPLOT_SUPPORT=guessed
                   6093:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6094: fi
1.1       bertrand 6095: fi
                   6096: 
1.15      bertrand 6097: 
                   6098: # Check whether --enable-motif was given.
                   6099: if test "${enable_motif+set}" = set; then :
                   6100:   enableval=$enable_motif;
                   6101: if test "$enableval" = "no"; then
                   6102:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6103: else
                   6104:    CFLAGS_ORIG=$CFLAGS
                   6105:    LIBS_ORIG=$LIBS
                   6106:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6107:    LIBS="$LIB $X_LIBS"
                   6108:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6109: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6110: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6111:   $as_echo_n "(cached) " >&6
1.1       bertrand 6112: else
1.15      bertrand 6113:   ac_check_lib_save_LIBS=$LIBS
                   6114: LIBS="-lXm  $LIBS"
                   6115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6116: /* end confdefs.h.  */
1.14      bertrand 6117: 
                   6118: 
1.1       bertrand 6119: int
                   6120: main ()
                   6121: {
1.15      bertrand 6122: return main ();
1.1       bertrand 6123:   ;
                   6124:   return 0;
                   6125: }
                   6126: _ACEOF
1.15      bertrand 6127: if ac_fn_c_try_link "$LINENO"; then :
                   6128:   ac_cv_lib_Xm_main=yes
                   6129: else
                   6130:   ac_cv_lib_Xm_main=no
                   6131: fi
                   6132: rm -f core conftest.err conftest.$ac_objext \
                   6133:     conftest$ac_exeext conftest.$ac_ext
                   6134: LIBS=$ac_check_lib_save_LIBS
                   6135: fi
                   6136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6137: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6138: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6139:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6140: else
1.15      bertrand 6141:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6142: fi
1.14      bertrand 6143: 
1.15      bertrand 6144:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6145:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6146: Motif flag is disabled.
                   6147: " >&5
                   6148: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6149: Motif flag is disabled.
                   6150: " >&2;}
                   6151:    fi
                   6152:    LIBS=$LIBS_ORIG
                   6153:    CFLAGS=$CFLAGS_ORIG
                   6154: fi
                   6155: else
                   6156:   MOTIF_SUPPORT=guessed
1.1       bertrand 6157: fi
                   6158: 
1.15      bertrand 6159: 
                   6160: # Check whether --enable-experimental was given.
                   6161: if test "${enable_experimental+set}" = set; then :
                   6162:   enableval=$enable_experimental;
                   6163: if test "$enableval" = "no"; then
                   6164:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6165: else
                   6166:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6167: fi
1.14      bertrand 6168: else
1.15      bertrand 6169:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6170: fi
                   6171: 
1.1       bertrand 6172: 
1.15      bertrand 6173: # Check whether --enable-debug was given.
                   6174: if test "${enable_debug+set}" = set; then :
                   6175:   enableval=$enable_debug;
                   6176: if test "$enableval" = "no"; then
1.24      bertrand 6177:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6178: else
1.24      bertrand 6179:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6180: fi
                   6181: else
1.24      bertrand 6182:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6183: fi
1.1       bertrand 6184: 
1.15      bertrand 6185: 
                   6186: # Check whether --enable-profile was given.
                   6187: if test "${enable_profile+set}" = set; then :
                   6188:   enableval=$enable_profile;
                   6189: if test "$enableval" = "no"; then
                   6190:    PROFILAGE=""
                   6191: else
                   6192:    PROFILAGE="-pg"
                   6193: fi
                   6194: else
                   6195:   PROFILAGE=""
1.1       bertrand 6196: fi
                   6197: 
1.14      bertrand 6198: 
                   6199: 
1.15      bertrand 6200: 
                   6201: if test ! -d tools; then
                   6202:    mkdir tools
                   6203: fi
                   6204: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6205:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6206:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6207:    (cd "$srcdir/tools/"$NCURSES && \
                   6208:            for i in ../$NCURSES*.patch.gz;
                   6209:            do gunzip -c $i | patch -p1;
                   6210:            done);
1.15      bertrand 6211: fi
                   6212: if test ! -d "$srcdir"/tools/$READLINE; then
                   6213:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6214:            (cd "$srcdir/tools" && tar -xf -)
                   6215: fi
                   6216: if test ! -d "$srcdir"/tools/$UNITS; then
                   6217:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6218:            (cd "$srcdir/tools" && tar -xf -)
                   6219: fi
                   6220: if test ! -d "$srcdir"/tools/$GSL; then
                   6221:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6222:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6223:    if test $(uname) = "OS/2"; then
                   6224:        (cd "$srcdir"/tools/$GSL; \
                   6225:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6226:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6227:                \mv -f $TMP ltmain.sh)
                   6228:    fi
1.15      bertrand 6229: fi
                   6230: if test ! -d "$srcdir"/tools/$GPP; then
                   6231:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6232:            (cd "$srcdir/tools" && tar -xf -)
                   6233: fi
                   6234: if test ! -d "$srcdir"/tools/$FILE; then
                   6235:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6236:            (cd "$srcdir/tools" && tar -xf - )
                   6237:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6238: fi
                   6239: if test ! -d "$srcdir"/tools/$ICONV; then
                   6240:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6241:            (cd "$srcdir/tools" && tar -xf -)
                   6242: fi
                   6243: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6244:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6245:            (cd "$srcdir/tools" && tar -xf -)
                   6246: fi
1.76    ! bertrand 6247: if test ! -d "$srcdir"/tools/$SIGSEGV; then
        !          6248:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
        !          6249:            (cd "$srcdir/tools" && tar -xf -)
        !          6250: fi
1.15      bertrand 6251: if test ! -d tools/$OPENSSL; then
                   6252:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6253:            (cd tools && tar -xf -)
1.1       bertrand 6254: fi
1.55      bertrand 6255: if test ! -d rplcas; then
                   6256:    mkdir rplcas
                   6257: fi
                   6258: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6259:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6260:            (cd "$srcdir/rplcas" && tar -xf -)
                   6261: fi
                   6262: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6263:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6264:            (cd "$srcdir/rplcas" && tar -xf -)
                   6265: fi
1.56      bertrand 6266: if test ! -d rplcas/$NTL; then
                   6267:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6268:            (cd rplcas && tar -xf -)
                   6269: fi
                   6270: if test ! -d rplcas/$COCOA; then
                   6271:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6272:            (cd rplcas && tar -xf -)
                   6273: fi
                   6274: if test ! -d rplcas/$PARI; then
                   6275:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6276:            (cd rplcas && tar -xf -)
                   6277: fi
                   6278: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6279:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6280:            (cd "$srcdir/rplcas" && tar -xf -)
                   6281: fi
1.1       bertrand 6282: 
                   6283: 
                   6284: 
1.15      bertrand 6285: # Check whether --enable-final-run-path was given.
                   6286: if test "${enable_final_run_path+set}" = set; then :
                   6287:   enableval=$enable_final_run_path;
                   6288:    if test "x$enable_final_run_path" = "x"; then
                   6289:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6290: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6291:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6292:    else
                   6293:        RUNPATH="$enable_final_run_path"
                   6294:    fi
1.1       bertrand 6295: 
                   6296: else
1.15      bertrand 6297:   RUNPATH="\${prefix}"
1.1       bertrand 6298: 
                   6299: fi
                   6300: 
1.15      bertrand 6301: 
                   6302: 
                   6303: 
                   6304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6305: $as_echo_n "checking whether ln -s works... " >&6; }
                   6306: LN_S=$as_ln_s
                   6307: if test "$LN_S" = "ln -s"; then
                   6308:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6309: $as_echo "yes" >&6; }
                   6310: else
                   6311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6312: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6313: fi
                   6314: 
1.15      bertrand 6315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6316: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6317: set x ${MAKE-make}
                   6318: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6319: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6320:   $as_echo_n "(cached) " >&6
1.1       bertrand 6321: else
1.15      bertrand 6322:   cat >conftest.make <<\_ACEOF
                   6323: SHELL = /bin/sh
                   6324: all:
                   6325:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6326: _ACEOF
1.36      bertrand 6327: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6328: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6329:   *@@@%%%=?*=@@@%%%*)
                   6330:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6331:   *)
                   6332:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6333: esac
1.15      bertrand 6334: rm -f conftest.make
                   6335: fi
                   6336: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6337:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6338: $as_echo "yes" >&6; }
                   6339:   SET_MAKE=
                   6340: else
                   6341:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6342: $as_echo "no" >&6; }
                   6343:   SET_MAKE="MAKE=${MAKE-make}"
                   6344: fi
1.1       bertrand 6345: 
1.15      bertrand 6346: if test -n "$ac_tool_prefix"; then
                   6347:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6348: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6350: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6351: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6352:   $as_echo_n "(cached) " >&6
                   6353: else
                   6354:   if test -n "$RANLIB"; then
                   6355:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6356: else
1.15      bertrand 6357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6358: for as_dir in $PATH
                   6359: do
                   6360:   IFS=$as_save_IFS
                   6361:   test -z "$as_dir" && as_dir=.
                   6362:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6363:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6364:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6365:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6366:     break 2
                   6367:   fi
                   6368: done
                   6369:   done
                   6370: IFS=$as_save_IFS
1.1       bertrand 6371: 
                   6372: fi
1.15      bertrand 6373: fi
                   6374: RANLIB=$ac_cv_prog_RANLIB
                   6375: if test -n "$RANLIB"; then
                   6376:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6377: $as_echo "$RANLIB" >&6; }
                   6378: else
                   6379:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6380: $as_echo "no" >&6; }
                   6381: fi
                   6382: 
1.1       bertrand 6383: 
1.15      bertrand 6384: fi
                   6385: if test -z "$ac_cv_prog_RANLIB"; then
                   6386:   ac_ct_RANLIB=$RANLIB
                   6387:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6388: set dummy ranlib; ac_word=$2
                   6389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6390: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6391: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6392:   $as_echo_n "(cached) " >&6
                   6393: else
                   6394:   if test -n "$ac_ct_RANLIB"; then
                   6395:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6396: else
                   6397: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6398: for as_dir in $PATH
                   6399: do
                   6400:   IFS=$as_save_IFS
                   6401:   test -z "$as_dir" && as_dir=.
                   6402:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6403:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6404:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6405:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6406:     break 2
                   6407:   fi
                   6408: done
1.14      bertrand 6409:   done
1.15      bertrand 6410: IFS=$as_save_IFS
                   6411: 
                   6412: fi
                   6413: fi
                   6414: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6415: if test -n "$ac_ct_RANLIB"; then
                   6416:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6417: $as_echo "$ac_ct_RANLIB" >&6; }
                   6418: else
                   6419:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6420: $as_echo "no" >&6; }
                   6421: fi
                   6422: 
                   6423:   if test "x$ac_ct_RANLIB" = x; then
                   6424:     RANLIB=":"
                   6425:   else
                   6426:     case $cross_compiling:$ac_tool_warned in
                   6427: yes:)
                   6428: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6429: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6430: ac_tool_warned=yes ;;
                   6431: esac
                   6432:     RANLIB=$ac_ct_RANLIB
                   6433:   fi
1.14      bertrand 6434: else
1.15      bertrand 6435:   RANLIB="$ac_cv_prog_RANLIB"
                   6436: fi
1.1       bertrand 6437: 
                   6438: 
1.15      bertrand 6439: # Extract the first word of "nawk", so it can be a program name with args.
                   6440: set dummy nawk; ac_word=$2
                   6441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6442: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6443: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6444:   $as_echo_n "(cached) " >&6
                   6445: else
                   6446:   if test -n "$AWK"; then
                   6447:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6448: else
                   6449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6450: for as_dir in $PATH
                   6451: do
                   6452:   IFS=$as_save_IFS
                   6453:   test -z "$as_dir" && as_dir=.
                   6454:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6455:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6456:     ac_cv_prog_AWK="yes"
                   6457:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6458:     break 2
                   6459:   fi
                   6460: done
                   6461:   done
                   6462: IFS=$as_save_IFS
1.1       bertrand 6463: 
1.15      bertrand 6464:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6465: fi
                   6466: fi
                   6467: AWK=$ac_cv_prog_AWK
                   6468: if test -n "$AWK"; then
                   6469:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6470: $as_echo "$AWK" >&6; }
1.1       bertrand 6471: else
1.15      bertrand 6472:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6473: $as_echo "no" >&6; }
                   6474: fi
                   6475: 
1.1       bertrand 6476: 
1.15      bertrand 6477: if test "$AWK" = no; then
1.39      bertrand 6478:    # Extract the first word of "gawk", so it can be a program name with args.
                   6479: set dummy gawk; ac_word=$2
                   6480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6481: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6482: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6483:   $as_echo_n "(cached) " >&6
                   6484: else
                   6485:   if test -n "$AWK"; then
                   6486:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6487: else
                   6488: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6489: for as_dir in $PATH
                   6490: do
                   6491:   IFS=$as_save_IFS
                   6492:   test -z "$as_dir" && as_dir=.
                   6493:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6494:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6495:     ac_cv_prog_AWK="yes"
                   6496:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6497:     break 2
                   6498:   fi
                   6499: done
                   6500:   done
                   6501: IFS=$as_save_IFS
                   6502: 
                   6503:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6504: fi
                   6505: fi
                   6506: AWK=$ac_cv_prog_AWK
                   6507: if test -n "$AWK"; then
                   6508:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6509: $as_echo "$AWK" >&6; }
                   6510: else
                   6511:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6512: $as_echo "no" >&6; }
                   6513: fi
                   6514: 
                   6515: 
                   6516:    if test "$AWK" = no; then
                   6517:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6518:    fi
1.1       bertrand 6519: fi
                   6520: 
1.15      bertrand 6521: # Extract the first word of "sed", so it can be a program name with args.
                   6522: set dummy sed; ac_word=$2
                   6523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6524: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6525: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6526:   $as_echo_n "(cached) " >&6
                   6527: else
                   6528:   if test -n "$SED"; then
                   6529:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6530: else
                   6531: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6532: for as_dir in $PATH
                   6533: do
                   6534:   IFS=$as_save_IFS
                   6535:   test -z "$as_dir" && as_dir=.
                   6536:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6537:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6538:     ac_cv_prog_SED="yes"
                   6539:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6540:     break 2
                   6541:   fi
                   6542: done
1.14      bertrand 6543:   done
1.15      bertrand 6544: IFS=$as_save_IFS
1.1       bertrand 6545: 
1.15      bertrand 6546:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6547: fi
1.15      bertrand 6548: fi
                   6549: SED=$ac_cv_prog_SED
                   6550: if test -n "$SED"; then
                   6551:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6552: $as_echo "$SED" >&6; }
                   6553: else
                   6554:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6555: $as_echo "no" >&6; }
1.14      bertrand 6556: fi
1.1       bertrand 6557: 
                   6558: 
1.15      bertrand 6559: if test "$SED" = no; then
1.36      bertrand 6560:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6561: fi
1.14      bertrand 6562: 
1.15      bertrand 6563: if test "$TEX_SUPPORT" = guessed; then
                   6564:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6565: 
1.15      bertrand 6566:    # Extract the first word of "tex", so it can be a program name with args.
                   6567: set dummy tex; ac_word=$2
                   6568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6569: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6570: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6571:   $as_echo_n "(cached) " >&6
1.1       bertrand 6572: else
1.15      bertrand 6573:   if test -n "$TEX"; then
                   6574:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6575: else
1.15      bertrand 6576: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6577: for as_dir in $PATH
                   6578: do
                   6579:   IFS=$as_save_IFS
                   6580:   test -z "$as_dir" && as_dir=.
                   6581:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6582:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6583:     ac_cv_prog_TEX="yes"
                   6584:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6585:     break 2
                   6586:   fi
                   6587: done
                   6588:   done
                   6589: IFS=$as_save_IFS
1.1       bertrand 6590: 
1.15      bertrand 6591:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6592: fi
                   6593: fi
1.15      bertrand 6594: TEX=$ac_cv_prog_TEX
                   6595: if test -n "$TEX"; then
                   6596:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6597: $as_echo "$TEX" >&6; }
                   6598: else
                   6599:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6600: $as_echo "no" >&6; }
1.1       bertrand 6601: fi
1.14      bertrand 6602: 
                   6603: 
1.15      bertrand 6604:    if test "$TEX" = no; then
                   6605:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6606: Download at http://tex.loria.fr/
                   6607: " >&5
                   6608: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6609: Download at http://tex.loria.fr/
                   6610: " >&2;}
                   6611:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6612:    fi
1.14      bertrand 6613: 
1.15      bertrand 6614:    # Extract the first word of "latex", so it can be a program name with args.
                   6615: set dummy latex; ac_word=$2
                   6616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6617: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6618: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6619:   $as_echo_n "(cached) " >&6
1.1       bertrand 6620: else
1.15      bertrand 6621:   if test -n "$LATEX"; then
                   6622:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6623: else
1.15      bertrand 6624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6625: for as_dir in $PATH
                   6626: do
                   6627:   IFS=$as_save_IFS
                   6628:   test -z "$as_dir" && as_dir=.
                   6629:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6630:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6631:     ac_cv_prog_LATEX="yes"
                   6632:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6633:     break 2
                   6634:   fi
                   6635: done
                   6636:   done
                   6637: IFS=$as_save_IFS
1.1       bertrand 6638: 
1.15      bertrand 6639:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6640: fi
                   6641: fi
1.15      bertrand 6642: LATEX=$ac_cv_prog_LATEX
                   6643: if test -n "$LATEX"; then
                   6644:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6645: $as_echo "$LATEX" >&6; }
                   6646: else
                   6647:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6648: $as_echo "no" >&6; }
                   6649: fi
1.14      bertrand 6650: 
1.1       bertrand 6651: 
1.15      bertrand 6652:    if test "$LATEX" = no; then
                   6653:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6654: Download at http://tex.loria.fr/
                   6655: " >&5
                   6656: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6657: Download at http://tex.loria.fr/
                   6658: " >&2;}
                   6659:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6660:    fi
1.1       bertrand 6661: 
1.15      bertrand 6662:    # Extract the first word of "dvips", so it can be a program name with args.
                   6663: set dummy dvips; ac_word=$2
                   6664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6665: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6666: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6667:   $as_echo_n "(cached) " >&6
                   6668: else
                   6669:   if test -n "$DVIPS"; then
                   6670:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6671: else
                   6672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6673: for as_dir in $PATH
                   6674: do
                   6675:   IFS=$as_save_IFS
                   6676:   test -z "$as_dir" && as_dir=.
                   6677:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6678:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6679:     ac_cv_prog_DVIPS="yes"
                   6680:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6681:     break 2
                   6682:   fi
                   6683: done
                   6684:   done
                   6685: IFS=$as_save_IFS
1.1       bertrand 6686: 
1.15      bertrand 6687:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6688: fi
1.1       bertrand 6689: fi
1.15      bertrand 6690: DVIPS=$ac_cv_prog_DVIPS
                   6691: if test -n "$DVIPS"; then
                   6692:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6693: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6694: else
1.15      bertrand 6695:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6696: $as_echo "no" >&6; }
                   6697: fi
1.1       bertrand 6698: 
                   6699: 
1.15      bertrand 6700:    if test "$DVIPS" = no; then
                   6701:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6702: Download at http://tex.loria.fr/
                   6703: " >&5
                   6704: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6705: Download at http://tex.loria.fr/
                   6706: " >&2;}
                   6707:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6708:    fi
1.1       bertrand 6709: 
1.15      bertrand 6710:    # Extract the first word of "gs", so it can be a program name with args.
                   6711: set dummy gs; ac_word=$2
                   6712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6713: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6714: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6715:   $as_echo_n "(cached) " >&6
                   6716: else
                   6717:   if test -n "$GS"; then
                   6718:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6719: else
1.15      bertrand 6720: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6721: for as_dir in $PATH
                   6722: do
                   6723:   IFS=$as_save_IFS
                   6724:   test -z "$as_dir" && as_dir=.
                   6725:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6726:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6727:     ac_cv_prog_GS="yes"
                   6728:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6729:     break 2
                   6730:   fi
                   6731: done
                   6732:   done
                   6733: IFS=$as_save_IFS
1.1       bertrand 6734: 
1.15      bertrand 6735:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6736: fi
                   6737: fi
                   6738: GS=$ac_cv_prog_GS
                   6739: if test -n "$GS"; then
                   6740:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6741: $as_echo "$GS" >&6; }
                   6742: else
                   6743:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6744: $as_echo "no" >&6; }
1.1       bertrand 6745: fi
                   6746: 
1.15      bertrand 6747: 
                   6748:    if test "$GS" = no; then
                   6749:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6750: Download at http://ftp.lip6.fr/
                   6751: " >&5
                   6752: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6753: Download at http://ftp.lip6.fr/
                   6754: " >&2;}
                   6755:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6756:    fi
                   6757: 
                   6758:    # Extract the first word of "gv", so it can be a program name with args.
                   6759: set dummy gv; ac_word=$2
                   6760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6761: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6762: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6763:   $as_echo_n "(cached) " >&6
                   6764: else
                   6765:   if test -n "$GV"; then
                   6766:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6767: else
                   6768: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6769: for as_dir in $PATH
                   6770: do
                   6771:   IFS=$as_save_IFS
                   6772:   test -z "$as_dir" && as_dir=.
                   6773:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6774:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6775:     ac_cv_prog_GV="yes"
                   6776:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6777:     break 2
                   6778:   fi
                   6779: done
1.14      bertrand 6780:   done
1.15      bertrand 6781: IFS=$as_save_IFS
1.1       bertrand 6782: 
1.15      bertrand 6783:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6784: fi
1.1       bertrand 6785: fi
1.15      bertrand 6786: GV=$ac_cv_prog_GV
                   6787: if test -n "$GV"; then
                   6788:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6789: $as_echo "$GV" >&6; }
                   6790: else
                   6791:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6792: $as_echo "no" >&6; }
1.1       bertrand 6793: fi
1.14      bertrand 6794: 
                   6795: 
1.15      bertrand 6796:    if test "$GV" = no; then
                   6797:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6798: Download at http://ftp.lip6.fr/
                   6799: " >&5
                   6800: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6801: Download at http://ftp.lip6.fr/
                   6802: " >&2;}
                   6803:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6804:    fi
1.1       bertrand 6805: else
1.15      bertrand 6806:    if test "$TEX_SUPPORT" = no; then
                   6807:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6808:    else
                   6809:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6810:    fi
1.1       bertrand 6811: fi
                   6812: 
1.15      bertrand 6813: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6814:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6815: set dummy gnuplot; ac_word=$2
                   6816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6817: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6818: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6819:   $as_echo_n "(cached) " >&6
1.14      bertrand 6820: else
1.15      bertrand 6821:   if test -n "$GNUPLOT_P"; then
                   6822:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6823: else
1.15      bertrand 6824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6825: for as_dir in $PATH
                   6826: do
                   6827:   IFS=$as_save_IFS
                   6828:   test -z "$as_dir" && as_dir=.
                   6829:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6830:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6831:     ac_cv_prog_GNUPLOT_P="yes"
                   6832:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6833:     break 2
                   6834:   fi
                   6835: done
                   6836:   done
                   6837: IFS=$as_save_IFS
1.1       bertrand 6838: 
1.15      bertrand 6839:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6840: fi
                   6841: fi
1.15      bertrand 6842: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6843: if test -n "$GNUPLOT_P"; then
                   6844:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6845: $as_echo "$GNUPLOT_P" >&6; }
                   6846: else
                   6847:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6848: $as_echo "no" >&6; }
1.1       bertrand 6849: fi
                   6850: 
                   6851: 
1.15      bertrand 6852:    if test "$GNUPLOT_P" = no; then
                   6853:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6854: Download at http://www.gnuplot.vt.edu/
                   6855: " >&5
                   6856: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6857: Download at http://www.gnuplot.vt.edu/
                   6858: " >&2;}
                   6859:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6860:    else
                   6861:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6862:    fi
                   6863: else
                   6864:    if test "$GNUPLOT_SUPPORT" = no; then
                   6865:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6866:    else
                   6867:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6868:    fi
                   6869: fi
1.1       bertrand 6870: 
1.15      bertrand 6871: if test "$VIM_SUPPORT" = guessed; then
                   6872:    # Extract the first word of "vim", so it can be a program name with args.
                   6873: set dummy vim; ac_word=$2
                   6874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6875: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6876: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 6877:   $as_echo_n "(cached) " >&6
1.1       bertrand 6878: else
1.15      bertrand 6879:   if test -n "$VIM"; then
                   6880:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6881: else
1.15      bertrand 6882: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6883: for as_dir in $PATH
                   6884: do
                   6885:   IFS=$as_save_IFS
                   6886:   test -z "$as_dir" && as_dir=.
                   6887:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6888:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6889:     ac_cv_prog_VIM="yes"
                   6890:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6891:     break 2
                   6892:   fi
                   6893: done
                   6894:   done
                   6895: IFS=$as_save_IFS
1.1       bertrand 6896: 
1.15      bertrand 6897:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6898: fi
                   6899: fi
1.15      bertrand 6900: VIM=$ac_cv_prog_VIM
                   6901: if test -n "$VIM"; then
                   6902:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6903: $as_echo "$VIM" >&6; }
1.1       bertrand 6904: else
1.15      bertrand 6905:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6906: $as_echo "no" >&6; }
                   6907: fi
1.1       bertrand 6908: 
                   6909: 
1.15      bertrand 6910:    if test "$VIM" = no; then
                   6911:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6912: Download at http://www.vim.org/
                   6913: " >&5
                   6914: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6915: Download at http://www.vim.org/
                   6916: " >&2;}
                   6917:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6918:    else
                   6919:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6920:    fi
1.1       bertrand 6921: else
1.15      bertrand 6922:    if test "$VIM_SUPPORT" = no; then
                   6923:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6924:    else
                   6925:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6926:    fi
1.1       bertrand 6927: fi
                   6928: 
1.15      bertrand 6929: if test "$MOTIF_SUPPORT" = guessed; then
                   6930:    CFLAGS_ORIG=$CFLAGS
                   6931:    LIBS_ORIG=$LIBS
                   6932:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6933:    LIBS="$LIB $X_LIBS"
                   6934:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6935: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6936: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6937:   $as_echo_n "(cached) " >&6
1.1       bertrand 6938: else
1.15      bertrand 6939:   ac_check_lib_save_LIBS=$LIBS
                   6940: LIBS="-lXm  $LIBS"
                   6941: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6942: /* end confdefs.h.  */
1.1       bertrand 6943: 
                   6944: 
1.14      bertrand 6945: int
                   6946: main ()
                   6947: {
1.15      bertrand 6948: return main ();
1.14      bertrand 6949:   ;
                   6950:   return 0;
                   6951: }
                   6952: _ACEOF
1.15      bertrand 6953: if ac_fn_c_try_link "$LINENO"; then :
                   6954:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6955: else
1.15      bertrand 6956:   ac_cv_lib_Xm_main=no
                   6957: fi
                   6958: rm -f core conftest.err conftest.$ac_objext \
                   6959:     conftest$ac_exeext conftest.$ac_ext
                   6960: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6961: fi
1.15      bertrand 6962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6963: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6964: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6965:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6966: else
1.15      bertrand 6967:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6968: fi
1.14      bertrand 6969: 
1.15      bertrand 6970:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6971:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6972: Motif flag is disabled.
                   6973: " >&5
                   6974: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6975: Motif flag is disabled.
                   6976: " >&2;}
                   6977:    fi
                   6978:    LIBS=$LIBS_ORIG
                   6979:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6980: fi
                   6981: 
1.15      bertrand 6982: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6983:    CFLAGS_ORIG=$CFLAGS
                   6984:    LIBS_ORIG=$LIBS
                   6985:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6986:    LIBS="$LIB $X_LIBS"
                   6987:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6988: $as_echo_n "checking for main in -lXpm... " >&6; }
1.57      bertrand 6989: if ${ac_cv_lib_Xpm_main+:} false; then :
1.15      bertrand 6990:   $as_echo_n "(cached) " >&6
                   6991: else
                   6992:   ac_check_lib_save_LIBS=$LIBS
                   6993: LIBS="-lXpm  $LIBS"
                   6994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6995: /* end confdefs.h.  */
                   6996: 
1.1       bertrand 6997: 
                   6998: int
                   6999: main ()
                   7000: {
1.15      bertrand 7001: return main ();
1.1       bertrand 7002:   ;
                   7003:   return 0;
                   7004: }
                   7005: _ACEOF
1.15      bertrand 7006: if ac_fn_c_try_link "$LINENO"; then :
                   7007:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 7008: else
1.15      bertrand 7009:   ac_cv_lib_Xpm_main=no
                   7010: fi
                   7011: rm -f core conftest.err conftest.$ac_objext \
                   7012:     conftest$ac_exeext conftest.$ac_ext
                   7013: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7014: fi
1.15      bertrand 7015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   7016: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
1.57      bertrand 7017: if test "x$ac_cv_lib_Xpm_main" = xyes; then :
1.15      bertrand 7018:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   7019: else
                   7020:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 7021: fi
1.15      bertrand 7022: 
                   7023:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   7024:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   7025:    else
                   7026:        libX=""
                   7027:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   7028: Motif flag is disabled.
                   7029: " >&5
                   7030: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   7031: Motif flag is disabled.
                   7032: " >&2;}
                   7033:    fi
                   7034:    LIBS=$LIBS_ORIG
                   7035:    CFLAGS=$CFLAGS_ORIG
                   7036: else
                   7037:    libX=""
1.1       bertrand 7038: fi
1.14      bertrand 7039: 
                   7040: 
                   7041: 
1.1       bertrand 7042: 
                   7043: 
1.15      bertrand 7044: 
                   7045: 
                   7046: 
                   7047: 
                   7048: 
                   7049: 
                   7050: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7051: 
                   7052: 
                   7053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7054: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7055: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7056:   $as_echo_n "(cached) " >&6
1.1       bertrand 7057: else
1.15      bertrand 7058:   ac_check_lib_save_LIBS=$LIBS
                   7059: LIBS="-lm  $LIBS"
                   7060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7061: /* end confdefs.h.  */
1.15      bertrand 7062: 
                   7063: 
1.1       bertrand 7064: int
                   7065: main ()
                   7066: {
1.15      bertrand 7067: return main ();
1.1       bertrand 7068:   ;
                   7069:   return 0;
                   7070: }
                   7071: _ACEOF
1.15      bertrand 7072: if ac_fn_c_try_link "$LINENO"; then :
                   7073:   ac_cv_lib_m_main=yes
1.1       bertrand 7074: else
1.15      bertrand 7075:   ac_cv_lib_m_main=no
                   7076: fi
                   7077: rm -f core conftest.err conftest.$ac_objext \
                   7078:     conftest$ac_exeext conftest.$ac_ext
                   7079: LIBS=$ac_check_lib_save_LIBS
                   7080: fi
                   7081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7082: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7083: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7084:   cat >>confdefs.h <<_ACEOF
                   7085: #define HAVE_LIBM 1
                   7086: _ACEOF
1.14      bertrand 7087: 
1.15      bertrand 7088:   LIBS="-lm $LIBS"
1.1       bertrand 7089: 
1.15      bertrand 7090: else
1.36      bertrand 7091:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7092: fi
                   7093: 
1.15      bertrand 7094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   7095: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7096: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7097:   $as_echo_n "(cached) " >&6
1.1       bertrand 7098: else
1.15      bertrand 7099:   ac_check_lib_save_LIBS=$LIBS
                   7100: LIBS="-lpthread  $LIBS"
                   7101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7102: /* end confdefs.h.  */
1.15      bertrand 7103: 
                   7104: 
1.14      bertrand 7105: int
                   7106: main ()
                   7107: {
1.15      bertrand 7108: return main ();
1.14      bertrand 7109:   ;
                   7110:   return 0;
                   7111: }
                   7112: _ACEOF
1.15      bertrand 7113: if ac_fn_c_try_link "$LINENO"; then :
                   7114:   ac_cv_lib_pthread_main=yes
                   7115: else
                   7116:   ac_cv_lib_pthread_main=no
                   7117: fi
                   7118: rm -f core conftest.err conftest.$ac_objext \
                   7119:     conftest$ac_exeext conftest.$ac_ext
                   7120: LIBS=$ac_check_lib_save_LIBS
                   7121: fi
                   7122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7123: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7124: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7125:   cat >>confdefs.h <<_ACEOF
                   7126: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7127: _ACEOF
                   7128: 
1.15      bertrand 7129:   LIBS="-lpthread $LIBS"
                   7130: 
1.1       bertrand 7131: else
1.36      bertrand 7132:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7133: fi
1.14      bertrand 7134: 
1.1       bertrand 7135: 
1.33      bertrand 7136: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7137: #include <sys/sem.h>
                   7138: 
                   7139: "
1.57      bertrand 7140: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7141:   SEMUN=-DUNION_SEMUN
                   7142: else
                   7143:   SEMUN=-UUNION_SEMUN
                   7144: fi
                   7145: 
                   7146: 
1.34      bertrand 7147: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7148: #include <sys/types.h>
1.34      bertrand 7149: #include <netinet/in.h>
                   7150: 
                   7151: "
1.57      bertrand 7152: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7153:   IPV6=-DIPV6
                   7154: else
                   7155:   IPV6=-UIPV6
                   7156: fi
                   7157: 
                   7158: 
1.15      bertrand 7159: if test "$CYGWIN" != yes; then
                   7160:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7161: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7162: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7163:   $as_echo_n "(cached) " >&6
1.1       bertrand 7164: else
1.15      bertrand 7165:   ac_check_lib_save_LIBS=$LIBS
                   7166: LIBS="-ldl  $LIBS"
                   7167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7168: /* end confdefs.h.  */
                   7169: 
1.15      bertrand 7170: /* Override any GCC internal prototype to avoid an error.
                   7171:    Use char because int might match the return type of a GCC
                   7172:    builtin and then its argument prototype would still apply.  */
                   7173: #ifdef __cplusplus
                   7174: extern "C"
                   7175: #endif
                   7176: char dlopen ();
1.1       bertrand 7177: int
                   7178: main ()
                   7179: {
1.15      bertrand 7180: return dlopen ();
1.1       bertrand 7181:   ;
                   7182:   return 0;
                   7183: }
                   7184: _ACEOF
1.15      bertrand 7185: if ac_fn_c_try_link "$LINENO"; then :
                   7186:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7187: else
1.15      bertrand 7188:   ac_cv_lib_dl_dlopen=no
                   7189: fi
                   7190: rm -f core conftest.err conftest.$ac_objext \
                   7191:     conftest$ac_exeext conftest.$ac_ext
                   7192: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7193: fi
1.15      bertrand 7194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7195: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7196: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7197:   LIBS="$LIBS -ldl"
1.14      bertrand 7198: else
1.15      bertrand 7199:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7200: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7201: fi
                   7202: 
1.14      bertrand 7203: fi
1.1       bertrand 7204: 
1.15      bertrand 7205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7206: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7207: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7208:   $as_echo_n "(cached) " >&6
                   7209: else
                   7210:   ac_check_lib_save_LIBS=$LIBS
                   7211: LIBS="-lrt  $LIBS"
                   7212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7213: /* end confdefs.h.  */
1.15      bertrand 7214: 
                   7215: /* Override any GCC internal prototype to avoid an error.
                   7216:    Use char because int might match the return type of a GCC
                   7217:    builtin and then its argument prototype would still apply.  */
                   7218: #ifdef __cplusplus
                   7219: extern "C"
                   7220: #endif
                   7221: char nanosleep ();
1.1       bertrand 7222: int
                   7223: main ()
                   7224: {
1.15      bertrand 7225: return nanosleep ();
1.1       bertrand 7226:   ;
                   7227:   return 0;
                   7228: }
                   7229: _ACEOF
1.15      bertrand 7230: if ac_fn_c_try_link "$LINENO"; then :
                   7231:   ac_cv_lib_rt_nanosleep=yes
                   7232: else
                   7233:   ac_cv_lib_rt_nanosleep=no
                   7234: fi
                   7235: rm -f core conftest.err conftest.$ac_objext \
                   7236:     conftest$ac_exeext conftest.$ac_ext
                   7237: LIBS=$ac_check_lib_save_LIBS
                   7238: fi
                   7239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7240: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7241: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7242:   LIBS="$LIBS -lrt"
1.1       bertrand 7243: else
1.15      bertrand 7244:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7245: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7246: fi
1.1       bertrand 7247: 
                   7248: 
1.15      bertrand 7249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7250: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7251: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7252:   $as_echo_n "(cached) " >&6
1.1       bertrand 7253: else
1.15      bertrand 7254:   ac_check_lib_save_LIBS=$LIBS
                   7255: LIBS="-lsocket  $LIBS"
                   7256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7257: /* end confdefs.h.  */
1.15      bertrand 7258: 
                   7259: /* Override any GCC internal prototype to avoid an error.
                   7260:    Use char because int might match the return type of a GCC
                   7261:    builtin and then its argument prototype would still apply.  */
                   7262: #ifdef __cplusplus
                   7263: extern "C"
                   7264: #endif
                   7265: char bind ();
1.1       bertrand 7266: int
                   7267: main ()
                   7268: {
1.15      bertrand 7269: return bind ();
1.1       bertrand 7270:   ;
                   7271:   return 0;
                   7272: }
                   7273: _ACEOF
1.15      bertrand 7274: if ac_fn_c_try_link "$LINENO"; then :
                   7275:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7276: else
1.15      bertrand 7277:   ac_cv_lib_socket_bind=no
1.1       bertrand 7278: fi
1.15      bertrand 7279: rm -f core conftest.err conftest.$ac_objext \
                   7280:     conftest$ac_exeext conftest.$ac_ext
                   7281: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7282: fi
1.15      bertrand 7283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7284: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7285: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7286:   LIBS="$LIBS -lsocket"
                   7287: else
                   7288:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7289: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7290: fi
                   7291: 
                   7292: 
1.15      bertrand 7293: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7294: 
                   7295: # Check whether --with-mysql was given.
                   7296: if test "${with_mysql+set}" = set; then :
                   7297:   withval=$with_mysql;
                   7298: else
                   7299:   with_mysql=check
                   7300: fi
1.14      bertrand 7301: 
                   7302: 
1.15      bertrand 7303: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7304:    libMySQLinc="-I/usr/include"
1.30      bertrand 7305:    libMySQLlib="/usr/lib"
1.14      bertrand 7306: 
1.15      bertrand 7307:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7308: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7309:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7310:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7311:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7312: /* end confdefs.h.  */
1.15      bertrand 7313: #include "mysql.h"
1.1       bertrand 7314: int
                   7315: main ()
                   7316: {
1.15      bertrand 7317: 
1.1       bertrand 7318:   ;
                   7319:   return 0;
                   7320: }
                   7321: _ACEOF
1.15      bertrand 7322: if ac_fn_c_try_compile "$LINENO"; then :
                   7323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7324: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7325:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7326: else
1.15      bertrand 7327:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7328: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7329: fi
1.14      bertrand 7330: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7331:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7332: 
1.15      bertrand 7333:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7334:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7335: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7336:        saved_CFLAGS="$CFLAGS"
                   7337:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7338:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7339: /* end confdefs.h.  */
1.15      bertrand 7340: #include "mysql.h"
1.1       bertrand 7341: int
                   7342: main ()
                   7343: {
                   7344: 
                   7345:   ;
                   7346:   return 0;
                   7347: }
                   7348: _ACEOF
1.15      bertrand 7349: if ac_fn_c_try_compile "$LINENO"; then :
                   7350:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7351: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7352:                        libMySQLinc=$libMySQLinc
                   7353: else
                   7354:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7355: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7356: fi
                   7357: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7358:        CFLAGS=$saved_CFLAGS
                   7359:        libMySQLinc=$libMySQLinc/mysql
                   7360:    fi
                   7361: 
                   7362:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7363:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7364: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7365:        saved_CFLAGS="$CFLAGS"
                   7366:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7367:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7368: /* end confdefs.h.  */
1.15      bertrand 7369: #include "mysql.h"
1.1       bertrand 7370: int
                   7371: main ()
                   7372: {
                   7373: 
                   7374:   ;
                   7375:   return 0;
                   7376: }
                   7377: _ACEOF
1.15      bertrand 7378: if ac_fn_c_try_compile "$LINENO"; then :
                   7379:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7380: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7381:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7382: else
1.15      bertrand 7383:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7384: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7385: fi
                   7386: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7387:        CFLAGS=$saved_CFLAGS
                   7388:        libMySQLinc=$libMySQLinc/../local/include
                   7389:        libMySQLlib=$libMySQLlib/../local/lib
                   7390:    fi
1.1       bertrand 7391: 
1.15      bertrand 7392:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7393:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7394: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7395:        saved_CFLAGS="$CFLAGS"
                   7396:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7397:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7398: /* end confdefs.h.  */
1.15      bertrand 7399: #include "mysql.h"
1.1       bertrand 7400: int
                   7401: main ()
                   7402: {
                   7403: 
                   7404:   ;
                   7405:   return 0;
                   7406: }
                   7407: _ACEOF
1.15      bertrand 7408: if ac_fn_c_try_compile "$LINENO"; then :
                   7409:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7410: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7411:                        libMySQLinc=$libMySQLinc/mysql
                   7412: else
                   7413:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7414: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7415: fi
                   7416: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7417:        CFLAGS=$saved_CFLAGS
                   7418:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7419:        libMySQLlib=$libMySQLlib/../local/lib
                   7420:    fi
                   7421: else
                   7422:    if test "x$with_mysql" != xno; then
                   7423:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7424:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7425: 
                   7426:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7427: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7428:        saved_CFLAGS="$CFLAGS"
                   7429:        CFLAGS="$CFLAGS $libMySQLinc"
                   7430:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7431: /* end confdefs.h.  */
1.15      bertrand 7432: #include "mysql.h"
1.1       bertrand 7433: int
                   7434: main ()
                   7435: {
                   7436: 
                   7437:   ;
                   7438:   return 0;
                   7439: }
                   7440: _ACEOF
1.15      bertrand 7441: if ac_fn_c_try_compile "$LINENO"; then :
                   7442:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7443: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7444:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7445: else
1.15      bertrand 7446:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7447: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7448: fi
                   7449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7450:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7451: 
1.15      bertrand 7452:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7453:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7454: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7455:            saved_CFLAGS="$CFLAGS"
                   7456:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7457:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7458: /* end confdefs.h.  */
1.15      bertrand 7459: #include "mysql.h"
1.1       bertrand 7460: int
                   7461: main ()
                   7462: {
                   7463: 
                   7464:   ;
                   7465:   return 0;
                   7466: }
                   7467: _ACEOF
1.15      bertrand 7468: if ac_fn_c_try_compile "$LINENO"; then :
                   7469:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7470: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7471:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7472: else
1.15      bertrand 7473:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7474: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7475: fi
                   7476: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7477:            CFLAGS=$saved_CFLAGS
                   7478:            libMySQLinc=$libMySQLinc/mysql
                   7479:        fi
                   7480:    else
                   7481:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7482:    fi
                   7483: fi
1.14      bertrand 7484: 
1.15      bertrand 7485: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7486:    MYSQL_LIB=no
1.14      bertrand 7487: 
1.15      bertrand 7488:    if test $MYSQL_LIB = no; then
                   7489:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7490: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7491:        saved_LIBS="$LIBS"
1.30      bertrand 7492:        if test $STATIC = no; then
                   7493:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7494:        else
                   7495:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7496:        fi
1.15      bertrand 7497:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7498: /* end confdefs.h.  */
1.15      bertrand 7499: #include "mysql.h"
1.1       bertrand 7500: int
                   7501: main ()
                   7502: {
1.15      bertrand 7503: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7504:   ;
                   7505:   return 0;
                   7506: }
                   7507: _ACEOF
1.15      bertrand 7508: if ac_fn_c_try_link "$LINENO"; then :
                   7509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7510: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7511: else
1.15      bertrand 7512:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7513: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7514: fi
                   7515: rm -f core conftest.err conftest.$ac_objext \
                   7516:     conftest$ac_exeext conftest.$ac_ext
                   7517:        LIBS=$saved_LIBS;
1.30      bertrand 7518:        if test $STATIC = no; then
                   7519:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7520:        else
                   7521:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7522:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7523:        fi
1.15      bertrand 7524:    fi
1.14      bertrand 7525: 
1.15      bertrand 7526:    if test $MYSQL_LIB = no; then
                   7527:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7528:    fi
1.14      bertrand 7529: fi
1.15      bertrand 7530: 
                   7531: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7532:    libMySQLinc=
                   7533:    libMySQLlib=
1.1       bertrand 7534: fi
1.14      bertrand 7535: 
                   7536: 
                   7537: 
1.1       bertrand 7538: 
                   7539: 
1.15      bertrand 7540: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7541: 
                   7542: # Check whether --with-postgresql was given.
                   7543: if test "${with_postgresql+set}" = set; then :
                   7544:   withval=$with_postgresql;
1.14      bertrand 7545: else
1.15      bertrand 7546:   with_postgresql=check
                   7547: fi
                   7548: 
                   7549: 
                   7550: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7551: # no [--without], valeur [--with=valeur].
                   7552: 
                   7553: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7554:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7555:    libPgSQLlib="/usr/lib"
1.15      bertrand 7556: 
                   7557:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7558: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7559:    saved_CFLAGS="$CFLAGS"
                   7560:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7561:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7562: /* end confdefs.h.  */
1.15      bertrand 7563: #include "libpq-fe.h"
1.1       bertrand 7564: int
                   7565: main ()
                   7566: {
1.15      bertrand 7567: 
1.1       bertrand 7568:   ;
                   7569:   return 0;
                   7570: }
                   7571: _ACEOF
1.15      bertrand 7572: if ac_fn_c_try_compile "$LINENO"; then :
                   7573:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7574: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7575: else
1.15      bertrand 7576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7577: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7578: fi
1.14      bertrand 7579: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7580:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7581: 
1.15      bertrand 7582:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7583:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7584: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7585:        saved_CFLAGS="$CFLAGS"
                   7586:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7587:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7588: /* end confdefs.h.  */
1.15      bertrand 7589: #include "libpq-fe.h"
1.1       bertrand 7590: int
                   7591: main ()
                   7592: {
                   7593: 
                   7594:   ;
                   7595:   return 0;
                   7596: }
                   7597: _ACEOF
1.15      bertrand 7598: if ac_fn_c_try_compile "$LINENO"; then :
                   7599:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7600: $as_echo "yes" >&6; };
                   7601:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7602: else
                   7603:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7604: $as_echo "no" >&6; };
                   7605:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7606: fi
                   7607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7608:        CFLAGS=$saved_CFLAGS
                   7609:        libPgSQLinc=$libPgSQLinc/postgresql
                   7610:    fi
                   7611: 
                   7612:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7613:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7614: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7615:        saved_CFLAGS="$CFLAGS"
                   7616:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7617:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7618: /* end confdefs.h.  */
1.15      bertrand 7619: #include "libpq-fe.h"
1.1       bertrand 7620: int
                   7621: main ()
                   7622: {
                   7623: 
                   7624:   ;
                   7625:   return 0;
                   7626: }
                   7627: _ACEOF
1.15      bertrand 7628: if ac_fn_c_try_compile "$LINENO"; then :
                   7629:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7630: $as_echo "yes" >&6; };
                   7631:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7632: else
1.15      bertrand 7633:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7634: $as_echo "no" >&6; };
                   7635:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7636: fi
                   7637: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7638:        CFLAGS=$saved_CFLAGS
                   7639:        libPgSQLinc=$libPgSQLinc/pgsql
                   7640:    fi
1.1       bertrand 7641: 
1.15      bertrand 7642:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7643:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7644: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7645:        saved_CFLAGS="$CFLAGS"
                   7646:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7647:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7648: /* end confdefs.h.  */
1.15      bertrand 7649: #include "libpq-fe.h"
1.1       bertrand 7650: int
                   7651: main ()
                   7652: {
                   7653: 
                   7654:   ;
                   7655:   return 0;
                   7656: }
                   7657: _ACEOF
1.15      bertrand 7658: if ac_fn_c_try_compile "$LINENO"; then :
                   7659:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7660: $as_echo "yes" >&6; };
                   7661:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7662: else
                   7663:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7664: $as_echo "no" >&6; };
                   7665:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7666: fi
                   7667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7668:        CFLAGS=$saved_CFLAGS
                   7669:        libPgSQLinc=$libPgSQLinc/../local/include
                   7670:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7671:    fi
                   7672: 
                   7673:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7674:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7675: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7676:        saved_CFLAGS="$CFLAGS"
                   7677:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7678:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7679: /* end confdefs.h.  */
1.15      bertrand 7680: #include "libpq-fe.h"
1.1       bertrand 7681: int
                   7682: main ()
                   7683: {
                   7684: 
                   7685:   ;
                   7686:   return 0;
                   7687: }
                   7688: _ACEOF
1.15      bertrand 7689: if ac_fn_c_try_compile "$LINENO"; then :
                   7690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7691: $as_echo "yes" >&6; };
                   7692:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7693: else
1.15      bertrand 7694:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7695: $as_echo "no" >&6; };
                   7696:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7697: fi
                   7698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7699:        CFLAGS=$saved_CFLAGS
                   7700:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7701:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7702:    fi
1.14      bertrand 7703: 
1.15      bertrand 7704:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7705:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7706: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7707:        saved_CFLAGS="$CFLAGS"
                   7708:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7709:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7710: /* end confdefs.h.  */
1.15      bertrand 7711: #include "libpq-fe.h"
1.1       bertrand 7712: int
                   7713: main ()
                   7714: {
                   7715: 
                   7716:   ;
                   7717:   return 0;
                   7718: }
                   7719: _ACEOF
1.15      bertrand 7720: if ac_fn_c_try_compile "$LINENO"; then :
                   7721:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7722: $as_echo "yes" >&6; };
                   7723:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7724: else
1.15      bertrand 7725:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7726: $as_echo "no" >&6; };
                   7727:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7728: fi
                   7729: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7730:        CFLAGS=$saved_CFLAGS
                   7731:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7732:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7733:    fi
1.14      bertrand 7734: else
1.15      bertrand 7735:    if test "x$with_postgresql" != xno; then
                   7736:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7737:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7738: 
                   7739:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7740: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7741:        saved_CFLAGS="$CFLAGS"
                   7742:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7743:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7744: /* end confdefs.h.  */
1.15      bertrand 7745: #include "libpq-fe.h"
1.1       bertrand 7746: int
                   7747: main ()
                   7748: {
                   7749: 
                   7750:   ;
                   7751:   return 0;
                   7752: }
                   7753: _ACEOF
1.15      bertrand 7754: if ac_fn_c_try_compile "$LINENO"; then :
                   7755:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7756: $as_echo "yes" >&6; };
                   7757:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7758: else
1.15      bertrand 7759:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7760: $as_echo "no" >&6; };
                   7761:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7762: fi
1.15      bertrand 7763: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7764:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7765: 
1.15      bertrand 7766:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7767:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7768: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7769:            saved_CFLAGS="$CFLAGS"
                   7770:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7771:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7772: /* end confdefs.h.  */
1.15      bertrand 7773: #include "libpq-fe.h"
1.1       bertrand 7774: int
                   7775: main ()
                   7776: {
1.15      bertrand 7777: 
1.1       bertrand 7778:   ;
                   7779:   return 0;
                   7780: }
                   7781: _ACEOF
1.15      bertrand 7782: if ac_fn_c_try_compile "$LINENO"; then :
                   7783:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7784: $as_echo "yes" >&6; };
                   7785:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7786: else
1.15      bertrand 7787:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7788: $as_echo "no" >&6; };
                   7789:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7790: fi
                   7791: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7792:            CFLAGS=$saved_CFLAGS
                   7793:            libPgSQLinc=$libPgSQLinc/postgresql
                   7794:        fi
1.14      bertrand 7795: 
1.15      bertrand 7796:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7797:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7798: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7799:            saved_CFLAGS="$CFLAGS"
                   7800:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7801:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7802: /* end confdefs.h.  */
1.15      bertrand 7803: #include "libpq-fe.h"
1.1       bertrand 7804: int
                   7805: main ()
                   7806: {
1.15      bertrand 7807: 
1.1       bertrand 7808:   ;
                   7809:   return 0;
                   7810: }
                   7811: _ACEOF
1.15      bertrand 7812: if ac_fn_c_try_compile "$LINENO"; then :
                   7813:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7814: $as_echo "yes" >&6; };
                   7815:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7816: else
1.15      bertrand 7817:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7818: $as_echo "no" >&6; };
                   7819:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7820: fi
1.15      bertrand 7821: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7822:            CFLAGS=$saved_CFLAGS
                   7823:            libPgSQLinc=$libPgSQLinc/pgsql
                   7824:        fi
                   7825:    else
                   7826:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7827:    fi
1.1       bertrand 7828: fi
                   7829: 
1.15      bertrand 7830: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7831:    POSTGRESQL_LIB=no
1.1       bertrand 7832: 
1.15      bertrand 7833:    if test $POSTGRESQL_LIB = no; then
                   7834:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7835: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7836:        saved_LIBS="$LIBS"
1.30      bertrand 7837:        if test $STATIC = no; then
                   7838:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7839:        else
                   7840:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7841:        fi
1.15      bertrand 7842:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7843: /* end confdefs.h.  */
1.15      bertrand 7844: #include "libpq-fe.h"
1.1       bertrand 7845: int
                   7846: main ()
                   7847: {
1.15      bertrand 7848: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7849:             PQconnectdb(conninfo);
1.1       bertrand 7850:   ;
                   7851:   return 0;
                   7852: }
                   7853: _ACEOF
1.15      bertrand 7854: if ac_fn_c_try_link "$LINENO"; then :
                   7855:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7856: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7857: else
1.15      bertrand 7858:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7859: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7860: fi
                   7861: rm -f core conftest.err conftest.$ac_objext \
                   7862:     conftest$ac_exeext conftest.$ac_ext
                   7863:        LIBS=$saved_LIBS;
1.30      bertrand 7864:        if test $STATIC = no; then
                   7865:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7866:        else
                   7867:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7868:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7869:        fi
1.15      bertrand 7870:    fi
                   7871: fi
                   7872: 
                   7873: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7874:    libPgSQLinc=
                   7875:    libPgSQLlib=
                   7876: fi
                   7877: 
                   7878: 
                   7879: 
                   7880: 
1.14      bertrand 7881: 
1.40      bertrand 7882: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7883: # no [--without], valeur [--with=valeur].
                   7884: 
                   7885: # Check whether --with-bourne_shell was given.
                   7886: if test "${with_bourne_shell+set}" = set; then :
                   7887:   withval=$with_bourne_shell;
                   7888: else
                   7889:   with_bourne_shell=no
                   7890: fi
                   7891: 
                   7892: 
                   7893: if test "x$with_bourne_shell" = xyes; then
                   7894:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7895: fi
                   7896: 
                   7897: if test "x$with_bourne_shell" = xno; then
                   7898:    if test $(uname) = "OS/2"; then
                   7899:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7900:    fi
                   7901: 
                   7902:    BSH_PATH=
                   7903: else
                   7904:    if test ! -x $with_bourne_shell; then
                   7905:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7906:    fi
                   7907: 
                   7908:    if test $(uname) = "OS/2"; then
1.41      bertrand 7909:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7910:                sed -e '1,$s/\//\\\\\\\\/g')
                   7911:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7912:    else
                   7913:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7914: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7915:        BSH_PATH=
                   7916:    fi
                   7917: fi
                   7918: 
1.15      bertrand 7919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7920: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7921: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7922:   $as_echo_n "(cached) " >&6
                   7923: else
                   7924:   if test -z "$GREP"; then
                   7925:   ac_path_GREP_found=false
                   7926:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7927:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7928: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7929: do
                   7930:   IFS=$as_save_IFS
                   7931:   test -z "$as_dir" && as_dir=.
                   7932:     for ac_prog in grep ggrep; do
                   7933:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7934:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7935:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7936: # Check for GNU ac_path_GREP and select it if it is found.
                   7937:   # Check for GNU $ac_path_GREP
                   7938: case `"$ac_path_GREP" --version 2>&1` in
                   7939: *GNU*)
                   7940:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7941: *)
                   7942:   ac_count=0
                   7943:   $as_echo_n 0123456789 >"conftest.in"
                   7944:   while :
                   7945:   do
                   7946:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7947:     mv "conftest.tmp" "conftest.in"
                   7948:     cp "conftest.in" "conftest.nl"
                   7949:     $as_echo 'GREP' >> "conftest.nl"
                   7950:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7951:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7952:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7953:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7954:       # Best one so far, save it but keep looking for a better one
                   7955:       ac_cv_path_GREP="$ac_path_GREP"
                   7956:       ac_path_GREP_max=$ac_count
                   7957:     fi
                   7958:     # 10*(2^10) chars as input seems more than enough
                   7959:     test $ac_count -gt 10 && break
                   7960:   done
                   7961:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7962: esac
1.14      bertrand 7963: 
1.15      bertrand 7964:       $ac_path_GREP_found && break 3
                   7965:     done
                   7966:   done
                   7967:   done
                   7968: IFS=$as_save_IFS
                   7969:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7970:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7971:   fi
                   7972: else
                   7973:   ac_cv_path_GREP=$GREP
1.1       bertrand 7974: fi
                   7975: 
                   7976: fi
1.15      bertrand 7977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7978: $as_echo "$ac_cv_path_GREP" >&6; }
                   7979:  GREP="$ac_cv_path_GREP"
                   7980: 
                   7981: 
                   7982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7983: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 7984: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 7985:   $as_echo_n "(cached) " >&6
                   7986: else
                   7987:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7988:    then ac_cv_path_EGREP="$GREP -E"
                   7989:    else
                   7990:      if test -z "$EGREP"; then
                   7991:   ac_path_EGREP_found=false
                   7992:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7993:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7994: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7995: do
                   7996:   IFS=$as_save_IFS
                   7997:   test -z "$as_dir" && as_dir=.
                   7998:     for ac_prog in egrep; do
                   7999:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8000:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8001:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8002: # Check for GNU ac_path_EGREP and select it if it is found.
                   8003:   # Check for GNU $ac_path_EGREP
                   8004: case `"$ac_path_EGREP" --version 2>&1` in
                   8005: *GNU*)
                   8006:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8007: *)
                   8008:   ac_count=0
                   8009:   $as_echo_n 0123456789 >"conftest.in"
                   8010:   while :
                   8011:   do
                   8012:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8013:     mv "conftest.tmp" "conftest.in"
                   8014:     cp "conftest.in" "conftest.nl"
                   8015:     $as_echo 'EGREP' >> "conftest.nl"
                   8016:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8017:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8018:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8019:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8020:       # Best one so far, save it but keep looking for a better one
                   8021:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8022:       ac_path_EGREP_max=$ac_count
                   8023:     fi
                   8024:     # 10*(2^10) chars as input seems more than enough
                   8025:     test $ac_count -gt 10 && break
                   8026:   done
                   8027:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8028: esac
                   8029: 
                   8030:       $ac_path_EGREP_found && break 3
                   8031:     done
                   8032:   done
                   8033:   done
                   8034: IFS=$as_save_IFS
                   8035:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8036:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8037:   fi
1.1       bertrand 8038: else
1.15      bertrand 8039:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8040: fi
                   8041: 
1.15      bertrand 8042:    fi
1.1       bertrand 8043: fi
1.15      bertrand 8044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8045: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8046:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8047: 
                   8048: 
1.15      bertrand 8049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8050: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8051: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8052:   $as_echo_n "(cached) " >&6
1.1       bertrand 8053: else
1.15      bertrand 8054:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8055: /* end confdefs.h.  */
                   8056: #include <stdlib.h>
                   8057: #include <stdarg.h>
                   8058: #include <string.h>
                   8059: #include <float.h>
                   8060: 
                   8061: int
                   8062: main ()
                   8063: {
                   8064: 
                   8065:   ;
                   8066:   return 0;
                   8067: }
                   8068: _ACEOF
1.15      bertrand 8069: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8070:   ac_cv_header_stdc=yes
                   8071: else
1.15      bertrand 8072:   ac_cv_header_stdc=no
1.1       bertrand 8073: fi
                   8074: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8075: 
                   8076: if test $ac_cv_header_stdc = yes; then
                   8077:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8078:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8079: /* end confdefs.h.  */
                   8080: #include <string.h>
                   8081: 
                   8082: _ACEOF
                   8083: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8084:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8085: 
1.1       bertrand 8086: else
                   8087:   ac_cv_header_stdc=no
                   8088: fi
                   8089: rm -f conftest*
                   8090: 
                   8091: fi
                   8092: 
                   8093: if test $ac_cv_header_stdc = yes; then
                   8094:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8095:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8096: /* end confdefs.h.  */
                   8097: #include <stdlib.h>
                   8098: 
                   8099: _ACEOF
                   8100: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8101:   $EGREP "free" >/dev/null 2>&1; then :
                   8102: 
1.1       bertrand 8103: else
                   8104:   ac_cv_header_stdc=no
                   8105: fi
                   8106: rm -f conftest*
                   8107: 
                   8108: fi
                   8109: 
                   8110: if test $ac_cv_header_stdc = yes; then
                   8111:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8112:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8113:   :
                   8114: else
1.15      bertrand 8115:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8116: /* end confdefs.h.  */
                   8117: #include <ctype.h>
                   8118: #include <stdlib.h>
                   8119: #if ((' ' & 0x0FF) == 0x020)
                   8120: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8121: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8122: #else
                   8123: # define ISLOWER(c) \
                   8124:           (('a' <= (c) && (c) <= 'i') \
                   8125:             || ('j' <= (c) && (c) <= 'r') \
                   8126:             || ('s' <= (c) && (c) <= 'z'))
                   8127: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8128: #endif
                   8129: 
                   8130: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8131: int
                   8132: main ()
                   8133: {
                   8134:   int i;
                   8135:   for (i = 0; i < 256; i++)
                   8136:     if (XOR (islower (i), ISLOWER (i))
                   8137:    || toupper (i) != TOUPPER (i))
                   8138:       return 2;
                   8139:   return 0;
                   8140: }
                   8141: _ACEOF
1.15      bertrand 8142: if ac_fn_c_try_run "$LINENO"; then :
                   8143: 
1.14      bertrand 8144: else
1.15      bertrand 8145:   ac_cv_header_stdc=no
                   8146: fi
                   8147: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8148:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8149: fi
1.1       bertrand 8150: 
                   8151: fi
                   8152: fi
1.15      bertrand 8153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8154: $as_echo "$ac_cv_header_stdc" >&6; }
                   8155: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8156: 
1.15      bertrand 8157: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8158: 
1.1       bertrand 8159: fi
                   8160: 
1.15      bertrand 8161: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8162: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8163:          inttypes.h stdint.h unistd.h
                   8164: do :
                   8165:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8166: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8167: "
1.36      bertrand 8168: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8169:   cat >>confdefs.h <<_ACEOF
                   8170: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8171: _ACEOF
1.1       bertrand 8172: 
                   8173: fi
                   8174: 
1.15      bertrand 8175: done
                   8176: 
                   8177: 
                   8178: # The cast to long int works around a bug in the HP C Compiler
                   8179: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8180: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8181: # This bug is HP SR number 8606223364.
                   8182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8183: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8184: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8185:   $as_echo_n "(cached) " >&6
                   8186: else
                   8187:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8188: 
                   8189: else
1.15      bertrand 8190:   if test "$ac_cv_type_void_p" = yes; then
                   8191:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8192: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8193: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8194: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8195:    else
                   8196:      ac_cv_sizeof_void_p=0
                   8197:    fi
                   8198: fi
1.1       bertrand 8199: 
                   8200: fi
1.15      bertrand 8201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8202: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8203: 
1.1       bertrand 8204: 
                   8205: 
1.15      bertrand 8206: cat >>confdefs.h <<_ACEOF
                   8207: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8208: _ACEOF
1.1       bertrand 8209: 
1.15      bertrand 8210: 
                   8211: # The cast to long int works around a bug in the HP C Compiler
                   8212: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8213: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8214: # This bug is HP SR number 8606223364.
                   8215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8216: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8217: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8218:   $as_echo_n "(cached) " >&6
                   8219: else
                   8220:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8221: 
                   8222: else
                   8223:   if test "$ac_cv_type_char" = yes; then
                   8224:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8225: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8226: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8227: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8228:    else
                   8229:      ac_cv_sizeof_char=0
                   8230:    fi
                   8231: fi
                   8232: 
1.1       bertrand 8233: fi
1.15      bertrand 8234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8235: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8236: 
                   8237: 
                   8238: 
1.15      bertrand 8239: cat >>confdefs.h <<_ACEOF
                   8240: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8241: _ACEOF
1.1       bertrand 8242: 
                   8243: 
1.15      bertrand 8244: # The cast to long int works around a bug in the HP C Compiler
                   8245: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8246: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8247: # This bug is HP SR number 8606223364.
                   8248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8249: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8250: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8251:   $as_echo_n "(cached) " >&6
                   8252: else
                   8253:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8254: 
1.15      bertrand 8255: else
                   8256:   if test "$ac_cv_type_short_int" = yes; then
                   8257:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8258: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8259: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8260: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8261:    else
                   8262:      ac_cv_sizeof_short_int=0
                   8263:    fi
                   8264: fi
1.1       bertrand 8265: 
1.15      bertrand 8266: fi
                   8267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8268: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8269: 
                   8270: 
                   8271: 
1.15      bertrand 8272: cat >>confdefs.h <<_ACEOF
                   8273: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8274: _ACEOF
1.1       bertrand 8275: 
                   8276: 
1.15      bertrand 8277: # The cast to long int works around a bug in the HP C Compiler
                   8278: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8279: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8280: # This bug is HP SR number 8606223364.
                   8281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8282: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8283: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8284:   $as_echo_n "(cached) " >&6
                   8285: else
                   8286:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8287: 
1.15      bertrand 8288: else
                   8289:   if test "$ac_cv_type_int" = yes; then
                   8290:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8291: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8292: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8293: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8294:    else
                   8295:      ac_cv_sizeof_int=0
                   8296:    fi
                   8297: fi
1.1       bertrand 8298: 
1.15      bertrand 8299: fi
                   8300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8301: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8302: 
                   8303: 
                   8304: 
1.15      bertrand 8305: cat >>confdefs.h <<_ACEOF
                   8306: #define SIZEOF_INT $ac_cv_sizeof_int
                   8307: _ACEOF
1.1       bertrand 8308: 
                   8309: 
1.15      bertrand 8310: # The cast to long int works around a bug in the HP C Compiler
                   8311: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8312: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8313: # This bug is HP SR number 8606223364.
                   8314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8315: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8316: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8317:   $as_echo_n "(cached) " >&6
                   8318: else
                   8319:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8320: 
1.14      bertrand 8321: else
1.15      bertrand 8322:   if test "$ac_cv_type_long_int" = yes; then
                   8323:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8324: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8325: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8326: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8327:    else
                   8328:      ac_cv_sizeof_long_int=0
                   8329:    fi
                   8330: fi
1.1       bertrand 8331: 
                   8332: fi
1.15      bertrand 8333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8334: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8335: 
1.1       bertrand 8336: 
                   8337: 
1.15      bertrand 8338: cat >>confdefs.h <<_ACEOF
                   8339: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8340: _ACEOF
1.15      bertrand 8341: 
                   8342: 
                   8343: # The cast to long int works around a bug in the HP C Compiler
                   8344: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8345: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8346: # This bug is HP SR number 8606223364.
                   8347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8348: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8349: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8350:   $as_echo_n "(cached) " >&6
                   8351: else
                   8352:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8353: 
1.14      bertrand 8354: else
1.15      bertrand 8355:   if test "$ac_cv_type_long_long_int" = yes; then
                   8356:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8357: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8358: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8359: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8360:    else
                   8361:      ac_cv_sizeof_long_long_int=0
                   8362:    fi
                   8363: fi
1.1       bertrand 8364: 
1.14      bertrand 8365: fi
1.15      bertrand 8366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8367: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8368: 
                   8369: 
                   8370: 
                   8371: cat >>confdefs.h <<_ACEOF
                   8372: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8373: _ACEOF
1.1       bertrand 8374: 
                   8375: 
1.15      bertrand 8376: # The cast to long int works around a bug in the HP C Compiler
                   8377: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8378: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8379: # This bug is HP SR number 8606223364.
                   8380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8381: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8382: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8383:   $as_echo_n "(cached) " >&6
                   8384: else
                   8385:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8386: 
                   8387: else
1.15      bertrand 8388:   if test "$ac_cv_type_float" = yes; then
                   8389:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8390: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8391: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8392: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8393:    else
                   8394:      ac_cv_sizeof_float=0
                   8395:    fi
1.14      bertrand 8396: fi
                   8397: 
1.1       bertrand 8398: fi
1.15      bertrand 8399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8400: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8401: 
                   8402: 
                   8403: 
                   8404: cat >>confdefs.h <<_ACEOF
                   8405: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8406: _ACEOF
1.1       bertrand 8407: 
                   8408: 
1.15      bertrand 8409: # The cast to long int works around a bug in the HP C Compiler
                   8410: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8411: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8412: # This bug is HP SR number 8606223364.
                   8413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8414: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8415: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8416:   $as_echo_n "(cached) " >&6
                   8417: else
                   8418:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8419: 
1.15      bertrand 8420: else
                   8421:   if test "$ac_cv_type_double" = yes; then
                   8422:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8423: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8424: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8425: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8426:    else
                   8427:      ac_cv_sizeof_double=0
                   8428:    fi
                   8429: fi
1.1       bertrand 8430: 
1.15      bertrand 8431: fi
                   8432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8433: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8434: 
1.1       bertrand 8435: 
                   8436: 
1.15      bertrand 8437: cat >>confdefs.h <<_ACEOF
                   8438: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8439: _ACEOF
1.15      bertrand 8440: 
                   8441: 
                   8442: # The cast to long int works around a bug in the HP C Compiler
                   8443: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8444: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8445: # This bug is HP SR number 8606223364.
                   8446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8447: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8448: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8449:   $as_echo_n "(cached) " >&6
                   8450: else
                   8451:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8452: 
1.14      bertrand 8453: else
1.15      bertrand 8454:   if test "$ac_cv_type_long_double" = yes; then
                   8455:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8456: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8457: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8458: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8459:    else
                   8460:      ac_cv_sizeof_long_double=0
                   8461:    fi
                   8462: fi
1.1       bertrand 8463: 
                   8464: fi
1.15      bertrand 8465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8466: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8467: 
1.1       bertrand 8468: 
                   8469: 
1.15      bertrand 8470: cat >>confdefs.h <<_ACEOF
                   8471: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8472: _ACEOF
                   8473: 
                   8474: 
1.15      bertrand 8475: 
                   8476: ac_header_dirent=no
                   8477: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8478:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8480: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8481: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8482:   $as_echo_n "(cached) " >&6
1.1       bertrand 8483: else
1.15      bertrand 8484:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8485: /* end confdefs.h.  */
                   8486: #include <sys/types.h>
1.15      bertrand 8487: #include <$ac_hdr>
1.1       bertrand 8488: 
1.15      bertrand 8489: int
                   8490: main ()
                   8491: {
                   8492: if ((DIR *) 0)
                   8493: return 0;
                   8494:   ;
                   8495:   return 0;
                   8496: }
1.1       bertrand 8497: _ACEOF
1.15      bertrand 8498: if ac_fn_c_try_compile "$LINENO"; then :
                   8499:   eval "$as_ac_Header=yes"
1.1       bertrand 8500: else
1.15      bertrand 8501:   eval "$as_ac_Header=no"
                   8502: fi
                   8503: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8504: fi
1.15      bertrand 8505: eval ac_res=\$$as_ac_Header
                   8506:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8507: $as_echo "$ac_res" >&6; }
1.36      bertrand 8508: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8509:   cat >>confdefs.h <<_ACEOF
                   8510: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8511: _ACEOF
1.1       bertrand 8512: 
1.15      bertrand 8513: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8514: fi
                   8515: 
1.15      bertrand 8516: done
                   8517: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8518: if test $ac_header_dirent = dirent.h; then
                   8519:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8520: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8521: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8522:   $as_echo_n "(cached) " >&6
                   8523: else
                   8524:   ac_func_search_save_LIBS=$LIBS
                   8525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8526: /* end confdefs.h.  */
                   8527: 
                   8528: /* Override any GCC internal prototype to avoid an error.
                   8529:    Use char because int might match the return type of a GCC
                   8530:    builtin and then its argument prototype would still apply.  */
                   8531: #ifdef __cplusplus
                   8532: extern "C"
                   8533: #endif
                   8534: char opendir ();
                   8535: int
                   8536: main ()
                   8537: {
                   8538: return opendir ();
                   8539:   ;
                   8540:   return 0;
                   8541: }
1.14      bertrand 8542: _ACEOF
1.15      bertrand 8543: for ac_lib in '' dir; do
                   8544:   if test -z "$ac_lib"; then
                   8545:     ac_res="none required"
                   8546:   else
                   8547:     ac_res=-l$ac_lib
                   8548:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8549:   fi
                   8550:   if ac_fn_c_try_link "$LINENO"; then :
                   8551:   ac_cv_search_opendir=$ac_res
                   8552: fi
                   8553: rm -f core conftest.err conftest.$ac_objext \
                   8554:     conftest$ac_exeext
1.57      bertrand 8555:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8556:   break
                   8557: fi
                   8558: done
1.57      bertrand 8559: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8560: 
1.15      bertrand 8561: else
                   8562:   ac_cv_search_opendir=no
                   8563: fi
                   8564: rm conftest.$ac_ext
                   8565: LIBS=$ac_func_search_save_LIBS
                   8566: fi
                   8567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8568: $as_echo "$ac_cv_search_opendir" >&6; }
                   8569: ac_res=$ac_cv_search_opendir
                   8570: if test "$ac_res" != no; then :
                   8571:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8572: 
1.14      bertrand 8573: fi
1.1       bertrand 8574: 
                   8575: else
1.15      bertrand 8576:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8577: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8578: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8579:   $as_echo_n "(cached) " >&6
                   8580: else
                   8581:   ac_func_search_save_LIBS=$LIBS
                   8582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8583: /* end confdefs.h.  */
1.15      bertrand 8584: 
                   8585: /* Override any GCC internal prototype to avoid an error.
                   8586:    Use char because int might match the return type of a GCC
                   8587:    builtin and then its argument prototype would still apply.  */
                   8588: #ifdef __cplusplus
                   8589: extern "C"
                   8590: #endif
                   8591: char opendir ();
1.1       bertrand 8592: int
                   8593: main ()
                   8594: {
1.15      bertrand 8595: return opendir ();
1.1       bertrand 8596:   ;
                   8597:   return 0;
                   8598: }
                   8599: _ACEOF
1.15      bertrand 8600: for ac_lib in '' x; do
                   8601:   if test -z "$ac_lib"; then
                   8602:     ac_res="none required"
                   8603:   else
                   8604:     ac_res=-l$ac_lib
                   8605:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8606:   fi
                   8607:   if ac_fn_c_try_link "$LINENO"; then :
                   8608:   ac_cv_search_opendir=$ac_res
                   8609: fi
                   8610: rm -f core conftest.err conftest.$ac_objext \
                   8611:     conftest$ac_exeext
1.57      bertrand 8612:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8613:   break
                   8614: fi
                   8615: done
1.57      bertrand 8616: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8617: 
1.1       bertrand 8618: else
1.15      bertrand 8619:   ac_cv_search_opendir=no
                   8620: fi
                   8621: rm conftest.$ac_ext
                   8622: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8623: fi
1.15      bertrand 8624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8625: $as_echo "$ac_cv_search_opendir" >&6; }
                   8626: ac_res=$ac_cv_search_opendir
                   8627: if test "$ac_res" != no; then :
                   8628:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8629: 
1.1       bertrand 8630: fi
                   8631: 
                   8632: fi
                   8633: 
1.15      bertrand 8634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8635: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8636: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8637:   $as_echo_n "(cached) " >&6
1.1       bertrand 8638: else
1.15      bertrand 8639:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8640: /* end confdefs.h.  */
1.15      bertrand 8641: #include <stdlib.h>
                   8642: #include <stdarg.h>
                   8643: #include <string.h>
                   8644: #include <float.h>
                   8645: 
1.1       bertrand 8646: int
                   8647: main ()
                   8648: {
1.15      bertrand 8649: 
1.1       bertrand 8650:   ;
                   8651:   return 0;
                   8652: }
                   8653: _ACEOF
1.15      bertrand 8654: if ac_fn_c_try_compile "$LINENO"; then :
                   8655:   ac_cv_header_stdc=yes
1.14      bertrand 8656: else
1.15      bertrand 8657:   ac_cv_header_stdc=no
                   8658: fi
                   8659: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8660: 
                   8661: if test $ac_cv_header_stdc = yes; then
                   8662:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8663:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8664: /* end confdefs.h.  */
                   8665: #include <string.h>
                   8666: 
                   8667: _ACEOF
                   8668: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8669:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8670: 
1.15      bertrand 8671: else
                   8672:   ac_cv_header_stdc=no
1.1       bertrand 8673: fi
1.15      bertrand 8674: rm -f conftest*
1.14      bertrand 8675: 
1.1       bertrand 8676: fi
                   8677: 
1.15      bertrand 8678: if test $ac_cv_header_stdc = yes; then
                   8679:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8680:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8681: /* end confdefs.h.  */
                   8682: #include <stdlib.h>
                   8683: 
1.14      bertrand 8684: _ACEOF
1.15      bertrand 8685: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8686:   $EGREP "free" >/dev/null 2>&1; then :
                   8687: 
                   8688: else
                   8689:   ac_cv_header_stdc=no
                   8690: fi
                   8691: rm -f conftest*
1.1       bertrand 8692: 
                   8693: fi
                   8694: 
1.15      bertrand 8695: if test $ac_cv_header_stdc = yes; then
                   8696:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8697:   if test "$cross_compiling" = yes; then :
                   8698:   :
1.1       bertrand 8699: else
1.15      bertrand 8700:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8701: /* end confdefs.h.  */
1.15      bertrand 8702: #include <ctype.h>
                   8703: #include <stdlib.h>
                   8704: #if ((' ' & 0x0FF) == 0x020)
                   8705: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8706: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8707: #else
                   8708: # define ISLOWER(c) \
                   8709:           (('a' <= (c) && (c) <= 'i') \
                   8710:             || ('j' <= (c) && (c) <= 'r') \
                   8711:             || ('s' <= (c) && (c) <= 'z'))
                   8712: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8713: #endif
1.1       bertrand 8714: 
1.15      bertrand 8715: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8716: int
                   8717: main ()
                   8718: {
1.15      bertrand 8719:   int i;
                   8720:   for (i = 0; i < 256; i++)
                   8721:     if (XOR (islower (i), ISLOWER (i))
                   8722:    || toupper (i) != TOUPPER (i))
                   8723:       return 2;
1.1       bertrand 8724:   return 0;
                   8725: }
                   8726: _ACEOF
1.15      bertrand 8727: if ac_fn_c_try_run "$LINENO"; then :
                   8728: 
1.14      bertrand 8729: else
1.15      bertrand 8730:   ac_cv_header_stdc=no
                   8731: fi
                   8732: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8733:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8734: fi
1.14      bertrand 8735: 
1.1       bertrand 8736: fi
                   8737: fi
1.15      bertrand 8738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8739: $as_echo "$ac_cv_header_stdc" >&6; }
                   8740: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8741: 
1.15      bertrand 8742: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8743: 
                   8744: fi
                   8745: 
1.15      bertrand 8746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8747: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8748: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8749:   $as_echo_n "(cached) " >&6
1.1       bertrand 8750: else
1.15      bertrand 8751:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8752: /* end confdefs.h.  */
1.14      bertrand 8753: #include <sys/types.h>
1.15      bertrand 8754: #include <sys/wait.h>
                   8755: #ifndef WEXITSTATUS
                   8756: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8757: #endif
                   8758: #ifndef WIFEXITED
                   8759: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8760: #endif
1.1       bertrand 8761: 
                   8762: int
                   8763: main ()
                   8764: {
1.15      bertrand 8765:   int s;
                   8766:   wait (&s);
                   8767:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8768:   ;
                   8769:   return 0;
                   8770: }
                   8771: _ACEOF
1.15      bertrand 8772: if ac_fn_c_try_compile "$LINENO"; then :
                   8773:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8774: else
1.15      bertrand 8775:   ac_cv_header_sys_wait_h=no
                   8776: fi
                   8777: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8778: fi
                   8779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8780: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8781: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8782: 
1.15      bertrand 8783: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8784: 
                   8785: fi
                   8786: 
1.15      bertrand 8787: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8788:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8789:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8790: do :
                   8791:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8792: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8793: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8794:   cat >>confdefs.h <<_ACEOF
                   8795: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8796: _ACEOF
                   8797: 
                   8798: fi
                   8799: 
1.15      bertrand 8800: done
                   8801: 
1.1       bertrand 8802: 
1.15      bertrand 8803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8804: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8805: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8806:   $as_echo_n "(cached) " >&6
1.1       bertrand 8807: else
1.15      bertrand 8808:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8809: /* end confdefs.h.  */
                   8810: 
                   8811: int
                   8812: main ()
                   8813: {
1.15      bertrand 8814: /* FIXME: Include the comments suggested by Paul. */
                   8815: #ifndef __cplusplus
                   8816:   /* Ultrix mips cc rejects this.  */
                   8817:   typedef int charset[2];
                   8818:   const charset cs;
                   8819:   /* SunOS 4.1.1 cc rejects this.  */
                   8820:   char const *const *pcpcc;
                   8821:   char **ppc;
                   8822:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8823:   struct point {int x, y;};
                   8824:   static struct point const zero = {0,0};
                   8825:   /* AIX XL C 1.02.0.0 rejects this.
                   8826:      It does not let you subtract one const X* pointer from another in
                   8827:      an arm of an if-expression whose if-part is not a constant
                   8828:      expression */
                   8829:   const char *g = "string";
                   8830:   pcpcc = &g + (g ? g-g : 0);
                   8831:   /* HPUX 7.0 cc rejects these. */
                   8832:   ++pcpcc;
                   8833:   ppc = (char**) pcpcc;
                   8834:   pcpcc = (char const *const *) ppc;
                   8835:   { /* SCO 3.2v4 cc rejects this.  */
                   8836:     char *t;
                   8837:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8838: 
                   8839:     *t++ = 0;
                   8840:     if (s) return 0;
                   8841:   }
                   8842:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8843:     int x[] = {25, 17};
                   8844:     const int *foo = &x[0];
                   8845:     ++foo;
                   8846:   }
                   8847:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8848:     typedef const int *iptr;
                   8849:     iptr p = 0;
                   8850:     ++p;
                   8851:   }
                   8852:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8853:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8854:     struct s { int j; const int *ap[3]; };
                   8855:     struct s *b; b->j = 5;
                   8856:   }
                   8857:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8858:     const int foo = 10;
                   8859:     if (!foo) return 0;
                   8860:   }
                   8861:   return !cs[0] && !zero.x;
                   8862: #endif
                   8863: 
1.14      bertrand 8864:   ;
1.1       bertrand 8865:   return 0;
                   8866: }
                   8867: _ACEOF
1.15      bertrand 8868: if ac_fn_c_try_compile "$LINENO"; then :
                   8869:   ac_cv_c_const=yes
1.14      bertrand 8870: else
1.15      bertrand 8871:   ac_cv_c_const=no
1.1       bertrand 8872: fi
1.14      bertrand 8873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8874: fi
1.15      bertrand 8875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8876: $as_echo "$ac_cv_c_const" >&6; }
                   8877: if test $ac_cv_c_const = no; then
1.1       bertrand 8878: 
1.15      bertrand 8879: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8880: 
1.15      bertrand 8881: fi
1.1       bertrand 8882: 
1.15      bertrand 8883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8884: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8885: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8886:   $as_echo_n "(cached) " >&6
1.1       bertrand 8887: else
1.15      bertrand 8888:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8889: /* end confdefs.h.  */
1.15      bertrand 8890: #include <sys/types.h>
                   8891: 
1.1       bertrand 8892: _ACEOF
1.15      bertrand 8893: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8894:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8895:   ac_cv_type_uid_t=yes
1.1       bertrand 8896: else
1.15      bertrand 8897:   ac_cv_type_uid_t=no
                   8898: fi
                   8899: rm -f conftest*
1.14      bertrand 8900: 
1.1       bertrand 8901: fi
1.15      bertrand 8902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8903: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8904: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8905: 
1.15      bertrand 8906: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8907: 
                   8908: 
1.15      bertrand 8909: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8910: 
                   8911: fi
                   8912: 
1.15      bertrand 8913: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8914: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8915: 
                   8916: else
1.15      bertrand 8917: 
                   8918: cat >>confdefs.h <<_ACEOF
                   8919: #define pid_t int
1.14      bertrand 8920: _ACEOF
                   8921: 
1.15      bertrand 8922: fi
1.14      bertrand 8923: 
1.15      bertrand 8924: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8925: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8926: 
1.15      bertrand 8927: else
1.1       bertrand 8928: 
1.15      bertrand 8929: cat >>confdefs.h <<_ACEOF
                   8930: #define size_t unsigned int
1.1       bertrand 8931: _ACEOF
1.14      bertrand 8932: 
1.1       bertrand 8933: fi
                   8934: 
1.15      bertrand 8935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8936: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 8937: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 8938:   $as_echo_n "(cached) " >&6
1.1       bertrand 8939: else
1.15      bertrand 8940:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8941: /* end confdefs.h.  */
1.15      bertrand 8942: #include <sys/types.h>
                   8943: #include <sys/time.h>
                   8944: #include <time.h>
1.1       bertrand 8945: 
1.14      bertrand 8946: int
                   8947: main ()
                   8948: {
1.15      bertrand 8949: if ((struct tm *) 0)
                   8950: return 0;
1.14      bertrand 8951:   ;
                   8952:   return 0;
                   8953: }
1.1       bertrand 8954: _ACEOF
1.15      bertrand 8955: if ac_fn_c_try_compile "$LINENO"; then :
                   8956:   ac_cv_header_time=yes
1.1       bertrand 8957: else
1.15      bertrand 8958:   ac_cv_header_time=no
1.1       bertrand 8959: fi
1.15      bertrand 8960: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8961: fi
1.15      bertrand 8962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8963: $as_echo "$ac_cv_header_time" >&6; }
                   8964: if test $ac_cv_header_time = yes; then
1.1       bertrand 8965: 
1.15      bertrand 8966: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8967: 
                   8968: fi
                   8969: 
1.15      bertrand 8970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8971: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 8972: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 8973:   $as_echo_n "(cached) " >&6
1.1       bertrand 8974: else
1.15      bertrand 8975:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8976: /* end confdefs.h.  */
1.15      bertrand 8977: #include <sys/types.h>
                   8978: #include <time.h>
1.1       bertrand 8979: 
                   8980: int
                   8981: main ()
                   8982: {
1.15      bertrand 8983: struct tm tm;
                   8984:                     int *p = &tm.tm_sec;
                   8985:                     return !p;
1.1       bertrand 8986:   ;
                   8987:   return 0;
                   8988: }
                   8989: _ACEOF
1.15      bertrand 8990: if ac_fn_c_try_compile "$LINENO"; then :
                   8991:   ac_cv_struct_tm=time.h
1.1       bertrand 8992: else
1.15      bertrand 8993:   ac_cv_struct_tm=sys/time.h
                   8994: fi
                   8995: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8996: fi
                   8997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8998: $as_echo "$ac_cv_struct_tm" >&6; }
                   8999: if test $ac_cv_struct_tm = sys/time.h; then
                   9000: 
                   9001: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9002: 
1.1       bertrand 9003: fi
                   9004: 
                   9005: 
1.15      bertrand 9006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9007: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9008: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9009:   $as_echo_n "(cached) " >&6
1.1       bertrand 9010: else
1.15      bertrand 9011:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9012: /* end confdefs.h.  */
1.15      bertrand 9013: #include <sys/types.h>
                   9014: #include <signal.h>
1.1       bertrand 9015: 
                   9016: int
                   9017: main ()
                   9018: {
1.15      bertrand 9019: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9020:   ;
                   9021:   return 0;
                   9022: }
                   9023: _ACEOF
1.15      bertrand 9024: if ac_fn_c_try_compile "$LINENO"; then :
                   9025:   ac_cv_type_signal=int
1.1       bertrand 9026: else
1.15      bertrand 9027:   ac_cv_type_signal=void
1.1       bertrand 9028: fi
1.15      bertrand 9029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9030: fi
1.15      bertrand 9031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9032: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9033: 
1.15      bertrand 9034: cat >>confdefs.h <<_ACEOF
                   9035: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9036: _ACEOF
1.1       bertrand 9037: 
1.15      bertrand 9038: 
1.35      bertrand 9039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
                   9040: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
                   9041: if test "$cross_compiling" = yes; then :
                   9042:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   9043: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 9044: as_fn_error $? "cannot run test program while cross compiling
1.57      bertrand 9045: See \`config.log' for more details" "$LINENO" 5; }
1.35      bertrand 9046: else
                   9047:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9048: /* end confdefs.h.  */
                   9049: #include <unistd.h>
                   9050: #include <signal.h>
                   9051: int flag;
                   9052: void handler(int signal, siginfo_t *siginfo, void *context)
1.39      bertrand 9053: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35      bertrand 9054: int
                   9055: main ()
                   9056: {
                   9057: struct sigaction    action;
                   9058: action.sa_sigaction = handler;
                   9059: action.sa_flags = SA_SIGINFO;
                   9060: sigaction(SIGUSR1, &action, NULL);
                   9061: raise(SIGUSR1);
                   9062: return(flag);
                   9063:   ;
                   9064:   return 0;
                   9065: }
                   9066: _ACEOF
                   9067: if ac_fn_c_try_run "$LINENO"; then :
                   9068:   BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9069: $as_echo "no" >&6; }
                   9070: else
                   9071:   BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9072: $as_echo "yes" >&6; }
                   9073: fi
                   9074: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9075:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   9076: fi
                   9077: 
                   9078: 
1.15      bertrand 9079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9080: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9081: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9082:   $as_echo_n "(cached) " >&6
                   9083: else
                   9084:   if test "$cross_compiling" = yes; then :
                   9085:   ac_cv_func_strcoll_works=no
                   9086: else
                   9087:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9088: /* end confdefs.h.  */
                   9089: $ac_includes_default
                   9090: int
                   9091: main ()
                   9092: {
                   9093: return (strcoll ("abc", "def") >= 0 ||
                   9094:     strcoll ("ABC", "DEF") >= 0 ||
                   9095:     strcoll ("123", "456") >= 0)
                   9096:   ;
                   9097:   return 0;
                   9098: }
                   9099: _ACEOF
                   9100: if ac_fn_c_try_run "$LINENO"; then :
                   9101:   ac_cv_func_strcoll_works=yes
                   9102: else
                   9103:   ac_cv_func_strcoll_works=no
                   9104: fi
                   9105: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9106:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9107: fi
1.1       bertrand 9108: 
                   9109: fi
1.15      bertrand 9110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9111: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9112: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9113: 
1.15      bertrand 9114: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9115: 
1.15      bertrand 9116: fi
1.1       bertrand 9117: 
1.15      bertrand 9118: for ac_func in strftime
                   9119: do :
                   9120:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9121: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9122:   cat >>confdefs.h <<_ACEOF
                   9123: #define HAVE_STRFTIME 1
                   9124: _ACEOF
1.1       bertrand 9125: 
                   9126: else
1.15      bertrand 9127:   # strftime is in -lintl on SCO UNIX.
                   9128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9129: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9130: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9131:   $as_echo_n "(cached) " >&6
                   9132: else
                   9133:   ac_check_lib_save_LIBS=$LIBS
                   9134: LIBS="-lintl  $LIBS"
                   9135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9136: /* end confdefs.h.  */
                   9137: 
                   9138: /* Override any GCC internal prototype to avoid an error.
                   9139:    Use char because int might match the return type of a GCC
                   9140:    builtin and then its argument prototype would still apply.  */
                   9141: #ifdef __cplusplus
                   9142: extern "C"
                   9143: #endif
1.15      bertrand 9144: char strftime ();
1.1       bertrand 9145: int
                   9146: main ()
                   9147: {
1.15      bertrand 9148: return strftime ();
1.1       bertrand 9149:   ;
                   9150:   return 0;
                   9151: }
                   9152: _ACEOF
1.15      bertrand 9153: if ac_fn_c_try_link "$LINENO"; then :
                   9154:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9155: else
1.15      bertrand 9156:   ac_cv_lib_intl_strftime=no
                   9157: fi
                   9158: rm -f core conftest.err conftest.$ac_objext \
                   9159:     conftest$ac_exeext conftest.$ac_ext
                   9160: LIBS=$ac_check_lib_save_LIBS
                   9161: fi
                   9162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9163: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9164: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9165:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9166: 
                   9167: LIBS="-lintl $LIBS"
                   9168: fi
                   9169: 
                   9170: fi
                   9171: done
                   9172: 
                   9173: for ac_func in vprintf
                   9174: do :
                   9175:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9176: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9177:   cat >>confdefs.h <<_ACEOF
                   9178: #define HAVE_VPRINTF 1
                   9179: _ACEOF
                   9180: 
                   9181: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9182: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9183: 
                   9184: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9185: 
                   9186: fi
                   9187: 
                   9188: fi
1.15      bertrand 9189: done
                   9190: 
                   9191: 
                   9192: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9193:        strerror strspn strstr strtod
                   9194: do :
                   9195:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9196: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9197: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9198:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9199: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9200: _ACEOF
                   9201: 
                   9202: fi
                   9203: done
                   9204: 
                   9205: 
1.15      bertrand 9206: 
                   9207: # Check whether --with-openssl_arch was given.
                   9208: if test "${with_openssl_arch+set}" = set; then :
                   9209:   withval=$with_openssl_arch;
                   9210: else
                   9211:   with_openssl_arch=none
                   9212: fi
                   9213: 
                   9214: 
1.31      bertrand 9215: if test $(uname) = "OS/2"; then
1.34      bertrand 9216:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9217: else
1.31      bertrand 9218:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9219:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9220:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9221:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9222:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9223:    elif test "x$with_openssl_arch" = xlist; then
                   9224:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9225:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9226:    else
1.67      bertrand 9227:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9228:    fi
1.15      bertrand 9229: fi
1.1       bertrand 9230: 
                   9231: if test "$MYGNUPLOT" = "yes"; then
                   9232:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9233:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9234:                (cd "$srcdir/tools" && tar -xf -)
                   9235:    fi
1.69      bertrand 9236: 
                   9237: 
                   9238: subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9239: 
                   9240:    GNUPLOT_COMPILATION=$GNUPLOT
                   9241: else
                   9242:    GNUPLOT_COMPILATION=
                   9243: fi
                   9244: 
                   9245: 
                   9246: 
1.69      bertrand 9247: HOST=$host
                   9248: 
                   9249: 
1.1       bertrand 9250: case $host_cpu in
                   9251: 
                   9252:     i?86)
                   9253:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9254:            -Wno-pointer-sign"
                   9255:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9256:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9257:    break ;;
                   9258: 
                   9259:    x86_64*)
                   9260:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9261:            -Wno-pointer-sign"
                   9262:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9263:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9264:    break ;;
                   9265: 
                   9266:     alpha*)
                   9267:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9268:            -Wno-pointer-sign"
                   9269:    FFLAGS="$FFLAGS -mieee -Wall"
                   9270:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9271:    break ;;
                   9272: 
                   9273:     sparc*)
                   9274:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9275:            -Wno-pointer-sign"
                   9276:    FFLAGS="$FFLAGS -Wall"
                   9277:    FCFLAGS="$FCFLAGS -Wall"
                   9278:    break ;;
                   9279: 
                   9280: esac
                   9281: 
1.8       bertrand 9282: case $host_os in
                   9283: 
                   9284:    cygwin*)
                   9285:        OS=Cygwin
                   9286:    break ;;
                   9287: 
                   9288:    interix*)
                   9289:        OS=Interix
                   9290:    break ;;
                   9291: 
                   9292:    *)
                   9293:        OS=$(uname)
                   9294:    break ;;
                   9295: 
                   9296: esac
                   9297: 
                   9298: 
                   9299: 
1.1       bertrand 9300: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9301: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9302: MALLOC=
1.1       bertrand 9303: 
1.22      bertrand 9304: case $OS in
1.17      bertrand 9305: 
                   9306:     Darwin)
1.31      bertrand 9307:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9308:        NESTED_FUNCTIONS=-fnested-functions
                   9309:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9310:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9311:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9312:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9313:                --disable-shared --enable-static --enable-threads \
                   9314:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9315:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9316:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9317:        C_STANDARD=-std=gnu99
1.75      bertrand 9318:        ELF=
1.17      bertrand 9319:    break ;;
                   9320: 
1.31      bertrand 9321:     Cygwin)
                   9322:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9323:        NESTED_FUNCTIONS=
                   9324:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9325:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9326:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9327:                --disable-shared --enable-static --enable-threads \
                   9328:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9329:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9330:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9331:        C_STANDARD=-std=gnu99
1.75      bertrand 9332:        ELF=
1.17      bertrand 9333:    break ;;
                   9334: 
1.34      bertrand 9335:    Interix)
                   9336:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9337:        NESTED_FUNCTIONS=
                   9338:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9339:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9340:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9341:                --disable-shared --enable-static --enable-threads \
                   9342:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9343:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9344:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9345:        C_STANDARD=-std=gnu99
1.75      bertrand 9346:        ELF=
1.34      bertrand 9347:    break;;
                   9348: 
1.31      bertrand 9349:     AIX)
                   9350:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9351:        NESTED_FUNCTIONS=
                   9352:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9353:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9354:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9355:                --disable-shared --enable-static --enable-threads \
                   9356:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9357:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9358:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9359:        C_STANDARD=-std=gnu99
1.75      bertrand 9360:        ELF=
1.18      bertrand 9361:    break ;;
                   9362: 
1.31      bertrand 9363:     OS/2)
1.37      bertrand 9364:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9365:            FINAL_ENCODING=CP850; \
                   9366:        fi;
1.31      bertrand 9367:        OS=OS2
                   9368:        NESTED_FUNCTIONS=
                   9369:        EXPORT_DYNAMIC=-Zmap
                   9370:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9371:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9372:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9373:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9374:                --enable-threads \
                   9375:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9376:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9377:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9378:        C_STANDARD=
1.75      bertrand 9379:        ELF=
1.31      bertrand 9380:    break;;
                   9381: 
1.35      bertrand 9382:    OpenBSD)
1.37      bertrand 9383:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9384:            FINAL_ENCODING=UTF-8; \
                   9385:        fi;
                   9386:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9387:        NESTED_FUNCTIONS=
                   9388:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9389:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9390:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9391:                --disable-shared --enable-static --enable-threads \
                   9392:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9393:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9394:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9395:        C_STANDARD=-std=gnu99
1.75      bertrand 9396:        ELF=
1.35      bertrand 9397:    break;;
                   9398: 
1.49      bertrand 9399:     SunOS)
                   9400:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9401:        NESTED_FUNCTIONS=
                   9402:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9403: 
                   9404:        if test $IPCS_SYSV = no; then
                   9405:            IPCS_SYSV=-UIPCS_SYSV
                   9406:        else
                   9407:            IPCS_SYSV=-DIPCS_SYSV
                   9408:        fi
                   9409: 
                   9410:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9411:                --disable-shared --enable-static --enable-threads \
                   9412:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9413:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9414:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9415:        C_STANDARD=-std=gnu99
                   9416:        MALLOC=-lumem
1.75      bertrand 9417:        ELF=
                   9418:    break ;;
                   9419: 
                   9420:     NetBSD)
                   9421:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9422:        NESTED_FUNCTIONS=
                   9423:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9424: 
                   9425:        if test $IPCS_SYSV = no; then
                   9426:            IPCS_SYSV=-UIPCS_SYSV
                   9427:        else
                   9428:            IPCS_SYSV=-DIPCS_SYSV
                   9429:        fi
                   9430: 
                   9431:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9432:                --disable-shared --enable-static --enable-threads \
                   9433:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9434:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9435:                LDFLAGS=\"$LDFLAGS\""
                   9436:        C_STANDARD=-std=gnu99
                   9437:        GCCBIN=`which gcc`
                   9438:        GCCLIB=`dirname $GCCBIN`/../lib
                   9439:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9440:    break ;;
                   9441: 
1.17      bertrand 9442:     *)
1.31      bertrand 9443:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9444:        NESTED_FUNCTIONS=
                   9445:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9446: 
                   9447:        if test $IPCS_SYSV = no; then
                   9448:            IPCS_SYSV=-UIPCS_SYSV
                   9449:        else
                   9450:            IPCS_SYSV=-DIPCS_SYSV
                   9451:        fi
                   9452: 
1.31      bertrand 9453:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9454:                --disable-shared --enable-static --enable-threads \
                   9455:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9456:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9457:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9458:        C_STANDARD=-std=gnu99
1.75      bertrand 9459:        ELF=
1.17      bertrand 9460:    break ;;
                   9461: 
                   9462: esac
                   9463: 
                   9464: 
                   9465: 
                   9466: 
1.1       bertrand 9467: 
                   9468: 
                   9469: 
                   9470: 
                   9471: 
                   9472: 
                   9473: 
                   9474: 
                   9475: 
                   9476: 
                   9477: 
                   9478: 
                   9479: 
                   9480: 
                   9481: 
                   9482: 
                   9483: 
                   9484: 
                   9485: 
1.9       bertrand 9486: 
1.24      bertrand 9487: 
1.30      bertrand 9488: 
1.33      bertrand 9489: 
                   9490: 
                   9491: 
1.34      bertrand 9492: 
1.35      bertrand 9493: 
1.49      bertrand 9494: 
1.55      bertrand 9495: 
                   9496: 
1.56      bertrand 9497: 
                   9498: 
                   9499: 
                   9500: 
1.69      bertrand 9501: 
1.75      bertrand 9502: 
1.76    ! bertrand 9503: 
1.69      bertrand 9504: subdirs="$subdirs tools/$NCURSES"
                   9505: 
                   9506: subdirs="$subdirs tools/$READLINE"
                   9507: 
                   9508: subdirs="$subdirs tools/$GSL"
                   9509: 
                   9510: subdirs="$subdirs tools/$GPP"
                   9511: 
                   9512: subdirs="$subdirs tools/$FILE"
                   9513: 
                   9514: subdirs="$subdirs tools/$ICONV"
                   9515: 
                   9516: subdirs="$subdirs tools/$SQLITE"
                   9517: 
                   9518: subdirs="$subdirs tools/$UNITS"
                   9519: 
1.76    ! bertrand 9520: subdirs="$subdirs tools/$SIGSEGV"
        !          9521: 
1.69      bertrand 9522: 
1.1       bertrand 9523: ac_config_files="$ac_config_files Makefile"
                   9524: 
                   9525: ac_config_files="$ac_config_files COPYING"
                   9526: 
                   9527: ac_config_files="$ac_config_files tools/Makefile"
                   9528: 
                   9529: ac_config_files="$ac_config_files src/Makefile"
                   9530: 
                   9531: ac_config_files="$ac_config_files man/Makefile"
                   9532: 
                   9533: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9534: 
                   9535: ac_config_files="$ac_config_files doc/Makefile"
                   9536: 
                   9537: ac_config_files="$ac_config_files scripts/Makefile"
                   9538: 
                   9539: ac_config_files="$ac_config_files scripts/mkrplso"
                   9540: 
                   9541: ac_config_files="$ac_config_files scripts/rplcc"
                   9542: 
                   9543: ac_config_files="$ac_config_files scripts/rpllink"
                   9544: 
                   9545: ac_config_files="$ac_config_files rpltags/Makefile"
                   9546: 
                   9547: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9548: 
1.9       bertrand 9549: ac_config_files="$ac_config_files rplsums/Makefile"
                   9550: 
1.55      bertrand 9551: ac_config_files="$ac_config_files rplcas/Makefile"
                   9552: 
1.39      bertrand 9553: ac_config_files="$ac_config_files rplawk/Makefile"
                   9554: 
1.1       bertrand 9555: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9556: 
                   9557: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9558: 
                   9559: 
                   9560: ac_config_files="$ac_config_files man/rpl.1"
                   9561: 
                   9562: ac_config_files="$ac_config_files man/rplcc.1"
                   9563: 
                   9564: ac_config_files="$ac_config_files man/rpllink.1"
                   9565: 
                   9566: ac_config_files="$ac_config_files man/rpltags.1"
                   9567: 
                   9568: ac_config_files="$ac_config_files man/mkrplso.1"
                   9569: 
                   9570: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9571: 
                   9572: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9573: 
                   9574: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9575: 
                   9576: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9577: 
                   9578: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9579: 
                   9580: 
                   9581: cat >confcache <<\_ACEOF
                   9582: # This file is a shell script that caches the results of configure
                   9583: # tests run on this system so they can be shared between configure
                   9584: # scripts and configure runs, see configure's option --config-cache.
                   9585: # It is not useful on other systems.  If it contains results you don't
                   9586: # want to keep, you may remove or edit it.
                   9587: #
                   9588: # config.status only pays attention to the cache file if you give it
                   9589: # the --recheck option to rerun configure.
                   9590: #
                   9591: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9592: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9593: # following values.
                   9594: 
                   9595: _ACEOF
                   9596: 
                   9597: # The following way of writing the cache mishandles newlines in values,
                   9598: # but we know of no workaround that is simple, portable, and efficient.
                   9599: # So, we kill variables containing newlines.
                   9600: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9601: # and sets the high bit in the cache file unless we assign to the vars.
                   9602: (
                   9603:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9604:     eval ac_val=\$$ac_var
                   9605:     case $ac_val in #(
                   9606:     *${as_nl}*)
                   9607:       case $ac_var in #(
1.15      bertrand 9608:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9609: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9610:       esac
                   9611:       case $ac_var in #(
                   9612:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9613:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9614:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9615:       esac ;;
                   9616:     esac
                   9617:   done
                   9618: 
                   9619:   (set) 2>&1 |
                   9620:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9621:     *${as_nl}ac_space=\ *)
1.15      bertrand 9622:       # `set' does not quote correctly, so add quotes: double-quote
                   9623:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9624:       sed -n \
                   9625:    "s/'/'\\\\''/g;
                   9626:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9627:       ;; #(
                   9628:     *)
                   9629:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9630:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9631:       ;;
                   9632:     esac |
                   9633:     sort
                   9634: ) |
                   9635:   sed '
                   9636:      /^ac_cv_env_/b end
                   9637:      t clear
                   9638:      :clear
                   9639:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9640:      t end
                   9641:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9642:      :end' >>confcache
                   9643: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9644:   if test -w "$cache_file"; then
1.57      bertrand 9645:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9646:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9647: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9648:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9649:    cat confcache >"$cache_file"
                   9650:       else
                   9651:         case $cache_file in #(
                   9652:         */* | ?:*)
                   9653:      mv -f confcache "$cache_file"$$ &&
                   9654:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9655:         *)
                   9656:      mv -f confcache "$cache_file" ;;
                   9657:    esac
                   9658:       fi
                   9659:     fi
1.1       bertrand 9660:   else
1.15      bertrand 9661:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9662: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9663:   fi
                   9664: fi
                   9665: rm -f confcache
                   9666: 
                   9667: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9668: # Let make expand exec_prefix.
                   9669: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9670: 
                   9671: DEFS=-DHAVE_CONFIG_H
                   9672: 
                   9673: ac_libobjs=
                   9674: ac_ltlibobjs=
1.36      bertrand 9675: U=
1.1       bertrand 9676: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9677:   # 1. Remove the extension, and $U if already installed.
                   9678:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9679:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9680:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9681:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9682:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9683:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9684: done
                   9685: LIBOBJS=$ac_libobjs
                   9686: 
                   9687: LTLIBOBJS=$ac_ltlibobjs
                   9688: 
                   9689: 
1.15      bertrand 9690:  if test -n "$EXEEXT"; then
                   9691:   am__EXEEXT_TRUE=
                   9692:   am__EXEEXT_FALSE='#'
                   9693: else
                   9694:   am__EXEEXT_TRUE='#'
                   9695:   am__EXEEXT_FALSE=
                   9696: fi
                   9697: 
1.1       bertrand 9698: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9699:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9700: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9701: fi
                   9702: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9703:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9704: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9705: fi
                   9706: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9707:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9708: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9709: fi
                   9710: 
1.57      bertrand 9711: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9712: ac_write_fail=0
1.1       bertrand 9713: ac_clean_files_save=$ac_clean_files
                   9714: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9715: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9716: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9717: as_write_fail=0
                   9718: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9719: #! $SHELL
                   9720: # Generated by $as_me.
                   9721: # Run this file to recreate the current configuration.
                   9722: # Compiler output produced by configure, useful for debugging
                   9723: # configure, is in config.log if it exists.
                   9724: 
                   9725: debug=false
                   9726: ac_cs_recheck=false
                   9727: ac_cs_silent=false
1.15      bertrand 9728: 
1.14      bertrand 9729: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9730: export SHELL
                   9731: _ASEOF
                   9732: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9733: ## -------------------- ##
                   9734: ## M4sh Initialization. ##
                   9735: ## -------------------- ##
1.1       bertrand 9736: 
                   9737: # Be more Bourne compatible
                   9738: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9739: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9740:   emulate sh
                   9741:   NULLCMD=:
1.15      bertrand 9742:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9743:   # is contrary to our usage.  Disable this feature.
                   9744:   alias -g '${1+"$@"}'='"$@"'
                   9745:   setopt NO_GLOB_SUBST
                   9746: else
1.15      bertrand 9747:   case `(set -o) 2>/dev/null` in #(
                   9748:   *posix*) :
                   9749:     set -o posix ;; #(
                   9750:   *) :
                   9751:      ;;
1.1       bertrand 9752: esac
                   9753: fi
                   9754: 
                   9755: 
1.15      bertrand 9756: as_nl='
                   9757: '
                   9758: export as_nl
                   9759: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9760: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9761: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9762: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9763: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9764: # but without wasting forks for bash or zsh.
                   9765: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9766:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9767:   as_echo='print -r --'
                   9768:   as_echo_n='print -rn --'
                   9769: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9770:   as_echo='printf %s\n'
                   9771:   as_echo_n='printf %s'
                   9772: else
                   9773:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9774:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9775:     as_echo_n='/usr/ucb/echo -n'
                   9776:   else
                   9777:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9778:     as_echo_n_body='eval
                   9779:       arg=$1;
                   9780:       case $arg in #(
                   9781:       *"$as_nl"*)
                   9782:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9783:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9784:       esac;
                   9785:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9786:     '
                   9787:     export as_echo_n_body
                   9788:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9789:   fi
                   9790:   export as_echo_body
                   9791:   as_echo='sh -c $as_echo_body as_echo'
                   9792: fi
1.14      bertrand 9793: 
                   9794: # The user is always right.
                   9795: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9796:   PATH_SEPARATOR=:
                   9797:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9798:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9799:       PATH_SEPARATOR=';'
                   9800:   }
1.1       bertrand 9801: fi
                   9802: 
                   9803: 
                   9804: # IFS
                   9805: # We need space, tab and new line, in precisely that order.  Quoting is
                   9806: # there to prevent editors from complaining about space-tab.
                   9807: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9808: # splitting by setting IFS to empty value.)
                   9809: IFS=" ""   $as_nl"
                   9810: 
                   9811: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9812: as_myself=
1.15      bertrand 9813: case $0 in #((
1.1       bertrand 9814:   *[\\/]* ) as_myself=$0 ;;
                   9815:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9816: for as_dir in $PATH
                   9817: do
                   9818:   IFS=$as_save_IFS
                   9819:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9820:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9821:   done
1.1       bertrand 9822: IFS=$as_save_IFS
                   9823: 
                   9824:      ;;
                   9825: esac
                   9826: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9827: # in which case we are not to be found in the path.
                   9828: if test "x$as_myself" = x; then
                   9829:   as_myself=$0
                   9830: fi
                   9831: if test ! -f "$as_myself"; then
1.15      bertrand 9832:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9833:   exit 1
1.1       bertrand 9834: fi
                   9835: 
1.15      bertrand 9836: # Unset variables that we do not need and which cause bugs (e.g. in
                   9837: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9838: # suppresses any "Segmentation fault" message there.  '((' could
                   9839: # trigger a bug in pdksh 5.2.14.
                   9840: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9841: do eval test x\${$as_var+set} = xset \
                   9842:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9843: done
                   9844: PS1='$ '
                   9845: PS2='> '
                   9846: PS4='+ '
                   9847: 
                   9848: # NLS nuisances.
1.15      bertrand 9849: LC_ALL=C
                   9850: export LC_ALL
                   9851: LANGUAGE=C
                   9852: export LANGUAGE
                   9853: 
                   9854: # CDPATH.
                   9855: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9856: 
                   9857: 
1.36      bertrand 9858: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9859: # ----------------------------------------
1.15      bertrand 9860: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9861: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9862: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9863: as_fn_error ()
                   9864: {
1.36      bertrand 9865:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9866:   if test "$4"; then
                   9867:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9868:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9869:   fi
1.36      bertrand 9870:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9871:   as_fn_exit $as_status
                   9872: } # as_fn_error
                   9873: 
                   9874: 
                   9875: # as_fn_set_status STATUS
                   9876: # -----------------------
                   9877: # Set $? to STATUS, without forking.
                   9878: as_fn_set_status ()
                   9879: {
                   9880:   return $1
                   9881: } # as_fn_set_status
                   9882: 
                   9883: # as_fn_exit STATUS
                   9884: # -----------------
                   9885: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9886: as_fn_exit ()
                   9887: {
                   9888:   set +e
                   9889:   as_fn_set_status $1
                   9890:   exit $1
                   9891: } # as_fn_exit
                   9892: 
                   9893: # as_fn_unset VAR
                   9894: # ---------------
                   9895: # Portably unset VAR.
                   9896: as_fn_unset ()
                   9897: {
                   9898:   { eval $1=; unset $1;}
                   9899: }
                   9900: as_unset=as_fn_unset
                   9901: # as_fn_append VAR VALUE
                   9902: # ----------------------
                   9903: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9904: # advantage of any shell optimizations that allow amortized linear growth over
                   9905: # repeated appends, instead of the typical quadratic growth present in naive
                   9906: # implementations.
                   9907: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9908:   eval 'as_fn_append ()
                   9909:   {
                   9910:     eval $1+=\$2
                   9911:   }'
                   9912: else
                   9913:   as_fn_append ()
                   9914:   {
                   9915:     eval $1=\$$1\$2
                   9916:   }
                   9917: fi # as_fn_append
                   9918: 
                   9919: # as_fn_arith ARG...
                   9920: # ------------------
                   9921: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9922: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9923: # must be portable across $(()) and expr.
                   9924: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9925:   eval 'as_fn_arith ()
                   9926:   {
                   9927:     as_val=$(( $* ))
                   9928:   }'
                   9929: else
                   9930:   as_fn_arith ()
                   9931:   {
                   9932:     as_val=`expr "$@" || test $? -eq 1`
                   9933:   }
                   9934: fi # as_fn_arith
                   9935: 
1.1       bertrand 9936: 
                   9937: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9938:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9939:   as_expr=expr
                   9940: else
                   9941:   as_expr=false
                   9942: fi
                   9943: 
                   9944: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9945:   as_basename=basename
                   9946: else
                   9947:   as_basename=false
                   9948: fi
                   9949: 
1.15      bertrand 9950: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9951:   as_dirname=dirname
                   9952: else
                   9953:   as_dirname=false
                   9954: fi
1.1       bertrand 9955: 
                   9956: as_me=`$as_basename -- "$0" ||
                   9957: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9958:     X"$0" : 'X\(//\)$' \| \
                   9959:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9960: $as_echo X/"$0" |
1.1       bertrand 9961:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9962:        s//\1/
                   9963:        q
                   9964:      }
                   9965:      /^X\/\(\/\/\)$/{
                   9966:        s//\1/
                   9967:        q
                   9968:      }
                   9969:      /^X\/\(\/\).*/{
                   9970:        s//\1/
                   9971:        q
                   9972:      }
1.14      bertrand 9973:      s/.*/./; q'`
                   9974: 
1.15      bertrand 9975: # Avoid depending upon Character Ranges.
                   9976: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9977: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9978: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9979: as_cr_digits='0123456789'
                   9980: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9981: 
                   9982: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9983: case `echo -n x` in #(((((
1.1       bertrand 9984: -n*)
1.15      bertrand 9985:   case `echo 'xy\c'` in
1.1       bertrand 9986:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9987:   xy)  ECHO_C='\c';;
                   9988:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9989:        ECHO_T='    ';;
1.1       bertrand 9990:   esac;;
                   9991: *)
                   9992:   ECHO_N='-n';;
                   9993: esac
                   9994: 
                   9995: rm -f conf$$ conf$$.exe conf$$.file
                   9996: if test -d conf$$.dir; then
                   9997:   rm -f conf$$.dir/conf$$.file
                   9998: else
                   9999:   rm -f conf$$.dir
1.15      bertrand 10000:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10001: fi
1.15      bertrand 10002: if (echo >conf$$.file) 2>/dev/null; then
                   10003:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10004:     as_ln_s='ln -s'
                   10005:     # ... but there are two gotchas:
                   10006:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10007:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10008:     # In both cases, we have to default to `cp -p'.
                   10009:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10010:       as_ln_s='cp -p'
                   10011:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10012:     as_ln_s=ln
                   10013:   else
1.1       bertrand 10014:     as_ln_s='cp -p'
1.15      bertrand 10015:   fi
1.1       bertrand 10016: else
                   10017:   as_ln_s='cp -p'
                   10018: fi
                   10019: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10020: rmdir conf$$.dir 2>/dev/null
                   10021: 
1.15      bertrand 10022: 
                   10023: # as_fn_mkdir_p
                   10024: # -------------
                   10025: # Create "$as_dir" as a directory, including parents if necessary.
                   10026: as_fn_mkdir_p ()
                   10027: {
                   10028: 
                   10029:   case $as_dir in #(
                   10030:   -*) as_dir=./$as_dir;;
                   10031:   esac
                   10032:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10033:     as_dirs=
                   10034:     while :; do
                   10035:       case $as_dir in #(
                   10036:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10037:       *) as_qdir=$as_dir;;
                   10038:       esac
                   10039:       as_dirs="'$as_qdir' $as_dirs"
                   10040:       as_dir=`$as_dirname -- "$as_dir" ||
                   10041: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10042:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10043:     X"$as_dir" : 'X\(//\)$' \| \
                   10044:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10045: $as_echo X"$as_dir" |
                   10046:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10047:        s//\1/
                   10048:        q
                   10049:      }
                   10050:      /^X\(\/\/\)[^/].*/{
                   10051:        s//\1/
                   10052:        q
                   10053:      }
                   10054:      /^X\(\/\/\)$/{
                   10055:        s//\1/
                   10056:        q
                   10057:      }
                   10058:      /^X\(\/\).*/{
                   10059:        s//\1/
                   10060:        q
                   10061:      }
                   10062:      s/.*/./; q'`
                   10063:       test -d "$as_dir" && break
                   10064:     done
                   10065:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10066:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10067: 
                   10068: 
                   10069: } # as_fn_mkdir_p
1.1       bertrand 10070: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10071:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10072: else
                   10073:   test -d ./-p && rmdir ./-p
                   10074:   as_mkdir_p=false
                   10075: fi
                   10076: 
                   10077: if test -x / >/dev/null 2>&1; then
                   10078:   as_test_x='test -x'
                   10079: else
                   10080:   if ls -dL / >/dev/null 2>&1; then
                   10081:     as_ls_L_option=L
                   10082:   else
                   10083:     as_ls_L_option=
                   10084:   fi
                   10085:   as_test_x='
                   10086:     eval sh -c '\''
                   10087:       if test -d "$1"; then
1.15      bertrand 10088:    test -d "$1/.";
1.1       bertrand 10089:       else
1.15      bertrand 10090:    case $1 in #(
                   10091:    -*)set "./$1";;
1.1       bertrand 10092:    esac;
1.15      bertrand 10093:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10094:    ???[sx]*):;;*)false;;esac;fi
                   10095:     '\'' sh
                   10096:   '
                   10097: fi
                   10098: as_executable_p=$as_test_x
                   10099: 
                   10100: # Sed expression to map a string onto a valid CPP name.
                   10101: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10102: 
                   10103: # Sed expression to map a string onto a valid variable name.
                   10104: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10105: 
                   10106: 
                   10107: exec 6>&1
1.15      bertrand 10108: ## ----------------------------------- ##
                   10109: ## Main body of $CONFIG_STATUS script. ##
                   10110: ## ----------------------------------- ##
                   10111: _ASEOF
                   10112: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10113: 
1.15      bertrand 10114: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10115: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10116: # report actual input values of CONFIG_FILES etc. instead of their
                   10117: # values after options handling.
                   10118: ac_log="
1.73      bertrand 10119: This file was extended by rpl $as_me 4.1.3, which was
1.57      bertrand 10120: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10121: 
                   10122:   CONFIG_FILES    = $CONFIG_FILES
                   10123:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10124:   CONFIG_LINKS    = $CONFIG_LINKS
                   10125:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10126:   $ $0 $@
                   10127: 
                   10128: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10129: "
                   10130: 
                   10131: _ACEOF
                   10132: 
1.15      bertrand 10133: case $ac_config_files in *"
                   10134: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10135: esac
                   10136: 
                   10137: case $ac_config_headers in *"
                   10138: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10139: esac
                   10140: 
                   10141: 
                   10142: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10143: # Files that config.status was made for.
                   10144: config_files="$ac_config_files"
                   10145: config_headers="$ac_config_headers"
                   10146: config_commands="$ac_config_commands"
                   10147: 
                   10148: _ACEOF
                   10149: 
1.15      bertrand 10150: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10151: ac_cs_usage="\
1.15      bertrand 10152: \`$as_me' instantiates files and other configuration actions
                   10153: from templates according to the current configuration.  Unless the files
                   10154: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10155: 
1.15      bertrand 10156: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10157: 
                   10158:   -h, --help       print this help, then exit
                   10159:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10160:       --config     print configuration, then exit
                   10161:   -q, --quiet, --silent
                   10162:                    do not print progress messages
1.1       bertrand 10163:   -d, --debug      don't remove temporary files
                   10164:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10165:       --file=FILE[:TEMPLATE]
                   10166:                    instantiate the configuration file FILE
                   10167:       --header=FILE[:TEMPLATE]
                   10168:                    instantiate the configuration header FILE
1.1       bertrand 10169: 
                   10170: Configuration files:
                   10171: $config_files
                   10172: 
                   10173: Configuration headers:
                   10174: $config_headers
                   10175: 
                   10176: Configuration commands:
                   10177: $config_commands
                   10178: 
1.15      bertrand 10179: Report bugs to the package provider."
1.1       bertrand 10180: 
                   10181: _ACEOF
1.15      bertrand 10182: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10183: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10184: ac_cs_version="\\
1.73      bertrand 10185: rpl config.status 4.1.3
1.57      bertrand 10186: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10187:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10188: 
1.36      bertrand 10189: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10190: This config.status script is free software; the Free Software Foundation
                   10191: gives unlimited permission to copy, distribute and modify it."
                   10192: 
                   10193: ac_pwd='$ac_pwd'
                   10194: srcdir='$srcdir'
                   10195: INSTALL='$INSTALL'
                   10196: MKDIR_P='$MKDIR_P'
1.15      bertrand 10197: AWK='$AWK'
                   10198: test -n "\$AWK" || AWK=awk
1.1       bertrand 10199: _ACEOF
                   10200: 
1.15      bertrand 10201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10202: # The default lists apply if the user does not specify any file.
1.1       bertrand 10203: ac_need_defaults=:
                   10204: while test $# != 0
                   10205: do
                   10206:   case $1 in
1.36      bertrand 10207:   --*=?*)
1.1       bertrand 10208:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10209:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10210:     ac_shift=:
                   10211:     ;;
1.36      bertrand 10212:   --*=)
                   10213:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10214:     ac_optarg=
                   10215:     ac_shift=:
                   10216:     ;;
1.1       bertrand 10217:   *)
                   10218:     ac_option=$1
                   10219:     ac_optarg=$2
                   10220:     ac_shift=shift
                   10221:     ;;
                   10222:   esac
                   10223: 
                   10224:   case $ac_option in
                   10225:   # Handling of the options.
                   10226:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10227:     ac_cs_recheck=: ;;
                   10228:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10229:     $as_echo "$ac_cs_version"; exit ;;
                   10230:   --config | --confi | --conf | --con | --co | --c )
                   10231:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10232:   --debug | --debu | --deb | --de | --d | -d )
                   10233:     debug=: ;;
                   10234:   --file | --fil | --fi | --f )
                   10235:     $ac_shift
1.15      bertrand 10236:     case $ac_optarg in
                   10237:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10238:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10239:     esac
                   10240:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10241:     ac_need_defaults=false;;
                   10242:   --header | --heade | --head | --hea )
                   10243:     $ac_shift
1.15      bertrand 10244:     case $ac_optarg in
                   10245:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10246:     esac
                   10247:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10248:     ac_need_defaults=false;;
                   10249:   --he | --h)
                   10250:     # Conflict between --help and --header
1.36      bertrand 10251:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10252: Try \`$0 --help' for more information.";;
1.1       bertrand 10253:   --help | --hel | -h )
1.15      bertrand 10254:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10255:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10256:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10257:     ac_cs_silent=: ;;
                   10258: 
                   10259:   # This is an error.
1.36      bertrand 10260:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10261: Try \`$0 --help' for more information." ;;
1.1       bertrand 10262: 
1.15      bertrand 10263:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10264:      ac_need_defaults=false ;;
                   10265: 
                   10266:   esac
                   10267:   shift
                   10268: done
                   10269: 
                   10270: ac_configure_extra_args=
                   10271: 
                   10272: if $ac_cs_silent; then
                   10273:   exec 6>/dev/null
                   10274:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10275: fi
                   10276: 
                   10277: _ACEOF
1.15      bertrand 10278: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10279: if \$ac_cs_recheck; then
1.15      bertrand 10280:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10281:   shift
                   10282:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10283:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10284:   export CONFIG_SHELL
1.15      bertrand 10285:   exec "\$@"
1.1       bertrand 10286: fi
                   10287: 
                   10288: _ACEOF
1.15      bertrand 10289: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10290: exec 5>>config.log
                   10291: {
                   10292:   echo
                   10293:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10294: ## Running $as_me. ##
                   10295: _ASBOX
1.15      bertrand 10296:   $as_echo "$ac_log"
1.1       bertrand 10297: } >&5
                   10298: 
                   10299: _ACEOF
1.15      bertrand 10300: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10301: #
                   10302: # INIT-COMMANDS
                   10303: #
                   10304: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10305: 
                   10306: _ACEOF
                   10307: 
1.15      bertrand 10308: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10309: 
                   10310: # Handling of arguments.
                   10311: for ac_config_target in $ac_config_targets
                   10312: do
                   10313:   case $ac_config_target in
                   10314:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10315:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10316:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10317:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10318:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10319:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10320:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10321:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10322:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10323:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10324:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10325:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10326:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10327:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10328:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10329:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10330:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10331:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10332:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10333:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10334:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10335:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10336:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10337:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10338:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10339:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10340:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10341:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10342:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10343:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10344: 
1.57      bertrand 10345:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10346:   esac
                   10347: done
                   10348: 
                   10349: 
                   10350: # If the user did not use the arguments to specify the items to instantiate,
                   10351: # then the envvar interface is used.  Set only those that are not.
                   10352: # We use the long form for the default assignment because of an extremely
                   10353: # bizarre bug on SunOS 4.1.3.
                   10354: if $ac_need_defaults; then
                   10355:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10356:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10357:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10358: fi
                   10359: 
                   10360: # Have a temporary directory for convenience.  Make it in the build tree
                   10361: # simply because there is no reason against having it here, and in addition,
                   10362: # creating and moving files from /tmp can sometimes cause problems.
                   10363: # Hook for its removal unless debugging.
                   10364: # Note that there is a small window in which the directory will not be cleaned:
                   10365: # after its creation but before its name has been assigned to `$tmp'.
                   10366: $debug ||
                   10367: {
1.57      bertrand 10368:   tmp= ac_tmp=
1.1       bertrand 10369:   trap 'exit_status=$?
1.57      bertrand 10370:   : "${ac_tmp:=$tmp}"
                   10371:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10372: ' 0
1.15      bertrand 10373:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10374: }
                   10375: # Create a (secure) tmp directory for tmp files.
                   10376: 
                   10377: {
                   10378:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10379:   test -d "$tmp"
1.1       bertrand 10380: }  ||
                   10381: {
                   10382:   tmp=./conf$$-$RANDOM
                   10383:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10384: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10385: ac_tmp=$tmp
1.15      bertrand 10386: 
                   10387: # Set up the scripts for CONFIG_FILES section.
                   10388: # No need to generate them if there are no CONFIG_FILES.
                   10389: # This happens for instance with `./config.status config.h'.
                   10390: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10391: 
1.1       bertrand 10392: 
1.15      bertrand 10393: ac_cr=`echo X | tr X '\015'`
                   10394: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10395: # But we know of no other shell where ac_cr would be empty at this
                   10396: # point, so we can use a bashism as a fallback.
                   10397: if test "x$ac_cr" = x; then
                   10398:   eval ac_cr=\$\'\\r\'
                   10399: fi
                   10400: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10401: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10402:   ac_cs_awk_cr='\\r'
1.15      bertrand 10403: else
                   10404:   ac_cs_awk_cr=$ac_cr
                   10405: fi
1.1       bertrand 10406: 
1.57      bertrand 10407: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10408: _ACEOF
                   10409: 
                   10410: 
1.15      bertrand 10411: {
                   10412:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10413:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10414:   echo "_ACEOF"
                   10415: } >conf$$subs.sh ||
1.36      bertrand 10416:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10417: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10418: ac_delim='%!_!# '
                   10419: for ac_last_try in false false false false false :; do
1.15      bertrand 10420:   . ./conf$$subs.sh ||
1.36      bertrand 10421:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10422: 
1.15      bertrand 10423:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10424:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10425:     break
                   10426:   elif $ac_last_try; then
1.36      bertrand 10427:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10428:   else
                   10429:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10430:   fi
                   10431: done
1.15      bertrand 10432: rm -f conf$$subs.sh
1.1       bertrand 10433: 
1.15      bertrand 10434: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10435: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10436: _ACEOF
                   10437: sed -n '
                   10438: h
                   10439: s/^/S["/; s/!.*/"]=/
                   10440: p
                   10441: g
                   10442: s/^[^!]*!//
                   10443: :repl
                   10444: t repl
                   10445: s/'"$ac_delim"'$//
                   10446: t delim
                   10447: :nl
                   10448: h
                   10449: s/\(.\{148\}\)..*/\1/
                   10450: t more1
                   10451: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10452: p
                   10453: n
                   10454: b repl
                   10455: :more1
                   10456: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10457: p
                   10458: g
                   10459: s/.\{148\}//
                   10460: t nl
                   10461: :delim
                   10462: h
                   10463: s/\(.\{148\}\)..*/\1/
                   10464: t more2
                   10465: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10466: p
                   10467: b
                   10468: :more2
                   10469: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10470: p
                   10471: g
                   10472: s/.\{148\}//
                   10473: t delim
                   10474: ' <conf$$subs.awk | sed '
                   10475: /^[^""]/{
                   10476:   N
                   10477:   s/\n//
                   10478: }
                   10479: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10480: rm -f conf$$subs.awk
                   10481: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10482: _ACAWK
1.57      bertrand 10483: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10484:   for (key in S) S_is_set[key] = 1
                   10485:   FS = ""
1.1       bertrand 10486: 
1.15      bertrand 10487: }
                   10488: {
                   10489:   line = $ 0
                   10490:   nfields = split(line, field, "@")
                   10491:   substed = 0
                   10492:   len = length(field[1])
                   10493:   for (i = 2; i < nfields; i++) {
                   10494:     key = field[i]
                   10495:     keylen = length(key)
                   10496:     if (S_is_set[key]) {
                   10497:       value = S[key]
                   10498:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10499:       len += length(value) + length(field[++i])
                   10500:       substed = 1
                   10501:     } else
                   10502:       len += 1 + keylen
                   10503:   }
1.1       bertrand 10504: 
1.15      bertrand 10505:   print line
                   10506: }
1.1       bertrand 10507: 
1.15      bertrand 10508: _ACAWK
1.14      bertrand 10509: _ACEOF
1.15      bertrand 10510: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10511: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10512:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10513: else
                   10514:   cat
1.57      bertrand 10515: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10516:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10517: _ACEOF
                   10518: 
1.36      bertrand 10519: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10520: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10521: # trailing colons and then remove the whole line if VPATH becomes empty
                   10522: # (actually we leave an empty line to preserve line numbers).
                   10523: if test "x$srcdir" = x.; then
1.36      bertrand 10524:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10525: h
                   10526: s///
                   10527: s/^/:/
                   10528: s/[     ]*$/:/
                   10529: s/:\$(srcdir):/:/g
                   10530: s/:\${srcdir}:/:/g
                   10531: s/:@srcdir@:/:/g
                   10532: s/^:*//
1.1       bertrand 10533: s/:*$//
1.36      bertrand 10534: x
                   10535: s/\(=[  ]*\).*/\1/
                   10536: G
                   10537: s/\n//
1.1       bertrand 10538: s/^[^=]*=[  ]*$//
                   10539: }'
                   10540: fi
                   10541: 
1.15      bertrand 10542: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10543: fi # test -n "$CONFIG_FILES"
                   10544: 
1.15      bertrand 10545: # Set up the scripts for CONFIG_HEADERS section.
                   10546: # No need to generate them if there are no CONFIG_HEADERS.
                   10547: # This happens for instance with `./config.status Makefile'.
                   10548: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10549: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10550: BEGIN {
                   10551: _ACEOF
                   10552: 
                   10553: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10554: # here-document in config.status, that substitutes the proper values into
                   10555: # config.h.in to produce config.h.
                   10556: 
                   10557: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10558: # handling of long lines.
                   10559: ac_delim='%!_!# '
                   10560: for ac_last_try in false false :; do
1.57      bertrand 10561:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10562:   if test -z "$ac_tt"; then
1.15      bertrand 10563:     break
                   10564:   elif $ac_last_try; then
1.36      bertrand 10565:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10566:   else
                   10567:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10568:   fi
                   10569: done
                   10570: 
                   10571: # For the awk script, D is an array of macro values keyed by name,
                   10572: # likewise P contains macro parameters if any.  Preserve backslash
                   10573: # newline sequences.
                   10574: 
                   10575: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10576: sed -n '
                   10577: s/.\{148\}/&'"$ac_delim"'/g
                   10578: t rset
                   10579: :rset
                   10580: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10581: t def
                   10582: d
                   10583: :def
                   10584: s/\\$//
                   10585: t bsnl
                   10586: s/["\\]/\\&/g
                   10587: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10588: D["\1"]=" \3"/p
                   10589: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10590: d
                   10591: :bsnl
                   10592: s/["\\]/\\&/g
                   10593: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10594: D["\1"]=" \3\\\\\\n"\\/p
                   10595: t cont
                   10596: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10597: t cont
                   10598: d
                   10599: :cont
                   10600: n
                   10601: s/.\{148\}/&'"$ac_delim"'/g
                   10602: t clear
                   10603: :clear
                   10604: s/\\$//
                   10605: t bsnlc
                   10606: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10607: d
                   10608: :bsnlc
                   10609: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10610: b cont
                   10611: ' <confdefs.h | sed '
                   10612: s/'"$ac_delim"'/"\\\
                   10613: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10614: 
                   10615: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10616:   for (key in D) D_is_set[key] = 1
                   10617:   FS = ""
                   10618: }
                   10619: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10620:   line = \$ 0
                   10621:   split(line, arg, " ")
                   10622:   if (arg[1] == "#") {
                   10623:     defundef = arg[2]
                   10624:     mac1 = arg[3]
                   10625:   } else {
                   10626:     defundef = substr(arg[1], 2)
                   10627:     mac1 = arg[2]
                   10628:   }
                   10629:   split(mac1, mac2, "(") #)
                   10630:   macro = mac2[1]
                   10631:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10632:   if (D_is_set[macro]) {
                   10633:     # Preserve the white space surrounding the "#".
                   10634:     print prefix "define", macro P[macro] D[macro]
                   10635:     next
                   10636:   } else {
                   10637:     # Replace #undef with comments.  This is necessary, for example,
                   10638:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10639:     # on some systems where configure will not decide to define it.
                   10640:     if (defundef == "undef") {
                   10641:       print "/*", prefix defundef, macro, "*/"
                   10642:       next
                   10643:     }
                   10644:   }
                   10645: }
                   10646: { print }
                   10647: _ACAWK
                   10648: _ACEOF
                   10649: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10650:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10651: fi # test -n "$CONFIG_HEADERS"
                   10652: 
1.1       bertrand 10653: 
1.15      bertrand 10654: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10655: shift
                   10656: for ac_tag
1.1       bertrand 10657: do
                   10658:   case $ac_tag in
                   10659:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10660:   esac
                   10661:   case $ac_mode$ac_tag in
                   10662:   :[FHL]*:*);;
1.57      bertrand 10663:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10664:   :[FH]-) ac_tag=-:-;;
                   10665:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10666:   esac
                   10667:   ac_save_IFS=$IFS
                   10668:   IFS=:
                   10669:   set x $ac_tag
                   10670:   IFS=$ac_save_IFS
                   10671:   shift
                   10672:   ac_file=$1
                   10673:   shift
                   10674: 
                   10675:   case $ac_mode in
                   10676:   :L) ac_source=$1;;
                   10677:   :[FH])
                   10678:     ac_file_inputs=
                   10679:     for ac_f
                   10680:     do
                   10681:       case $ac_f in
1.57      bertrand 10682:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10683:       *) # Look for the file first in the build tree, then in the source tree
                   10684:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10685:     # because $ac_f cannot contain `:'.
                   10686:     test -f "$ac_f" ||
                   10687:       case $ac_f in
                   10688:       [\\/$]*) false;;
                   10689:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10690:       esac ||
1.57      bertrand 10691:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10692:       esac
1.15      bertrand 10693:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10694:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10695:     done
                   10696: 
                   10697:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10698:     # use $as_me), people would be surprised to read:
                   10699:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10700:     configure_input='Generated from '`
                   10701:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10702:    `' by configure.'
1.1       bertrand 10703:     if test x"$ac_file" != x-; then
                   10704:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10705:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10706: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10707:     fi
1.15      bertrand 10708:     # Neutralize special characters interpreted by sed in replacement strings.
                   10709:     case $configure_input in #(
                   10710:     *\&* | *\|* | *\\* )
                   10711:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10712:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10713:     *) ac_sed_conf_input=$configure_input;;
                   10714:     esac
1.1       bertrand 10715: 
                   10716:     case $ac_tag in
1.57      bertrand 10717:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10718:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10719:     esac
                   10720:     ;;
                   10721:   esac
                   10722: 
                   10723:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10724: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10725:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10726:     X"$ac_file" : 'X\(//\)$' \| \
                   10727:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10728: $as_echo X"$ac_file" |
1.1       bertrand 10729:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10730:        s//\1/
                   10731:        q
                   10732:      }
                   10733:      /^X\(\/\/\)[^/].*/{
                   10734:        s//\1/
                   10735:        q
                   10736:      }
                   10737:      /^X\(\/\/\)$/{
                   10738:        s//\1/
                   10739:        q
                   10740:      }
                   10741:      /^X\(\/\).*/{
                   10742:        s//\1/
                   10743:        q
                   10744:      }
                   10745:      s/.*/./; q'`
1.15      bertrand 10746:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10747:   ac_builddir=.
                   10748: 
                   10749: case "$ac_dir" in
                   10750: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10751: *)
1.15      bertrand 10752:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10753:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10754:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10755:   case $ac_top_builddir_sub in
                   10756:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10757:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10758:   esac ;;
                   10759: esac
                   10760: ac_abs_top_builddir=$ac_pwd
                   10761: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10762: # for backward compatibility:
                   10763: ac_top_builddir=$ac_top_build_prefix
                   10764: 
                   10765: case $srcdir in
                   10766:   .)  # We are building in place.
                   10767:     ac_srcdir=.
                   10768:     ac_top_srcdir=$ac_top_builddir_sub
                   10769:     ac_abs_top_srcdir=$ac_pwd ;;
                   10770:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10771:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10772:     ac_top_srcdir=$srcdir
                   10773:     ac_abs_top_srcdir=$srcdir ;;
                   10774:   *) # Relative name.
                   10775:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10776:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10777:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10778: esac
                   10779: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10780: 
                   10781: 
                   10782:   case $ac_mode in
                   10783:   :F)
                   10784:   #
                   10785:   # CONFIG_FILE
                   10786:   #
                   10787: 
                   10788:   case $INSTALL in
                   10789:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10790:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10791:   esac
                   10792:   ac_MKDIR_P=$MKDIR_P
                   10793:   case $MKDIR_P in
                   10794:   [\\/$]* | ?:[\\/]* ) ;;
                   10795:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10796:   esac
                   10797: _ACEOF
                   10798: 
1.15      bertrand 10799: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10800: # If the template does not know about datarootdir, expand it.
                   10801: # FIXME: This hack should be removed a few years after 2.60.
                   10802: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10803: ac_sed_dataroot='
                   10804: /datarootdir/ {
1.1       bertrand 10805:   p
                   10806:   q
                   10807: }
                   10808: /@datadir@/p
                   10809: /@docdir@/p
                   10810: /@infodir@/p
                   10811: /@localedir@/p
1.15      bertrand 10812: /@mandir@/p'
                   10813: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10814: *datarootdir*) ac_datarootdir_seen=yes;;
                   10815: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10816:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10817: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10818: _ACEOF
1.15      bertrand 10819: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10820:   ac_datarootdir_hack='
                   10821:   s&@datadir@&$datadir&g
                   10822:   s&@docdir@&$docdir&g
                   10823:   s&@infodir@&$infodir&g
                   10824:   s&@localedir@&$localedir&g
                   10825:   s&@mandir@&$mandir&g
1.15      bertrand 10826:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10827: esac
                   10828: _ACEOF
                   10829: 
                   10830: # Neutralize VPATH when `$srcdir' = `.'.
                   10831: # Shell code in configure.ac might set extrasub.
                   10832: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10833: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10834: ac_sed_extra="$ac_vpsub
1.1       bertrand 10835: $extrasub
                   10836: _ACEOF
1.15      bertrand 10837: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10838: :t
                   10839: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10840: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10841: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10842: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10843: s&@srcdir@&$ac_srcdir&;t t
                   10844: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10845: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10846: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10847: s&@builddir@&$ac_builddir&;t t
                   10848: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10849: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10850: s&@INSTALL@&$ac_INSTALL&;t t
                   10851: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10852: $ac_datarootdir_hack
1.15      bertrand 10853: "
1.57      bertrand 10854: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10855:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10856: 
                   10857: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10858:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10859:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10860:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10861:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10862: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10863: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10864: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10865: 
1.57      bertrand 10866:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10867:   case $ac_file in
1.57      bertrand 10868:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10869:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10870:   esac \
1.36      bertrand 10871:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10872:  ;;
                   10873:   :H)
                   10874:   #
                   10875:   # CONFIG_HEADER
                   10876:   #
                   10877:   if test x"$ac_file" != x-; then
1.15      bertrand 10878:     {
                   10879:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10880:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10881:     } >"$ac_tmp/config.h" \
1.36      bertrand 10882:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10883:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10884:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10885: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10886:     else
1.15      bertrand 10887:       rm -f "$ac_file"
1.57      bertrand 10888:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10889:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10890:     fi
                   10891:   else
1.15      bertrand 10892:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10893:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10894:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10895:   fi
1.15      bertrand 10896: # Compute "$ac_file"'s index in $config_headers.
                   10897: _am_arg="$ac_file"
1.1       bertrand 10898: _am_stamp_count=1
                   10899: for _am_header in $config_headers :; do
                   10900:   case $_am_header in
                   10901:     $_am_arg | $_am_arg:* )
                   10902:       break ;;
                   10903:     * )
                   10904:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10905:   esac
                   10906: done
                   10907: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10908: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10909:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10910:     X"$_am_arg" : 'X\(//\)$' \| \
                   10911:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10912: $as_echo X"$_am_arg" |
1.1       bertrand 10913:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10914:        s//\1/
                   10915:        q
                   10916:      }
                   10917:      /^X\(\/\/\)[^/].*/{
                   10918:        s//\1/
                   10919:        q
                   10920:      }
                   10921:      /^X\(\/\/\)$/{
                   10922:        s//\1/
                   10923:        q
                   10924:      }
                   10925:      /^X\(\/\).*/{
                   10926:        s//\1/
                   10927:        q
                   10928:      }
                   10929:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10930:  ;;
                   10931: 
1.15      bertrand 10932:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10933: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10934:  ;;
                   10935:   esac
                   10936: 
                   10937: 
                   10938:   case $ac_file$ac_mode in
1.15      bertrand 10939:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10940:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10941:   # are listed without --file.  Let's play safe and only enable the eval
                   10942:   # if we detect the quoting.
                   10943:   case $CONFIG_FILES in
                   10944:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10945:   *)   set x $CONFIG_FILES ;;
                   10946:   esac
                   10947:   shift
                   10948:   for mf
                   10949:   do
                   10950:     # Strip MF so we end up with the name of the file.
                   10951:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10952:     # Check whether this is an Automake generated Makefile or not.
                   10953:     # We used to match only the files named `Makefile.in', but
                   10954:     # some people rename them; so instead we look at the file content.
                   10955:     # Grep'ing the first line is not enough: some people post-process
                   10956:     # each Makefile.in and add a new line on top of each file to say so.
                   10957:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10958:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10959:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10960:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10961: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10962:     X"$mf" : 'X\(//\)[^/]' \| \
                   10963:     X"$mf" : 'X\(//\)$' \| \
                   10964:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10965: $as_echo X"$mf" |
1.1       bertrand 10966:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10967:        s//\1/
                   10968:        q
                   10969:      }
                   10970:      /^X\(\/\/\)[^/].*/{
                   10971:        s//\1/
                   10972:        q
                   10973:      }
                   10974:      /^X\(\/\/\)$/{
                   10975:        s//\1/
                   10976:        q
                   10977:      }
                   10978:      /^X\(\/\).*/{
                   10979:        s//\1/
                   10980:        q
                   10981:      }
                   10982:      s/.*/./; q'`
1.15      bertrand 10983:     else
                   10984:       continue
                   10985:     fi
                   10986:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10987:     # from the Makefile without running `make'.
                   10988:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10989:     test -z "$DEPDIR" && continue
                   10990:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10991:     test -z "am__include" && continue
                   10992:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10993:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10994:     U=`sed -n 's/^U = //p' < "$mf"`
                   10995:     # Find all dependency output files, they are included files with
                   10996:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10997:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10998:     # expansion.
                   10999:     for file in `sed -n "
                   11000:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11001:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11002:       # Make sure the directory exists.
                   11003:       test -f "$dirpart/$file" && continue
                   11004:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11005: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11006:     X"$file" : 'X\(//\)[^/]' \| \
                   11007:     X"$file" : 'X\(//\)$' \| \
                   11008:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11009: $as_echo X"$file" |
1.1       bertrand 11010:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11011:        s//\1/
                   11012:        q
                   11013:      }
                   11014:      /^X\(\/\/\)[^/].*/{
                   11015:        s//\1/
                   11016:        q
                   11017:      }
                   11018:      /^X\(\/\/\)$/{
                   11019:        s//\1/
                   11020:        q
                   11021:      }
                   11022:      /^X\(\/\).*/{
                   11023:        s//\1/
                   11024:        q
                   11025:      }
                   11026:      s/.*/./; q'`
1.15      bertrand 11027:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11028:       # echo "creating $dirpart/$file"
                   11029:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11030:     done
                   11031:   done
1.15      bertrand 11032: }
1.1       bertrand 11033:  ;;
                   11034: 
                   11035:   esac
                   11036: done # for ac_tag
                   11037: 
                   11038: 
1.15      bertrand 11039: as_fn_exit 0
1.1       bertrand 11040: _ACEOF
                   11041: ac_clean_files=$ac_clean_files_save
                   11042: 
1.15      bertrand 11043: test $ac_write_fail = 0 ||
1.36      bertrand 11044:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11045: 
1.1       bertrand 11046: 
                   11047: # configure is writing to config.log, and then calls config.status.
                   11048: # config.status does its own redirection, appending to config.log.
                   11049: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11050: # by configure, so config.status won't be able to write to it; its
                   11051: # output is simply discarded.  So we exec the FD to /dev/null,
                   11052: # effectively closing config.log, so it can be properly (re)opened and
                   11053: # appended to by config.status.  When coming back to configure, we
                   11054: # need to make the FD available again.
                   11055: if test "$no_create" != yes; then
                   11056:   ac_cs_success=:
                   11057:   ac_config_status_args=
                   11058:   test "$silent" = yes &&
                   11059:     ac_config_status_args="$ac_config_status_args --quiet"
                   11060:   exec 5>/dev/null
                   11061:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11062:   exec 5>>config.log
                   11063:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11064:   # would make configure fail if this is the last instruction.
1.36      bertrand 11065:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11066: fi
                   11067: 
                   11068: #
                   11069: # CONFIG_SUBDIRS section.
                   11070: #
                   11071: if test "$no_recursion" != yes; then
                   11072: 
1.15      bertrand 11073:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11074:   # so they do not pile up.
1.1       bertrand 11075:   ac_sub_configure_args=
                   11076:   ac_prev=
                   11077:   eval "set x $ac_configure_args"
                   11078:   shift
                   11079:   for ac_arg
                   11080:   do
                   11081:     if test -n "$ac_prev"; then
                   11082:       ac_prev=
                   11083:       continue
                   11084:     fi
                   11085:     case $ac_arg in
                   11086:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11087:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11088:       ac_prev=cache_file ;;
                   11089:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11090:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11091:     | --c=*)
                   11092:       ;;
                   11093:     --config-cache | -C)
                   11094:       ;;
                   11095:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11096:       ac_prev=srcdir ;;
                   11097:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11098:       ;;
                   11099:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11100:       ac_prev=prefix ;;
                   11101:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11102:       ;;
1.15      bertrand 11103:     --disable-option-checking)
                   11104:       ;;
1.1       bertrand 11105:     *)
                   11106:       case $ac_arg in
1.15      bertrand 11107:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11108:       esac
1.15      bertrand 11109:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11110:     esac
                   11111:   done
                   11112: 
                   11113:   # Always prepend --prefix to ensure using the same prefix
                   11114:   # in subdir configurations.
                   11115:   ac_arg="--prefix=$prefix"
                   11116:   case $ac_arg in
1.15      bertrand 11117:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11118:   esac
                   11119:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11120: 
                   11121:   # Pass --silent
                   11122:   if test "$silent" = yes; then
                   11123:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11124:   fi
                   11125: 
1.15      bertrand 11126:   # Always prepend --disable-option-checking to silence warnings, since
                   11127:   # different subdirs can have different --enable and --with options.
                   11128:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11129: 
1.1       bertrand 11130:   ac_popdir=`pwd`
                   11131:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11132: 
                   11133:     # Do not complain, so a configure script can configure whichever
                   11134:     # parts of a large source tree are present.
                   11135:     test -d "$srcdir/$ac_dir" || continue
                   11136: 
                   11137:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11138:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11139:     $as_echo "$ac_msg" >&6
                   11140:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11141:     ac_builddir=.
                   11142: 
                   11143: case "$ac_dir" in
                   11144: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11145: *)
1.15      bertrand 11146:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11147:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11148:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11149:   case $ac_top_builddir_sub in
                   11150:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11151:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11152:   esac ;;
                   11153: esac
                   11154: ac_abs_top_builddir=$ac_pwd
                   11155: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11156: # for backward compatibility:
                   11157: ac_top_builddir=$ac_top_build_prefix
                   11158: 
                   11159: case $srcdir in
                   11160:   .)  # We are building in place.
                   11161:     ac_srcdir=.
                   11162:     ac_top_srcdir=$ac_top_builddir_sub
                   11163:     ac_abs_top_srcdir=$ac_pwd ;;
                   11164:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11165:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11166:     ac_top_srcdir=$srcdir
                   11167:     ac_abs_top_srcdir=$srcdir ;;
                   11168:   *) # Relative name.
                   11169:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11170:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11171:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11172: esac
                   11173: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11174: 
                   11175: 
                   11176:     cd "$ac_dir"
                   11177: 
                   11178:     # Check for guested configure; otherwise get Cygnus style configure.
                   11179:     if test -f "$ac_srcdir/configure.gnu"; then
                   11180:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11181:     elif test -f "$ac_srcdir/configure"; then
                   11182:       ac_sub_configure=$ac_srcdir/configure
                   11183:     elif test -f "$ac_srcdir/configure.in"; then
                   11184:       # This should be Cygnus configure.
                   11185:       ac_sub_configure=$ac_aux_dir/configure
                   11186:     else
1.15      bertrand 11187:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11188: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11189:       ac_sub_configure=
                   11190:     fi
                   11191: 
                   11192:     # The recursion is here.
                   11193:     if test -n "$ac_sub_configure"; then
                   11194:       # Make the cache file name correct relative to the subdirectory.
                   11195:       case $cache_file in
                   11196:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11197:       *) # Relative name.
                   11198:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11199:       esac
                   11200: 
1.15      bertrand 11201:       { $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
                   11202: $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 11203:       # The eval makes quoting arguments work.
                   11204:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11205:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11206:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11207:     fi
                   11208: 
                   11209:     cd "$ac_popdir"
                   11210:   done
                   11211: fi
1.15      bertrand 11212: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11213:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11214: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11215: fi
1.1       bertrand 11216: 

CVSweb interface <joel.bertrand@systella.fr>